javascript - Stop running nodemon via Gulp -


here's idea, start app specific port using nodemon run tests, , stop running app run again anytime.

gulp.task('test', function(cb) {     nodemon({         script: 'server.js',         env: {              'node_env': 'test'          }     });      // run tests....       // stop application , exit running gulp -> how this? }); 

is there way stop or force ctrl+c running gulp?

thanks,

kevin

i got these

require('shelljs/global'); // https://github.com/shelljs/shelljs  gulp.task('test', ['nodemon-test', 'mocha-test']);  gulp.task('nodemon-test', function(cb) {     nodemon({         script: 'server.js',         env: {              'node_env': 'test'          }     })     .on('start', function() {         cb();     }) });  gulp.task('mocha-test', ['nodemon-test'], function() {     exit(1); }); 

Popular posts from this blog

php - How should I create my API for mobile applications (Needs Authentication) -

5 Reasons to Blog Anonymously (and 5 Reasons Not To)

Google AdWords and AdSense - A Dynamic Small Business Marketing Duo