Skip to content

Commit f557d7c

Browse files
committed
Adds support for gulp.watch
1 parent b7918bf commit f557d7c

File tree

2 files changed

+522
-75
lines changed

2 files changed

+522
-75
lines changed

Gulpfile.js

Lines changed: 11 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -530,12 +530,17 @@ gulp.task(
530530
"Runs 'local'",
531531
["local"]);
532532

533-
// TODO(rbuckton): Investigate restoring gulp.watch() functionality.
534-
// gulp.task(
535-
// "watch",
536-
// "Watches the src/ directory for changes and executes runtests-parallel.",
537-
// [],
538-
// () => gulp.watch("src/**/*.*", ["runtests-parallel"]));
533+
gulp.task(
534+
"watch-tsc",
535+
"Watches for changes to the build inputs for built/local/tsc.js",
536+
[typescriptServicesJs],
537+
() => project.watch(tscProject, { typescript: "built" }));
538+
539+
gulp.task(
540+
"watch",
541+
"Watches for changes to the build inputs for built/local/run.js executes runtests-parallel.",
542+
[typescriptServicesJs],
543+
() => project.watch(testRunnerProject, { typescript: "built" }, ["runtests-parallel"]));
539544

540545
gulp.task("clean-built", /*help*/ false, ["clean:" + diagnosticInformationMapTs], () => del(["built"]));
541546
gulp.task(

0 commit comments

Comments
 (0)