mirror of https://github.com/snachodog/mybuddy.git
Add the watch task to gulp's default task.
This commit is contained in:
parent
e33b3b24b7
commit
c0b38f3790
|
@ -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']);
|
||||||
|
|
|
@ -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']);
|
||||||
});
|
});
|
||||||
|
|
Loading…
Reference in New Issue