sonarr-repo-only/frontend/gulp/watch.js

20 lines
601 B
JavaScript
Raw Normal View History

2018-01-13 02:01:27 +00:00
const gulp = require('gulp');
const livereload = require('gulp-livereload');
const gulpWatch = require('gulp-watch');
2018-01-13 02:01:27 +00:00
const paths = require('./helpers/paths.js');
require('./copy.js');
require('./webpack.js');
function watch() {
2018-01-13 02:01:27 +00:00
livereload.listen({ start: true });
gulp.task('webpackWatch')();
gulpWatch(paths.src.html, gulp.series('copyHtml'));
gulpWatch(`${paths.src.fonts}**/*.*`, gulp.series('copyFonts'));
gulpWatch(`${paths.src.images}**/*.*`, gulp.series('copyImages'));
2020-12-31 21:11:22 +00:00
gulpWatch(paths.src.robots, gulp.series('copyRobots'));
}
2018-01-13 02:01:27 +00:00
gulp.task('watch', gulp.series('build', watch));