diff options
author | Samy Pesse <samypesse@gmail.com> | 2016-04-26 15:23:28 +0200 |
---|---|---|
committer | Samy Pesse <samypesse@gmail.com> | 2016-04-26 15:23:28 +0200 |
commit | fa17f1671685a97e88c84fdba6a94744c54a09b8 (patch) | |
tree | 63083c0645a1f88bc7e96d891ef9ec9509d7680a /lib/cli/watch.js | |
parent | ce99c8c7061eb9b4a2a5f4ff534d7fbeaf37cad0 (diff) | |
download | gitbook-fa17f1671685a97e88c84fdba6a94744c54a09b8.zip gitbook-fa17f1671685a97e88c84fdba6a94744c54a09b8.tar.gz gitbook-fa17f1671685a97e88c84fdba6a94744c54a09b8.tar.bz2 |
Add base for commands
Improve plugins installation
Diffstat (limited to 'lib/cli/watch.js')
-rw-r--r-- | lib/cli/watch.js | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/lib/cli/watch.js b/lib/cli/watch.js index 130b0d4..0d1ab17 100644 --- a/lib/cli/watch.js +++ b/lib/cli/watch.js @@ -5,7 +5,12 @@ var chokidar = require('chokidar'); var Promise = require('../utils/promise'); var parsers = require('../parsers'); -// Watch a folder and resolve promise once a file is modified +/** + Watch a folder and resolve promise once a file is modified + + @param {String} dir + @return {Promise} +*/ function watch(dir) { var d = Promise.defer(); dir = path.resolve(dir); |