Skip to content

Commit

Permalink
feat(watcher): ignore initial "add" events
Browse files Browse the repository at this point in the history
Initially all the patterns are scanned using glob. Then we start watching then
with chokidar. Chokidar now allows to ignore initial "add" event, which was
ignored by the fileList anyway.
  • Loading branch information
vojtajina committed Oct 22, 2013
1 parent 6a272aa commit dde1da4
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions lib/watcher.js
Original file line number Diff line number Diff line change
Expand Up @@ -75,6 +75,7 @@ exports.watch = function(patterns, excludes, fileList) {
var watchedPatterns = getWatchedPatterns(patterns);
var options = {
ignorePermissionErrors: true,
ignoreInitial: true,
ignored: createIgnore(watchedPatterns, excludes)
};
var chokidarWatcher = new chokidar.FSWatcher(options);
Expand Down

0 comments on commit dde1da4

Please sign in to comment.