Skip to content

Commit 1738fbe

Browse files
author
benholloway
committed
added watch of HTML since it may now be required() in the JS task
1 parent 084d058 commit 1738fbe

File tree

1 file changed

+3
-8
lines changed

1 file changed

+3
-8
lines changed

tasks/watch.js

Lines changed: 3 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -18,10 +18,10 @@ gulp.task('watch', ['server'], function () {
1818
});
1919

2020
// watch statements
21-
watch(streams.getGlob(['**/*.js', '!*.js', '!**/*.spec.js'], [streams.APP, streams.NODE, streams.BOWER]), {
22-
name : 'JS',
21+
watch(streams.getGlob(['**/*.js', '**/*.html', '!*.*', '!**/*.spec.*'], [streams.APP, streams.NODE, streams.BOWER]), {
22+
name : 'JS|HTML',
2323
emitOnGlob: false
24-
}, queue.getHandler('js', 'html', 'reload')); // html will be needed in case previous injection failed
24+
}, queue.getHandler('js', 'html', 'reload')); // app html will be needed in case previous injection failed
2525

2626
watch(streams.getGlob(['**/*.scss', '!*.scss'], [streams.APP, streams.NODE, streams.BOWER]), {
2727
name : 'CSS',
@@ -33,11 +33,6 @@ gulp.task('watch', ['server'], function () {
3333
emitOnGlob: false
3434
}, queue.getHandler('html', 'reload'));
3535

36-
watch(streams.APP + '/**/*.html', {
37-
name : 'HTML',
38-
emitOnGlob: false
39-
}, queue.getHandler('html', 'reload'));
40-
4136
watch(streams.getGlob(['**/*.spec.js', '!*.spec.js']), {
4237
name : 'TEST',
4338
emitOnGlob: false

0 commit comments

Comments
 (0)