0 Star 0 Fork 0

誓言之印/bootstrap3-dialog

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
该仓库未声明开源许可证文件(LICENSE),使用请关注具体项目描述及其代码上游依赖。
克隆/下载
gulpfile.js 1.50 KB
一键复制 编辑 原始数据 按行查看 历史
// Gulpfile.js
"use strict";
var gulp = require("gulp"),
eslint = require("gulp-eslint"),
less = require("gulp-less"),
minifyCSS = require("gulp-minify-css"),
path = require("path"),
notify = require("gulp-notify"),
clean = require("gulp-clean"),
rename = require("gulp-rename"),
uglify = require("gulp-uglify");
gulp.task("less", function() {
gulp.src("src/less/bootstrap-dialog.less")
.pipe(gulp.dest("dist/less"))
.pipe(less({
paths: [path.join(__dirname, "less", "includes")]
}))
.pipe(gulp.dest("dist/css"))
.pipe(gulp.dest("src/css"))
.pipe(gulp.dest("examples/assets/bootstrap-dialog/css"))
.pipe(rename("bootstrap-dialog.min.css"))
.pipe(minifyCSS())
.pipe(gulp.dest("dist/css"))
.pipe(gulp.dest("examples/assets/bootstrap-dialog/css"));
});
gulp.task("lint", function() {
gulp.src(["src/js/bootstrap-dialog.js"])
.pipe(eslint())
.pipe(eslint.format());
});
gulp.task("dist", ["clean", "less"], function() {
gulp.src(["src/js/bootstrap-dialog.js"])
.pipe(gulp.dest("dist/js"))
.pipe(gulp.dest("examples/assets/bootstrap-dialog/js"))
.pipe(rename("bootstrap-dialog.min.js"))
.pipe(uglify())
.pipe(gulp.dest("dist/js"))
.pipe(gulp.dest("examples/assets/bootstrap-dialog/js"))
.pipe(notify({
message: "Build task completed."
}));
});
gulp.task("clean", function() {
return gulp.src(["dist/"], {
read: false
})
.pipe(clean());
});
gulp.task("default", ["clean"], function() {
gulp.start("dist");
});
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
1
https://gitee.com/hhzgl/bootstrap3-dialog.git
git@gitee.com:hhzgl/bootstrap3-dialog.git
hhzgl
bootstrap3-dialog
bootstrap3-dialog
master

搜索帮助