Skip to content

Commit 3703dc6

Browse files
authored
Trigger incremental build compilation only when typescript files are modified (#1041)
* 🔨 improve compilation condition * 📝 change log * Fixes #1040
1 parent 40a1cbd commit 3703dc6

File tree

2 files changed

+7
-1
lines changed

2 files changed

+7
-1
lines changed

gulpfile.js

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,6 +36,11 @@ const all = [
3636
'src/client/**/*',
3737
];
3838

39+
const tsFilter = [
40+
'src/**/*.ts',
41+
'src/client/**/*.ts',
42+
];
43+
3944
const indentationFilter = [
4045
'src/**/*.ts',
4146
'!**/typings/**/*',
@@ -68,7 +73,7 @@ gulp.task('compile', () => run({ mode: 'compile', skipFormatCheck: true, skipInd
6873

6974
gulp.task('watch', ['hygiene-modified', 'hygiene-watch']);
7075

71-
gulp.task('hygiene-watch', () => gulp.watch(all, debounce(() => run({ mode: 'changes' }), 1000)));
76+
gulp.task('hygiene-watch', () => gulp.watch(tsFilter, debounce(() => run({ mode: 'changes' }), 1000)));
7277

7378
gulp.task('hygiene-all', () => run({ mode: 'all' }));
7479

news/3 Code Health/1040.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
Trigger incremental build compilation only when typescript files are modified.

0 commit comments

Comments
 (0)