Skip to content

Commit

Permalink
fix: allows user to not watch
Browse files Browse the repository at this point in the history
Fixes remy#516
  • Loading branch information
remy committed Sep 21, 2015
1 parent 8af4b4b commit 6a5397e
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 3 deletions.
2 changes: 1 addition & 1 deletion lib/config/load.js
Original file line number Diff line number Diff line change
Expand Up @@ -137,7 +137,7 @@ function normaliseRules(options, ready) {
rules.ignore.add(options.ignore);

// normalise the watch and ignore arrays
options.watch = rules.rules.watch;
options.watch = options.watch === false ? false : rules.rules.watch;
options.ignore = rules.rules.ignore;

ready(options);
Expand Down
6 changes: 4 additions & 2 deletions lib/monitor/run.js
Original file line number Diff line number Diff line change
Expand Up @@ -237,8 +237,10 @@ function run(options) {
});
}

debug('about to watch');
watch();
debug('start watch on: %s', config.options.watch);
if (config.options.watch !== false) {
watch();
}
}

function kill(child, signal, callback) {
Expand Down

0 comments on commit 6a5397e

Please sign in to comment.