diff options
author | Samy Pesse <samypesse@gmail.com> | 2016-04-30 22:06:16 +0200 |
---|---|---|
committer | Samy Pesse <samypesse@gmail.com> | 2016-04-30 22:06:16 +0200 |
commit | c1d53ec11fbe085932df911bda5686b7bf671f53 (patch) | |
tree | 97ae6db641eb79ec9b061af136a0b2e3c549db55 /lib/cli | |
parent | 36b49c66c6b75515bc84dd678fd52121a313e8d2 (diff) | |
download | gitbook-c1d53ec11fbe085932df911bda5686b7bf671f53.zip gitbook-c1d53ec11fbe085932df911bda5686b7bf671f53.tar.gz gitbook-c1d53ec11fbe085932df911bda5686b7bf671f53.tar.bz2 |
Switch parsers to a model
Diffstat (limited to 'lib/cli')
-rw-r--r-- | lib/cli/watch.js | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/lib/cli/watch.js b/lib/cli/watch.js index 0d1ab17..14434ab 100644 --- a/lib/cli/watch.js +++ b/lib/cli/watch.js @@ -1,4 +1,3 @@ -var _ = require('lodash'); var path = require('path'); var chokidar = require('chokidar'); @@ -20,7 +19,7 @@ function watch(dir) { ]; // Watch all parsable files - _.each(parsers.extensions, function(ext) { + parsers.extensions.forEach(function(ext) { toWatch.push('**/*'+ext); }); |