-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathgulpfile.js
executable file
·47 lines (39 loc) · 1.09 KB
/
gulpfile.js
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
34
35
36
37
38
39
40
41
42
43
44
45
46
47
var gulp = require("gulp");
var rollup = require("rollup");
var nodeResolve = require("rollup-plugin-node-resolve");
var commonjs = require("rollup-plugin-commonjs");
gulp.task("rollup", function () {
var inputConfig = {
input: "./lib/es6_global/src/Index.js",
plugins: [
nodeResolve({
skip: [
],
extensions: [".js"]
}),
commonjs({
namedExports: {
},
extensions: [".js"]
})
]
};
var outputConfig = {
file: "./dist/wdimgui.js",
format: "umd",
name: "wdimgui",
indent: '\t'
};
return rollup.rollup(inputConfig)
.then(bundle => bundle.write(outputConfig))
});
var generate = require("wonder-generate-index");
var path = require("path");
gulp.task("generateIndex", function (done) {
var rootDir = path.join(process.cwd(), "src"),
destDir = "./src/";
generate.generate("/", rootDir, ["**/api/*.re", "**/api/**/*.re"], destDir, {
exclude: []
});
done();
});