From f62c8edf528432ffbe8ed6149f633b71e4f35972 Mon Sep 17 00:00:00 2001 From: Christopher Charbonneau Wells Date: Mon, 21 Aug 2017 16:19:45 -0400 Subject: [PATCH] Add a gulp watch task. --- gulpfile.js/tasks/watch.js | 15 +++++++++++++++ 1 file changed, 15 insertions(+) create mode 100644 gulpfile.js/tasks/watch.js diff --git a/gulpfile.js/tasks/watch.js b/gulpfile.js/tasks/watch.js new file mode 100644 index 00000000..c73dbbac --- /dev/null +++ b/gulpfile.js/tasks/watch.js @@ -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']); +});