Files
com_sportsmanager/gulpfile.babel.js/tasks/clean-boilerplate.js
T
Niels Nübel 3d59b14405 init
2020-12-04 11:11:35 +01:00

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}))
}))
}