Add watch task (see #179)

This commit is contained in:
Fedor A. Fetisov 2017-03-10 01:45:23 +03:00
parent 834e75cdd6
commit 3a85c9060b

View File

@ -256,6 +256,13 @@ gulp.task('page-styles', function() {
});
});
// Watch styles
gulp.task('watch', [], function(){
gulp.watch(config.pageStylesPath + '/**/*.handlebars', ['page-styles']);
gulp.watch(config.chatStylesPath + '/**/js/source/**/*.js', ['chat-styles-js']);
gulp.watch(config.chatStylesPath + '/**/*.handlebars', ['chat-styles-handlebars']);
});
// Generate .pot files based on the sources
gulp.task('generate-pot', function() {
return eventStream.merge(