-
Notifications
You must be signed in to change notification settings - Fork 99
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 work (re-titled) #1
Comments
Could you try |
Tried it. Still doesn't work. I tried attaching a data handler to check if it's going through. Also, gulp-watch should output file changes. When I rename a file, the delete event is captured. |
I try'd this code: var Gaze = require('gaze').Gaze;
var gaze = new Gaze('./src/**/*.md');
// Files have all started watching
gaze.on('ready', function(watcher) {
console.log('ready')
});
// A file has been added/changed/deleted has occurred
gaze.on('all', function(event, filepath) {
console.log(event, filepath);
}); And it neither picking up new files. I think this issue in gaze or in our understanding of |
Hmm. You said it works on gaze 0.5? |
Error with renaming directories is fixed in gaze 0.5 - yes. |
Using your code, and changing path to Though the var Gaze = require('gaze').Gaze;
var gaze = new Gaze('src/**/*.md');
// Files have all started watching
gaze.on('ready', function(watcher) {
console.log('ready')
});
// A file has been added/changed/deleted has occurred
gaze.on('all', function(event, filepath) {
console.log(event, filepath);
}); And coincidentally, makes gulp-watch work normally. So apparently, globs beginning with Since I store source directories as variables, I resorted to using I suggest filtering globs through |
Also, I originally reported the issue with the path |
I guess this is resolved then. |
globs beginning with ./ doesn't work.
ORIGINAL TITLE: watch({glob: ... }) detects new folders but not new files
ORIGINAL POST:
I'm using
watch({glob: 'src/**/*.md'})
, and it doesn't seem to detect new.md
files.However, folders seem to be detected. I use gulp-ignore to filter them.
The text was updated successfully, but these errors were encountered: