mirror of
https://github.com/WilliamsNY/contain-element.git
synced 2024-11-09 17:46:38 -05:00
21 lines
528 B
JavaScript
21 lines
528 B
JavaScript
const gulp = require("gulp"),
|
|
ugly = require("gulp-uglify"),
|
|
concat = require("gulp-concat");
|
|
|
|
gulp.task("module", function() {
|
|
return gulp.src([ "contain-element.js", "module-template.js" ])
|
|
.pipe(concat("contain-element-module.js"))
|
|
.pipe(gulp.dest("./"));
|
|
});
|
|
|
|
gulp.task("minify", function() {
|
|
return gulp.src("contain-element.js")
|
|
.pipe(ugly())
|
|
.pipe(concat("contain-element.min.js"))
|
|
.pipe(gulp.dest("./"));
|
|
});
|
|
|
|
gulp.task("default", [
|
|
"module",
|
|
"minify"
|
|
]);
|