提供了es6,es6,typescript三个分支到javascript插件开发模板
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.
 

14 lines
389 B

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