-
Notifications
You must be signed in to change notification settings - Fork 168
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
Globs beginning with ./ doesn't capture file events #66
Comments
Is prepending |
Not really necessary, but I do it out of habit. It seems to be unexpected behaviour. |
I guess we could strip FWIW, this appears to not be an issue with the next version of gaze, var fs = require('fs')
var Gaze = require('./').Gaze;
var gaze = new Gaze('./tmp/*.js');
// Files have all started watching
gaze.on('ready', function(watcher) {
console.log('ready')
fs.writeFileSync('./tmp/1.js', 'testing')
});
// A file has been added/changed/deleted has occurred
gaze.on('all', function(event, filepath) {
console.log(event, filepath);
}); |
It's not really a big deal. Though, I'll be looking forward to |
Yay. :D |
I use the npm to install the gulp-watch,and have the same problem.Have gulp-watch updated for the npm? |
@jumplee Please make an issue about it at https://github.com/floatdrop/gulp-watch/issues |
I had to change the diretories to not do absolute referenced pathing. Otherwise it wasn't triggering on new or removed files. Bug here: shama/gaze#66
Following from this issue: floatdrop/gulp-watch#1
The following doesn't capture file events:
Removing
./
seems to work as normal.I workaround it by filtering the glob target via
path.join
.The text was updated successfully, but these errors were encountered: