У меня были проблемы с запуском двух отдельных часов gulp в качестве задания по умолчанию. Вот мой gulpfile.babel. js
import gulp from "gulp";
import git from "gulp-git";
import ts from "gulp-typescript";
const tsProject = ts.createProject("tsconfig.json");
export function watchTs() {
gulp.watch(
// details omitted...
);
}
export function watchGit() {
gulp.watch(
// details omitted...
);
}
export default function(cb) {
gulp.parallel(watchTs, watchGit);
}
И вот что происходит, когда я запускаю gulp:
master* $ gulp [16:21:52]
[16:21:54] Requiring external module @babel/register
[16:21:55] Using gulpfile ~/Documents/github/screeps/gulpfile.babel.js
[16:21:55] Starting 'default'...
[16:21:55] The following tasks did not complete: default
[16:21:55] Did you forget to signal async completion?
Я могу получить правильный результат, выполнив: gulp watchTs & gulp watchGit
, Почему это не работает?