I want to add some bash commands at the end of gulp.watch function to accelerate my development speed. So, I am wondering if it is possible. Thanks!
gulp.watch
The simplest solution is as easy as:
var child = require('child_process'); var gulp = require('gulp'); gulp.task('launch-ls',function(done) { child.spawn('ls', [ '-la'], { stdio: 'inherit' }); });
It doesn't use node streams and gulp pipes but it will do the work.