Skip to content

nodules/luster-guard

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

25 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

luster-guard NPM version

Dependency status Development Dependency status

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!

About

Restart workers on events from file system.

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Contributors 3

  •  
  •  
  •