1.0.9 • Published 3 years ago

gulp-forever-monitor v1.0.9

Weekly downloads
806
License
MIT
Repository
github
Last release
3 years ago

gulp-forever-monitor

Forever deamon for gulp. Based on forever-monitor

Install

npm install gulp-forever-monitor

Example

const gulp = require('gulp');
const forever = require('gulp-forever-monitor');

gulp.task('run:server', function() {
  var foreverMonitorOptions = { 
    env: process.env,
    args: process.argv,
    watch: true, 
    watchIgnorePatterns: ['.*', 'node_modules/**', 'public/**', 'temp/**']
  }
  
  forever('server.js', foreverMonitorOptions)  
  .on('watch:restart', function(fileInfo) { 
    console.log('server was restarted');          
  })
  .on('exit', function() {
    console.log('server was closed');
  })
})

Module returns forever-monitor stream.

1.0.9

3 years ago

1.0.8

3 years ago

1.0.7

3 years ago

1.0.6

4 years ago

1.0.5

4 years ago

1.0.3

7 years ago

1.0.2

7 years ago

1.0.1

7 years ago

1.0.0

7 years ago

0.0.3

8 years ago

0.0.2

8 years ago

0.0.1

9 years ago