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
@@ -0,0 +1,23 @@
/*
* @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}))
}))
}