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;
};