File tree Expand file tree Collapse file tree 2 files changed +31
-0
lines changed Expand file tree Collapse file tree 2 files changed +31
-0
lines changed Original file line number Diff line number Diff line change 1+ # TypeScript Decorator metadata collector
2+
3+ The ` .d.ts ` format does not preserve information about the Decorators applied to symbols.
4+ Some tools, such as Angular 2 template compiler, need access to statically analyzable
5+ information about Decorators, so this library allows programs to produce a ` foo.metadata.json `
6+ to accompany a ` foo.d.ts ` file, and preserves the information that was lost in the declaration
7+ emit.
8+
9+ ## Releasing
10+ ```
11+ $ gulp build.tools
12+ $ cp tools/metadata/package.json dist/tools/metadata/
13+ $ npm login [angularcore]
14+ $ npm publish dist/tools/metadata
15+ ```
Original file line number Diff line number Diff line change 1+ {
2+ "name" : " ts-metadata-collector" ,
3+ "version" : " 0.1.0" ,
4+ "description" : " Collects static Decorator metadata from TypeScript sources" ,
5+ "homepage" : " https://github.com/angular/angular/tree/master/tools/metadata" ,
6+ "bugs" : " https://github.com/angular/angular/issues" ,
7+ "contributors" : [
8+ " Chuck Jazdzewski <[email protected] >" 9+ ],
10+ "license" : " MIT" ,
11+ "repository" : {"type" :" git" ,"url" :" https://github.com/angular/angular.git" },
12+ "devDependencies" : {},
13+ "peerDependencies" : {
14+ "typescript" : " ^1.8.9 || ^1.9"
15+ }
16+ }
You can’t perform that action at this time.
0 commit comments