1 Star 1 Fork 45

gonson / ThinkTs

forked from Asciphx / ThinkTs 
加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
克隆/下载
gulpfile.js 510 Bytes
一键复制 编辑 原始数据 按行查看 历史
Asciphx 提交于 2020-10-12 18:05 . update 1.8.9
const gulp = require('gulp');
const $ = require('gulp-terser');
const ts = require('gulp-typescript');
const _ = ts.createProject("tsconfig.json")
gulp.task('build', () =>
_.src().pipe(_()).js
.pipe($({
ecma:2020,
mangle: {
eval: false,
keep_fnames: true,
toplevel: true,
keep_classnames:true,
properties: false
},compress:{
properties:false,
toplevel: true,
keep_classnames:true,
keep_fnames:false
}
}))
.pipe(gulp.dest('dist'))
);
TypeScript
1
https://gitee.com/leionson/ThinkTs.git
git@gitee.com:leionson/ThinkTs.git
leionson
ThinkTs
ThinkTs
master

搜索帮助