eesyphp/static/lib/bootstrap4dialog/gulpfile.js
Benjamin Renard 4f47dc056d Tpl: Add stuff to handle static files
* Move example application in example sub-directory
* Widely use App::get() instead of Config::get()
2023-02-12 00:30:36 +01:00

19 lines
520 B
JavaScript

"use strict";
const gulp = require("gulp");
const clean = require("gulp-clean");
const minify = require("gulp-minify");
gulp.task("clean", function() {
return gulp.src(["dist/**"]).pipe(clean({ allowEmpty: true }));
});
gulp.task("dist", gulp.series("clean", function() {
return gulp
.src(["src/js/bootstrap4dialog.js"])
.pipe(gulp.dest("dist/js"))
.pipe(minify({ noSource: true, ext: ".min.js" }))
.pipe(gulp.dest("dist/js"));
}));
gulp.task("default", gulp.series("dist"));