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'); }); });