mirror of
https://github.com/Deutscher-Tischfussballbund/com_sportsmanager.git
synced 2026-06-10 14:37:52 +00:00
25 lines
459 B
JavaScript
Executable File
25 lines
459 B
JavaScript
Executable File
/*
|
|
* @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
|
|
);
|