forked from protobufjs/protobuf.js
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathgulpfile.js
45 lines (40 loc) · 1.18 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
var gulp = require("gulp"),
bundle = require("./bundle");
function defineTask(name, entry, target) {
gulp.task(name + "-bundle", bundle.bind(this, {
entry : entry,
target : target
}));
gulp.task(name + "-minify", bundle.bind(this, {
entry : entry,
target : target,
compress : true
}));
gulp.task(name, gulp.series(
name + "-bundle",
name + "-minify"
), function(done) { done(); });
}
defineTask("full" , "../src/index" , "../dist" );
defineTask("light" , "../src/index-light" , "../dist/light" );
defineTask("minimal", "../src/index-minimal", "../dist/minimal");
gulp.task("default", gulp.parallel(
"full",
"light",
"minimal"
, function(done) { done(); }));
/* var typedoc = require("gulp-typedoc");
gulp.task("typedoc", function() {
return gulp
.src(["../index.d.ts"])
.pipe(typedoc({
module: "commonjs",
target: "es5",
mode: "file",
theme: "default",
includeDeclarations: true,
excludePrivate: true,
out: "../tsdocs",
name: "protobuf.js"
}))
}); */