-
Notifications
You must be signed in to change notification settings - Fork 63
/
gulpfile.js
37 lines (33 loc) · 1013 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
37
var gulp = require('gulp');
var del = require('del');
var ts = require('gulp-typescript');
var typedoc = require("gulp-typedoc");
var tsProject = ts.createProject('./code/client/tsconfig.json', { "noEmit": false });
gulp.task('clean', function (cb) {
return del(['./code/client/bin-debug/**/*']);
});
gulp.task('compile', ['clean'], function (cb) {
return tsProject.src()
.pipe(tsProject())
.pipe(gulp.dest('./code/client/bin-debug'))
.on('error', function (err) {
cb(err);
});
});
gulp.task('doc', ['compile'], function () {
return gulp.src(['./code/client/libs/**/*.ts',
'./code/client/src/core/**/*.ts'])
.pipe(typedoc({
version: true,
module: "commonjs",
target: "ES5",
tsconfig: "./code/client/tsconfig.json",
excludeExternals: false,
excludePrivate: true,
excludeProtected: false,
includeDeclarations: false,
out: "docs/wiki/",
name: "p1 wiki"
}));
});
gulp.task('default', ['clean', 'compile', 'doc']);