@tsdi/annotations
TypeScript icon, indicating that this package has built-in type declarations

6.0.48 • Public • Published

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

Dependencies (5)

Dev Dependencies (0)

    Package Sidebar

    Install

    npm i @tsdi/annotations

    Weekly Downloads

    186

    Version

    6.0.48

    License

    MIT

    Unpacked Size

    12.8 kB

    Total Files

    8

    Last publish

    Collaborators

    • houjun