Skip to content

Commit 72a00b1

Browse files
authored
Merge pull request microsoft#25146 from Microsoft/gulpWatch
Adds support for gulp.watch
2 parents 99ebcd7 + f557d7c commit 72a00b1

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)