Skip to content

Commit

Permalink
Trigger incremental build compilation only when typescript files are …
Browse files Browse the repository at this point in the history
…modified (#1041)

* 🔨 improve compilation condition
* 📝 change log
* Fixes #1040
  • Loading branch information
DonJayamanne authored Mar 15, 2018
1 parent 40a1cbd commit 3703dc6
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 1 deletion.
7 changes: 6 additions & 1 deletion gulpfile.js
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,11 @@ const all = [
'src/client/**/*',
];

const tsFilter = [
'src/**/*.ts',
'src/client/**/*.ts',
];

const indentationFilter = [
'src/**/*.ts',
'!**/typings/**/*',
Expand Down Expand Up @@ -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' }));

Expand Down
1 change: 1 addition & 0 deletions news/3 Code Health/1040.md
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
Trigger incremental build compilation only when typescript files are modified.

0 comments on commit 3703dc6

Please sign in to comment.