Lidarr/frontend/gulp/watch.js

19 lines
543 B
JavaScript
Raw Normal View History

2018-09-16 02:32:34 +00:00
const gulp = require('gulp');
const livereload = require('gulp-livereload');
const gulpWatch = require('gulp-watch');
2018-09-16 02:32:34 +00:00
const paths = require('./helpers/paths.js');
2017-09-04 02:20:56 +00:00
require('./copy.js');
require('./webpack.js');
function watch() {
2018-09-16 02:32:34 +00:00
livereload.listen({ start: true });
2017-09-04 02:20:56 +00:00
gulp.task('webpackWatch')();
gulpWatch(paths.src.html, gulp.series('copyHtml'));
gulpWatch(`${paths.src.fonts}**/*.*`, gulp.series('copyFonts'));
gulpWatch(`${paths.src.images}**/*.*`, gulp.series('copyImages'));
}
2017-09-04 02:20:56 +00:00
gulp.task('watch', gulp.series('build', watch));