-
-
Notifications
You must be signed in to change notification settings - Fork 16
Possibility to "live-develop" the library using the demo app #98
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Comments
….ts`, `*.html`, `*.scss` files Closes #98
…*.ts`, `*.html`, `*.scss` files Closes #98
Hi @matthiasscudlik I heard you and just released v4.2.0. New tasks Enjoy! |
That was fast, unfortunately i still have some issues with this:
|
Hi,
You are right 👍 , i will add an additional check to build the library if not already done.
What do you mean? do you have demo app running ( |
Thanks a lot for the quick changes and replies 👍, i'll try to explain what i'm doing and why: I have 2 terminals open, one with Now if i change anything within the demo, then the demo app is recompiled and i can see changes of the demo app immediately. I want to archive that i can see changes of the library immediately in the demo app. Maybe my setup is wrong? i ran I think the root cause is that the demo app uses angular cli which only listens to changes of the demo app itself, not of the libraries used by the demo app. This is probably hard to archiev but would be very helpful to develop the library and immediately see the results in the demo app. Thanks a lot and best regards, p.s.: i think i'd also remove the linting from |
That's what i don't understand..., when the library is rebuilt while demo app is running, it is similar if the dependency in demo app was updated, and angular CLI DOES recompiles the entire demo app in this case, as you can see on my screenshot.
Angular CLI does listen do changes in vendors packages (i.e dependencies in What OS+Version are you on? Node version? Npm/Yarn version? When is the output of |
Tried it several times now but still doesnt work :(
Windows 10 Yo 2.0.0 I also tried it with a brand new project with the same result (check the timestamps): |
Hi @matthiasscudlik I don't think the livrereload issue has to do with the generator itself, but rather with you installation of angular cli. So you may find better help on their issues tracker. See this thread for example: Things you could try:
If path already clean and/or it's still not working, try a fresh re-install of the CLI:
|
I discovered that the livereload when i use But without --preserve-symlinks the library is not referenced correctly so the app doesnt work. I think this issue is related to it: and |
Ok, Thanks for the links. |
Hello, Some other library posted that the solution using ng-packagr works fine (and it does not involve npm link) But I love your generator more.. So do you think you can adapt ng-packagr's way of fixing this issue. |
Uh oh!
There was an error while loading. Please reload this page.
Bug Report or Feature Request (mark with an
x
)Generator Version
4.1.1
Desired functionality.
First of all, thanks a lot for this great generator 👍
There is one feature which is missing i think:
I want to develop the library and immediately see the results in the demo app without having to build the library again and restarting the demo server.
I linked the library with
gulp link
and ran npm install (which runs npm link to the library).Then i ran
gulp build
for the library andgulp serve:demo
If i now change a component of the library, i have to run
gulp build
and restart the server for the demo page again, in order to see the results.There is a
gulp watch
tasks which compiles the library again, but it is not bundled in the dist folder and the demo app also does not detect that it changed or did i miss anything?Thanks a lot and best regards,
Matthias
The text was updated successfully, but these errors were encountered: