diff --git a/gulpfile.js b/gulpfile.js index 05918ab7bc6d..44a7f54f15fa 100644 --- a/gulpfile.js +++ b/gulpfile.js @@ -36,6 +36,11 @@ const all = [ 'src/client/**/*', ]; +const tsFilter = [ + 'src/**/*.ts', + 'src/client/**/*.ts', +]; + const indentationFilter = [ 'src/**/*.ts', '!**/typings/**/*', @@ -68,7 +73,7 @@ gulp.task('compile', () => run({ mode: 'compile', skipFormatCheck: true, skipInd gulp.task('watch', ['hygiene-modified', 'hygiene-watch']); -gulp.task('hygiene-watch', () => gulp.watch(all, debounce(() => run({ mode: 'changes' }), 1000))); +gulp.task('hygiene-watch', () => gulp.watch(tsFilter, debounce(() => run({ mode: 'changes' }), 1000))); gulp.task('hygiene-all', () => run({ mode: 'all' })); diff --git a/news/3 Code Health/1040.md b/news/3 Code Health/1040.md new file mode 100644 index 000000000000..88e881779fbd --- /dev/null +++ b/news/3 Code Health/1040.md @@ -0,0 +1 @@ +Trigger incremental build compilation only when typescript files are modified.