Skip to content
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

Adding new file does not add it to watchers #800

Closed
AlexanderTserkovniy opened this issue Sep 19, 2015 · 5 comments
Closed

Adding new file does not add it to watchers #800

AlexanderTserkovniy opened this issue Sep 19, 2015 · 5 comments

Comments

@AlexanderTserkovniy
Copy link

Hey!

If I add new stylus.styl file, it is not added automatically to the scope of watchers.

Sorry if it is known issue.

@zckrs
Copy link
Collaborator

zckrs commented Sep 21, 2015

The generator uses the file watching from Gulp 3 which is known to have some limitations. For example a new directory or the creation of the first file in a directory will be missed. Please try to stop your watch process and relaunch it before asking for help.

https://github.com/Swiip/generator-gulp-angular/blob/master/docs/user-guide.md#file-watching--pre-processing

@AlexanderTserkovniy
Copy link
Author

Thanks, will it be somehow fixed in the future? I saw you are planning more fixes/features when Gulp4 is ready, will you consider this as what has to be?

Also, have you considered of using nodemon? As I know it is done exactly for such cases.

@zckrs
Copy link
Collaborator

zckrs commented Sep 21, 2015

Yeah when we migrate to Gulp4 this issue should be solve.
In fact Gulp4 will use a new library for watching files. (gulpjs/gulp#1247).

At this time you can use gulp-watch plugin who use the same library: chokidar

@AlexanderTserkovniy
Copy link
Author

Thanks a lot!

@zckrs
Copy link
Collaborator

zckrs commented Sep 21, 2015

Np

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants