You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
15 lines
389 B
15 lines
389 B
4 years ago
|
const { src, dest, series } = require("gulp");
|
||
|
const concat = require("gulp-concat");
|
||
|
const watch = require("gulp-watch");
|
||
|
|
||
|
function buildTask() {
|
||
|
return src(["src/**/*.js"]).pipe(concat("dec.plugin.demo.js")).pipe(dest("./dist"));
|
||
|
}
|
||
|
|
||
|
function watchTask() {
|
||
|
return watch(["src/**/*.js"], buildTask)
|
||
|
}
|
||
|
|
||
|
exports.buildTask = buildTask;
|
||
|
exports.devTask = series(buildTask, watchTask);
|