From 7fa5233c76bbcd7142b45658518e62fa2b782b61 Mon Sep 17 00:00:00 2001 From: Don Jayamanne Date: Mon, 12 Mar 2018 09:12:50 -0700 Subject: [PATCH 1/3] :hammer: improve compilation condition --- gulpfile.js | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) 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' })); From dfd633d34bb910aa0d14af984d94748ac462408d Mon Sep 17 00:00:00 2001 From: Don Jayamanne Date: Mon, 12 Mar 2018 09:12:59 -0700 Subject: [PATCH 2/3] :memo: change log --- news/3 Code Health/1040.md | 1 + 1 file changed, 1 insertion(+) create mode 100644 news/3 Code Health/1040.md diff --git a/news/3 Code Health/1040.md b/news/3 Code Health/1040.md new file mode 100644 index 000000000000..648808e940b5 --- /dev/null +++ b/news/3 Code Health/1040.md @@ -0,0 +1 @@ +Trigger build incremental compilation only when typescript files are modified. From ceb67fc47757411d99c973104e71cd5361bac482 Mon Sep 17 00:00:00 2001 From: Don Jayamanne Date: Mon, 12 Mar 2018 09:13:56 -0700 Subject: [PATCH 3/3] :hammer: fix change log --- news/3 Code Health/1040.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/news/3 Code Health/1040.md b/news/3 Code Health/1040.md index 648808e940b5..88e881779fbd 100644 --- a/news/3 Code Health/1040.md +++ b/news/3 Code Health/1040.md @@ -1 +1 @@ -Trigger build incremental compilation only when typescript files are modified. +Trigger incremental build compilation only when typescript files are modified.