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);
});
See Question&Answers more detail:
os 与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…