Skip to content

Commit 853c2b1

Browse files
committed
Add Gulp watch tasks
1 parent dfdac66 commit 853c2b1

File tree

1 file changed

+13
-1
lines changed

1 file changed

+13
-1
lines changed

gulpfile.babel.js

Lines changed: 13 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -110,6 +110,18 @@ gulp.task('compress:firefox', () => {
110110
.pipe(gulp.dest('./build'));
111111
});
112112

113-
gulp.task('default', ['replace-webpack-code', 'webpack:dev', 'views:dev', 'copy:dev']);
113+
/*
114+
* watch tasks
115+
*/
116+
117+
gulp.task('views:watch', () => {
118+
gulp.watch('./src/browser/views/*.jade', ['views:dev']);
119+
});
120+
121+
gulp.task('copy:watch', () => {
122+
gulp.watch(['./src/browser/extension/manifest.json', './src/assets/**/*'], ['copy:dev']);
123+
});
124+
125+
gulp.task('default', ['replace-webpack-code', 'webpack:dev', 'views:dev', 'copy:dev', 'views:watch', 'copy:watch']);
114126
gulp.task('build:extension', ['replace-webpack-code', 'webpack:build:extension', 'views:build:extension', 'copy:build:extension']);
115127
gulp.task('build:firefox', ['copy:build:firefox']);

0 commit comments

Comments
 (0)