0
我怎样才能让这个咕嘟咕嘟4保持观望甚至错误
// ...
gulp.watch(source.app, gulp.series(
lint(source.app),
transpile(source.app),
ATDD,
));
保持观望,即使从棉短绒或transpiler发生了错误?
我的任务功能如下:
// ...
function lintWorker(source) {
return gulp.src(source)
.pipe(tslint({
configuration: "tslint.json",
options : {
formatter: "prose"
}
}))
.pipe(tslint.report(stylish, {
emitError: false,
sort: true,
bell: true
}));
};
export function lint(source) {
let fn =() => {
return lintWorker(source);
};
fn.displayName = ["linting", ...source].join(" ");
return fn;
};