mirror of
https://github.com/lidarr/lidarr.git
synced 2025-07-06 04:52:21 -07:00
Initial Commit Rework
This commit is contained in:
parent
74a4cc048c
commit
95051cbd63
2483 changed files with 101351 additions and 111396 deletions
27
frontend/gulp/watch.js
Normal file
27
frontend/gulp/watch.js
Normal file
|
@ -0,0 +1,27 @@
|
|||
var gulp = require('gulp');
|
||||
var livereload = require('gulp-livereload');
|
||||
var watch = require('gulp-watch');
|
||||
var paths = require('./helpers/paths.js');
|
||||
|
||||
require('./copy.js');
|
||||
require('./webpack.js');
|
||||
|
||||
function watchTask(glob, task) {
|
||||
var options = {
|
||||
name: `watch: ${task}`,
|
||||
verbose: true
|
||||
};
|
||||
return watch(glob, options, () => {
|
||||
gulp.start(task);
|
||||
});
|
||||
}
|
||||
|
||||
gulp.task('watch', ['copyHtml', 'copyFonts', 'copyImages', 'copyJs'], () => {
|
||||
livereload.listen();
|
||||
|
||||
gulp.start('webpackWatch');
|
||||
|
||||
watchTask(paths.src.html, 'copyHtml');
|
||||
watchTask(paths.src.fonts + '**/*.*', 'copyFonts');
|
||||
watchTask(paths.src.images + '**/*.*', 'copyImages');
|
||||
});
|
Loading…
Add table
Add a link
Reference in a new issue