Add a gulp watch task.

This commit is contained in:
Christopher Charbonneau Wells 2017-08-21 16:19:45 -04:00
parent 7daa691b21
commit f62c8edf52
1 changed files with 15 additions and 0 deletions

View File

@ -0,0 +1,15 @@
var gulp = require('gulp');
gulp.task('watch', ['watch:scripts', 'watch:styles']);
gulp.task('watch:scripts', function() {
return gulp.watch([
'**/static/js/**/*.js',
'!babyblotter/static/js/'
], ['scripts:app']);
});
gulp.task('watch:styles', function() {
return gulp.watch('**/static/scss/**/*.scss', ['styles:app']);
});