2016-06-20 16:53:45 -04:00
|
|
|
const gulp = require("gulp"),
|
|
|
|
ugly = require("gulp-uglify"),
|
|
|
|
concat = require("gulp-concat");
|
2015-06-30 16:50:22 -04:00
|
|
|
|
2017-11-13 19:54:55 -05:00
|
|
|
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() {
|
2016-06-20 16:53:45 -04:00
|
|
|
return gulp.src("contain-element.js")
|
|
|
|
.pipe(ugly())
|
|
|
|
.pipe(concat("contain-element.min.js"))
|
|
|
|
.pipe(gulp.dest("./"));
|
2015-06-30 16:50:22 -04:00
|
|
|
});
|
|
|
|
|
2017-11-13 19:54:55 -05:00
|
|
|
gulp.task("default", [
|
|
|
|
"module",
|
|
|
|
"minify"
|
|
|
|
]);
|