aodb/build/gulp/watch.js
Martin Donnelly afe73b5baa upload
2016-12-22 00:00:06 +00:00

20 lines
575 B
JavaScript

var gulp = require('gulp'),
config = require('../gulp.config')(),
watch = require('gulp-watch');
module.exports =
gulp.task('watch', function() {
watch(config.allLess, function() {
gulp.start('compile-less');
});
watch(config.allTemplates, function() {
gulp.start('compile-template-cache');
});
watch(config.allTypescript, function() {
gulp.start(['compile-js']);
});
watch(config.allHtml, function() {
gulp.start('compile-template');
});
});