The following reporter doesn't seem to work with gulp-shell
.
...
var shell = require('gulp-shell');
...
var mReporter = {
reporter: function (errors) {
shell.task([
'echo "echo hello"'
]);
console.log("console.log hello");
}
};
...
console.log hello
is being displayed but echo hello
is not?
Found a workaround.
var shell = require('gulp-shell');
...
gulp.task('mTask', shell.task([
'echo "echo hello"'
]));
...
var mReporter = {
reporter: function (errors) {
gulp.start('mTask');
console.log("console.log hello");
}
};
...
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.