Closed retrofox closed 9 years ago
@substack I think this is useful, but I've never seen you use debug
- you should make the final call on this.
I think It's very useful.
For instance right now this screenshot shows that files into node_modules are being watched. does it make sense ?
@retrofox FYI: All files are watched by default. You can ignore them (including node_modules) with the --ignore-watch
flag or the ignoreWatch
option.
@zertosh I don't think so
--ignore-watch=GLOB, --iw GLOB [default: false]
Ignore monitoring files for changes that match the pattern. Omitting
the pattern will default to "**/node_modules/**".
https://github.com/substack/watchify/blob/master/index.js#L23
Actually the debug line is printing when a new files starts to be watched. It delegates ignored
to chokidar.
But when I just save any file into node_modules/
I get the watch event
@retrofox What CLI flag or option did you use exactly?
@zertosh We've tried a lot of paths. For instance ./lib/*.js
just to test. Also I've teste with --ignore-watch=true
, --ignore-watch=**/node_modules/**
, etc.
your shell might be expanding the glob... try quoting it and/or try --ignore-watch
. what's the full command you're using?
Start to use debug() module to follow the watching process. Just use
DEBUG=watchify
process environment var to activate it.