Restart workers on file system changes.
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!