-
-
Notifications
You must be signed in to change notification settings - Fork 31
Expand file tree
/
Copy pathgulpfile.js
More file actions
33 lines (31 loc) · 762 Bytes
/
gulpfile.js
File metadata and controls
33 lines (31 loc) · 762 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
const { src, dest, parallel } = require("gulp")
const rename = require("gulp-concat");
// const uglify = require("gulp-uglify");
// const babel = require("gulp-babel");
// const babili = require("gulp-babili");
function modern() {
return src("dist/rig.js")
.pipe(rename("theorem.js"))
.pipe(dest("dist"));
}
// gulp.task("minify", () => {
// gulp.src("dist/rig.js")
// .pipe(babili({
// mangle: {
// keepClassName: true
// }
// }))
// .pipe(rename({
// basename: "theorem",
// suffix: ".min"
// }))
// .pipe(gulp.dest("dist"));
// })
function tests() {
return src("dist/rig.js")
.pipe(rename("theorem.js"))
.pipe(dest("__test__"));
}
exports.modern = modern
exports.tests = tests
exports.default = parallel(modern, tests);