luster-guard
v0.6.0
Published
Restart workers on file system changes
Downloads
14
Readme
luster-guard
Restart workers on file system changes.
Usage
Install extension module to application:
$ npm install --save luster-guard
Add "luster-guard"
to "extensions"
section in the luster configuration:
module.exports = {
// ...
extensions : {
"luster-guard" : {
// fs events handler debounce timeout (ms)
debounce : 2000,
// chokidar fs polling interval (ms)
interval : 300,
// don't log events, default: false
silent : false,
// if not defined, all files will be included in monitoring
patterns: [ '**/*.js', '!**/node_modules/**' ],
// restart workers in sequence, default: true
softRestart: true
}
}
};
Have fun!