15 Star 44 Fork 25

Fengziii / p1

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
克隆/下载
gulpfile.js 1013 Bytes
一键复制 编辑 原始数据 按行查看 历史
twem007 提交于 2018-06-15 11:45 . 1、更新API文档
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']);
TypeScript
1
https://gitee.com/fengzii/p1.git
git@gitee.com:fengzii/p1.git
fengzii
p1
p1
master

搜索帮助