1 Star 0 Fork 25

游戏玩玩/p1

forked from 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']);
Loading...
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
TypeScript
1
https://gitee.com/playing-games365/p1.git
[email protected]:playing-games365/p1.git
playing-games365
p1
p1
dev

搜索帮助