-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathgulpfile.js
36 lines (33 loc) · 1014 Bytes
/
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
var gulp = require("gulp");
var ts = require("gulp-typescript");
var tsProject = ts.createProject("tsconfig.json");
var typedoc = require("gulp-typedoc");
gulp.task("default", function () {
return tsProject.src()
.pipe(tsProject())
.js.pipe(gulp.dest("dist"));
});
gulp.task('watch',function(){
gulp.watch('./src/**/*',['default']);
gulp.watch('./test/**/*',['default']);
});
gulp.task("doc", function() {
return gulp
.src(["src/**/*.ts"])
.pipe(typedoc({
module: "commonjs",
target: "es2015",
out: "docs/",
// json: "docs/file.json",
name: "DMR Source",
hideGenerator: true,
version: false,
theme: "minimal", // markdown | minimal | default
mode: "file",
exclude: ['src/index.ts', 'src/connector.ts'],
excludePrivate: true,
excludeProtected: true,
help: false,
readme: "README.md"
}));
});