-
-
Notifications
You must be signed in to change notification settings - Fork 1.7k
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
Refactor: 1.4.2 and 2.0.0 #625
Conversation
Current dev build: 1.5.0-alpha1 - initial refactor across to chokidar removing custom (and god knows how many) watch methods. |
Context: #624 Thanks @remy! Did some additional testing and it seems that, even though nodemon 1.4.1 said it's watching a gazillion of files and warning about it, it doesn't actually watch them, changes in my node_modules didn't trigger restart. Whoops, or then my setup here is somehow...off. Anyway, this new version doesn't seem to output the number of files it's watching nor any warnings about them, but feels certainly snappier to start/restart and does what it is supposed to do, did some manual testing for the basic cases. Cannot find any issues with it, so looks good to me, should at least fix that #624 👍. |
@harriha cheers for the feedback. Yeah, the first thing nodemon loses is the actual count of files it's monitoring, but if chokidar can handle any arbitrary number of files, then it doesn't really matter (I think...). I'm not 100% sure I've got the watch/ignore combo quite right (and I think I spotted a memory leak in alpha1 - that been fixed so I'll push another version either tonight or in the morning). Do keep feeding back if you see anything odd. |
Ok, so, both the old nodemon and the new nodemon give me strange behaviour when files aren't being changed but it says they are:
I checked the "modified" dates on these files: those are way back in August. |
This thing I mentioned happens sometimes and isn't reproducible. I'll investigate on this. |
Maybe I missed it, but it'd be great to be able to reduce/configure the timer for modification checking. Sometimes I'll change a file and occasionally have to wait a few seconds for it to notice. |
@JonathanWolfe is this with Basically I've completed gutted the old watch mechanism which used |
@remy it was |
@JonathanWolfe this thread is only for |
Are there any known work arounds to avoid the watch loop? |
test: updated travis tests
90ebafb
to
438b8d7
Compare
Oooooh, shiny.
@thedug sorry, missed your message coming in. Have you tried using the |
CC'ing @ChrisWren and @JacksonGariety to get new version of nodemon on the radar. There's going to be 2 releases:
I'd like to also get the event middleware included in this release (@JacksonGariety) because I know you wanted to control the flow of events from your gulp plugin. |
@ChrisWren ha, I now I read your big message in the git repo! Feel free to unsub from the issue, I understand :) |
lol, thanks @remy |
Kool!!! :D |
Since we're now using chokidar which has it's own internal way of switching, so we don't need to do it ourselves.
Merged and live in |
Nice! It looks like the change detection updates in v1.5 also resolved an issue (at least on Windows) where file changes triggered a restart twice. |
@remy Can you add an option in |
@halt-hammerzeit yes -> #633 (just need to find a few hours to get the code up and tests passing, I'm thinking this might just reuse the |
@remy oh, ok, that's in no way urgent for me |
Alpha builds are available via
npm install -g nodemon@dev
Follow this issue for the latest dev builds to npm and send your feedback.
Aims
Deferred
script
commands)Create 1.4.2 and 2.0 release - 2.0 will break backward compat (dropping legacy support, etc), but 1.4.x will include the infrastructure changes and stop 1.x dev there.