keepup

0.0.7 • Public • Published

keepup

build status

turns out it's too simple to just get the parts of up/nodemon/etc that i actually want in about 100 lines.

Example

var keepup = require('keepup'),
  gulp = require('gulp'),
  server;

gulp.task('server', function(){
  server = keepup('node server/index.js')
    .on('start', function(data){
      console.log('server started');
    })
    .on('crash', function(data){
      console.log('server crashed', data.captured);
    })
    .on('reload', function(){
      console.log('server is reloading');
    });
});

gulp.task('server reload', function(){
  server.reload();
});

gulp.task('watch', function(){
  gulp.watch(['server/{*,**/*}.js'], ['server reload']);
});

Install

npm install keepup

Test

npm test

License

MIT

Dependents (0)

Package Sidebar

Install

npm i keepup

Weekly Downloads

8

Version

0.0.7

License

MIT

Last publish

Collaborators

  • imlucas