自定义gulp jshint reporter不使用gulp shell
下面的报告程序似乎不适用于自定义gulp jshint reporter不使用gulp shell,gulp,Gulp,下面的报告程序似乎不适用于gulpshell ... var shell = require('gulp-shell'); ... var mReporter = { reporter: function (errors) { shell.task([ 'echo "echo hello"' ]); console.log("console.log hello"); } }; ... 正在显示c
gulpshell
...
var shell = require('gulp-shell');
...
var mReporter = {
reporter: function (errors) {
shell.task([
'echo "echo hello"'
]);
console.log("console.log hello");
}
};
...
正在显示console.log hello
,但未显示echo hello
?找到解决方法
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");
}
};
...