Я хочу использовать gulp, чтобы что-то сделать с командой оболочки по каналу Unix, и это: gulp-run , выглядит великолепно, но устарело (https://github.com/MrBoolean/gulp-run/issues/52).
Есть ли способ сделать это?
var run = require('gulp-run');
// use gulp-run in the middle of a pipeline:
gulp.task('even-lines', function() {
return gulp
.src('path/to/input/*') // get input files.
.pipe(run('awk "NR % 2 == 0"')) // use awk to extract the even lines.
.pipe(gulp.dest('path/to/output')) // profit.
;
});
// Error: Received a non-Vinyl object in `dest()`