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 1e4a66d commit 7ab9e7b
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions lib/watcher.js
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 7ab9e7b

Please sign in to comment.