mirror of
https://github.com/lidarr/Lidarr
synced 2025-01-18 12:54:53 +00:00
0a6f552d5b
* New: Webpack 4 * New: Gulp 4 * New: Transpile UI for old browsers Co-Authored-By: Mark McDowall <markus101@users.noreply.github.com>
18 lines
543 B
JavaScript
18 lines
543 B
JavaScript
const gulp = require('gulp');
|
|
const livereload = require('gulp-livereload');
|
|
const gulpWatch = require('gulp-watch');
|
|
const paths = require('./helpers/paths.js');
|
|
|
|
require('./copy.js');
|
|
require('./webpack.js');
|
|
|
|
function watch() {
|
|
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'));
|
|
}
|
|
|
|
gulp.task('watch', gulp.series('build', watch));
|