mirror of
https://github.com/Deutscher-Tischfussballbund/com_sportsmanager.git
synced 2026-06-10 14:37:52 +00:00
24 lines
568 B
JavaScript
24 lines
568 B
JavaScript
/*
|
|
* @title Copy
|
|
* @description A task to copy files to the output directory
|
|
*/
|
|
|
|
// Dependencies
|
|
import { src } from 'gulp';
|
|
import mergeStream from 'merge-stream';
|
|
import plumber from "gulp-plumber";
|
|
import errorHandler from "../util/errorHandler";
|
|
import clean from "gulp-clean";
|
|
|
|
// Config
|
|
import { pjson } from '../config';
|
|
|
|
// Task
|
|
export function cleanBoilerplate() {
|
|
return mergeStream(pjson.boilerplate.files.map(function(item) {
|
|
return src(item.dest, {allowEmpty: true})
|
|
.pipe(plumber({errorHandler}))
|
|
.pipe(clean({force: true}))
|
|
}))
|
|
}
|