@tsdi/annotations

Typescript class annotations for ioc, it is a solution for typescript class compile to es5 uglify. for project used tsioc to es5 uglify

Usage no npm install needed!

<script type="module">
  import tsdiAnnotations from 'https://cdn.skypack.dev/@tsdi/annotations';
</script>

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

License

MIT © Houjun