luster-guard

0.6.0 • Public • Published

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!

Readme

Keywords

Package Sidebar

Install

npm i luster-guard

Weekly Downloads

7

Version

0.6.0

License

none

Last publish

Collaborators

  • varankinv
  • mcheshkov
  • twilightfeel
  • flack