UNPKG

light-boilerplate

Version:

Lightweight and powerfull startkit for your next project!

28 lines (23 loc) 623 B
/** * Copy Launch Files * @description Copy the Default Build Files to distribution */ import meow from '../../config.json'; import gulp from 'gulp'; import gutil from 'gulp-util'; import gulpLoadPlugins from 'gulp-load-plugins'; const $ = gulpLoadPlugins(); function copyLaunchTask(cb) { meow.files.launch.forEach((item) => { return gulp .src(meow.src.system + item.src) .pipe( global.checkChanged === true ? $.changed(meow.dist.base + item.dest) : gutil.noop() ) .pipe(gulp.dest(meow.dist.base + item.dest)); }); cb(); } export default copyLaunchTask;