Hi @remy
I use .git suffix for my git projects. When I try to use nodemon on lets say folder Projectxx.git; they changes won't get detected.
Thx
I have a related problem as I have a file in my project called coverage.js, and it is getting ignored by the (undocumented) ignoreRoot entry "coverage". I think the entries in ignoreRoot should only match exact folder names, not partial names or file names.
I think how Nodemon handles ignoring file/folder names is a problem. It uses the ignore-by-default package and fuzzy ignores those names. This means anything with '.git' in the absolute path ignored, the same goes for anything containing 'coverage' or 'node_modules' in the absolute path. I think this is a problem as all of the cases is in the ignore-by-default package were meant (under my understanding) to be used only for exact matches. I will look into making a PR to fix this.
This issue has been automatically marked as idle and stale because it hasn't had any recent activity. It will be automtically closed if no further activity occurs. If you think this is wrong, or the problem still persists, just pop a reply in the comments and @remy will (try!) to follow up.
Thank you for contributing <3
AFAIK, this hasn't been fixed. The PR to fix it was closed, not accepted.
Yeah, the PR added a new regexp without any real explanation as to what it did, but more importantly, it didn't actually test that it worked. I'd be more than happy to reopen.
A workaround while the fix is being worked on is to override default ignored folders, e.g. place the below in nodemon.json:
{
ignoreRoot: [ '.nyc_output', '.sass-cache', 'bower_components', 'coverage', 'node_modules' ]
}
The above keeps the current defaults, but excludes .git.
Most helpful comment
I think how Nodemon handles ignoring file/folder names is a problem. It uses the ignore-by-default package and fuzzy ignores those names. This means anything with '.git' in the absolute path ignored, the same goes for anything containing 'coverage' or 'node_modules' in the absolute path. I think this is a problem as all of the cases is in the ignore-by-default package were meant (under my understanding) to be used only for exact matches. I will look into making a PR to fix this.