0.0.4 • Published 7 years ago

node-reload v0.0.4

Weekly downloads
2
License
MIT
Repository
github
Last release
7 years ago

node-reload

Configuration based file watcher/reloader for node.js.

npm install -g node-reload

Usage

Here's a sample configuration file. Current convention is to name it "reload-config.js".

let config = {
  'entry': 'test/main.js',
  'args': {
    'source': 'path/to/somewhere.js',
  },
  'watch': ['./*.js', './test/*.js'],
  'log': true,
};

module.exports = config;

Load exported configuration.

node-reload "path/to/reload-config.js"

API

{
  //This file will reload on change
  "entry": String, 
  //Object will be convert into an argument string
  "args": Object <Any>,
  //Array of files to watch
  "watch": Array <String>,
  //Log events to console
  "log": Boolean,
}
0.0.4

7 years ago

0.0.3

7 years ago

0.0.2

7 years ago

0.0.1

7 years ago