@tsdi/annotations
v6.0.48
Published
Typescript class annotations for ioc, it is a solution for typescript class compile to es5 uglify. for project used tsioc to es5 uglify
Downloads
51
Maintainers
Readme
packaged @tsdi/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 @tsdi/annotations --save-dev
Demo
import { classAnnotations } '@tsdi/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
- @tsdi/ioc document.
- @tsdi/aop document.
- @tsdi/core document.
- @tsdi/boot document.
- @tsdi/components document.
- @tsdi/activities document.
- @tsdi/typeorm-adapter document.
- @tsdi/unit document.
- @tsdi/unit-console document.
- @tsdi/cli document.
License
MIT © Houjun