mirror of
https://github.com/Deutscher-Tischfussballbund/com_sportsmanager.git
synced 2026-06-10 06:27:52 +00:00
init
This commit is contained in:
Executable
+24
@@ -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
|
||||
);
|
||||
Reference in New Issue
Block a user