I would like to run a shell command from gulp, using gulp-shell
. I see the following idiom being used the gulpfile.
Is this the idiomatic way to run a command from a gulp task?
var cmd = 'ls';
gulp.src('', {read: false})
.pipe(shell(cmd, {quiet: true}))
.on('error', function (err) {
gutil.log(err);
});