sonarr-repo-only/gulp/watch.js

20 lines
670 B
JavaScript
Raw Normal View History

2014-08-28 21:40:18 +00:00
var gulp = require('gulp');
2015-07-22 02:38:46 +00:00
var livereload = require('gulp-livereload');
2014-08-28 21:40:18 +00:00
var paths = require('./paths.js');
require('./handlebars.js');
require('./less.js');
require('./copy.js');
2015-02-03 01:18:45 +00:00
require('./webpack.js');
2014-08-28 21:40:18 +00:00
2017-02-11 06:50:16 +00:00
gulp.task('watch', ['handlebars', 'less', 'copyHtml', 'copyContent', 'copyJs'], function () {
2015-07-22 02:38:46 +00:00
livereload.listen();
gulp.start('webpackWatch');
2017-02-11 06:50:16 +00:00
gulp.watch([paths.src.scripts, paths.src.exclude.libs], ['copyJs']);
2015-07-22 02:38:46 +00:00
gulp.watch(paths.src.templates, ['handlebars']);
gulp.watch([paths.src.less, paths.src.exclude.libs], ['less']);
gulp.watch([paths.src.html], ['copyHtml']);
gulp.watch([paths.src.content + '**/*.*', '!**/*.less'], ['copyContent']);
2017-02-11 06:50:16 +00:00
});