1
0
Fork 0
mirror of https://github.com/Radarr/Radarr synced 2024-12-28 10:51:48 +00:00
Radarr/frontend/gulp/watch.js

19 lines
543 B
JavaScript
Raw Normal View History

2018-11-23 07:04:42 +00:00
const gulp = require('gulp');
const livereload = require('gulp-livereload');
const gulpWatch = require('gulp-watch');
2018-11-23 07:04:42 +00:00
const paths = require('./helpers/paths.js');
require('./copy.js');
require('./webpack.js');
function watch() {
2018-11-23 07:04:42 +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'));
}
2018-11-23 07:04:42 +00:00
gulp.task('watch', gulp.series('build', watch));