-
Notifications
You must be signed in to change notification settings - Fork 11
Expand file tree
/
Copy pathgulpfile.js
More file actions
37 lines (30 loc) · 864 Bytes
/
gulpfile.js
File metadata and controls
37 lines (30 loc) · 864 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
34
35
36
37
const gulp = require("gulp");
const shell = require("gulp-shell");
const uglify = require("gulp-uglify");
gulp.task(
"uglify",
shell.task([
"uglifyjs --compress --mangle -- libs/particlejs.js > libs/particlejs.min.js"
])
);
gulp.task("build-particle-system", shell.task(["webpack"]));
gulp.task("start", gulp.series("build-particle-system", "uglify"));
const typedoc = require("gulp-typedoc");
gulp.task("typedoc", () =>
gulp.src(["src/particlejs.ts"]).pipe(
typedoc({
// TypeScript options (see typescript docs)
module: "umd",
target: "es5",
includeDeclarations: false,
// Output options (see typedoc docs)
out: "./docs",
mode: "file",
// TypeDoc options (see typedoc docs)
name: "ParticleJS",
theme: "minimal",
ignoreCompilerErrors: true,
version: true
})
)
);