This commit is contained in:
Niels Nübel
2020-12-04 11:11:35 +01:00
commit 3d59b14405
114 changed files with 72924 additions and 0 deletions
+24
View File
@@ -0,0 +1,24 @@
/*
* @title Watch
* @description A task to start the server and watch for changes.
*/
// Dependencies
import gulp from 'gulp';
import { series } from 'gulp';
// Tasks
import { reload, serve } from './server';
import { copy } from './copy';
// Config
import { config } from '../config';
function watchFiles() {
gulp.watch(config.paths.copy.watch, series(copy, reload));
}
export const watch = series(
serve,
watchFiles
);