Gulp: Watch for changes in both blender-cloud and pillar folders.

This commit is contained in:
2018-11-20 19:19:22 +01:00
parent 5218bd17e3
commit 76a707e5bf

View File

@@ -94,10 +94,24 @@ gulp.task('watch',function() {
livereload.listen();
}
gulp.watch('src/styles/**/*.sass',['styles']);
gulp.watch(source.pillar + 'src/styles/**/*.sass',['styles']);
gulp.watch('src/scripts/*.js',['scripts']);
gulp.watch('src/templates/**/*.pug',['templates']);
let watchStyles = [
'src/styles/**/*.sass',
source.pillar + 'src/styles/**/*.sass',
];
let watchScripts = [
'src/scripts/**/*.js',
source.pillar + 'src/scripts/**/*.js',
];
let watchTemplates = [
'src/templates/**/*.pug',
source.pillar + 'src/templates/**/*.pug',
];
gulp.watch(watchStyles,['styles']);
gulp.watch(watchScripts,['scripts']);
gulp.watch(watchTemplates,['templates']);
});