Add the watch task to gulp's default task.

This commit is contained in:
Christopher Charbonneau Wells 2017-08-21 16:35:11 -04:00
parent e33b3b24b7
commit c0b38f3790
2 changed files with 6 additions and 2 deletions

View File

@ -1,4 +1,4 @@
const gulp = require('gulp'); const gulp = require('gulp');
gulp.task('default', ['scripts', 'styles', 'extras']); gulp.task('default', ['scripts', 'styles', 'extras', 'watch']);

View File

@ -6,10 +6,14 @@ gulp.task('watch', ['watch:scripts', 'watch:styles']);
gulp.task('watch:scripts', function() { gulp.task('watch:scripts', function() {
return gulp.watch([ return gulp.watch([
'**/static/js/**/*.js', '**/static/js/**/*.js',
'babyblotter/static_site/js/**/*.js',
'!babyblotter/static/js/' '!babyblotter/static/js/'
], ['scripts:app']); ], ['scripts:app']);
}); });
gulp.task('watch:styles', function() { gulp.task('watch:styles', function() {
return gulp.watch('**/static/scss/**/*.scss', ['styles:app']); return gulp.watch([
'**/static/scss/**/*.scss',
'babyblotter/static_site/scss/**/*.scss'
], ['styles:app']);
}); });