@ts-ioc/annotations
v4.0.5
Published
typescript class annotations is a solution for typescript class compile to es5 uglify. for project used tsioc to es5 uglify
Downloads
42
Maintainers
Readme
packaged @ts-ioc/annotations
This repo is for distribution on npm
. The source for this module is in the
main repo.
Please file issues and pull requests against that repo.
typescript class annotations is a solution for typescript class compile to es5 uglify. for project used tsioc to es5 uglify.
Install
You can install this package either with npm
.
npm
npm install @ts-ioc/annotations --save-dev
Demo
import { classAnnotations } '@ts-ioc/annotations';
const ts = require('gulp-typescript');
gulp.src('src/**/*.ts')
.pipe(classAnnotations())
.pipe(ts)
Demo for pack build
@Pack({
baseURL: __dirname,
src: 'src',
clean: 'lib',
test: 'test/**/*.spec.ts',
assets: {
ts: { dest: 'lib', annotation: true, uglify: false }
}
})
export class AnnoBuilder {
}
pk build [taskfile.ts]
https://github.com/zhouhoujun/tsioc.git
Documentation
Documentation is available on the @ts-ioc/annotations docs site.
License
MIT © Houjun