node package manager
Painless code sharing. npm Orgs help your team discover, share, and reuse code. Create a free org »


luster-guard NPM version

Dependency status Development Dependency status

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!