Skip to content

Commit

Permalink
feat(*): AoT compilation support (with ngc)
Browse files Browse the repository at this point in the history
fix #68
  • Loading branch information
urish committed Oct 1, 2016
1 parent 8d547eb commit f100a33
Show file tree
Hide file tree
Showing 3 changed files with 29 additions and 6 deletions.
4 changes: 4 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -28,3 +28,7 @@ module.d.ts
*.spec.js
*.spec.js.map
*.spec.d.ts

# ngc generated files
/compiled
*.metadata.json
21 changes: 17 additions & 4 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -8,41 +8,48 @@
"index.js",
"index.js.map",
"index.d.ts",
"index.metadata.json",
"src/index.ts",
"module.js",
"module.js.map",
"module.d.ts",
"module.metadata.json",
"src/module.ts",
"typings.json",
"CalendarPipe.js",
"CalendarPipe.js.map",
"CalendarPipe.d.ts",
"CalendarPipe.metadata.json",
"src/CalendarPipe.ts",
"DateFormatPipe.js",
"DateFormatPipe.js.map",
"DateFormatPipe.d.ts",
"DateFormatPipe.metadata.json",
"src/DateFormatPipe.ts",
"DifferencePipe.js",
"DifferencePipe.js.map",
"DifferencePipe.d.ts",
"DifferencePipe.metadata.json",
"src/DifferencePipe.ts",
"DurationPipe.js",
"DurationPipe.js.map",
"DurationPipe.d.ts",
"DurationPipe.metadata.json",
"src/DurationPipe.ts",
"TimeAgoPipe.js",
"TimeAgoPipe.js.map",
"TimeAgoPipe.d.ts",
"TimeAgoPipe.metadata.json",
"src/TimeAgoPipe.ts",
"FromUnixPipe.js",
"FromUnixPipe.js.map",
"FromUnixPipe.d.ts",
"FromUnixPipe.metadata.json",
"src/FromUnixPipe.ts",
"CHANGELOG.md"
],
"scripts": {
"test": "tslint src/*.ts --exclude=src/*.d.ts && tsc && karma start",
"prepublish": "tsc --outDir ."
"test": "tslint src/*.ts --exclude=src/*.d.ts && ngc && karma start",
"prepublish": "ngc && copyfiles -f src/*.js src/*.js.map src/*.d.ts src/*.metadata.json ."
},
"repository": {
"type": "git",
Expand All @@ -65,10 +72,16 @@
"moment": "^2.11.2"
},
"devDependencies": {
"@angular/core": "2.0.0",
"@angular/common": "2.0.1",
"@angular/compiler": "2.0.1",
"@angular/compiler-cli": "0.6.3",
"@angular/core": "2.0.1",
"@angular/platform-browser": "2.0.1",
"@angular/platform-server": "2.0.1",
"@types/jasmine": "2.2.34",
"@types/moment": "2.13.0",
"awesome-typescript-loader": "2.2.4",
"copyfiles": "1.0.0",
"es6-shim": "0.35.1",
"jasmine-core": "2.4.1",
"karma": "1.1.0",
Expand Down
10 changes: 8 additions & 2 deletions tsconfig.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,10 @@
"noImplicitAny": true,
"module": "commonjs",
"target": "es5",
"lib": ["es2015", "dom"],
"lib": [
"es2015",
"dom"
],
"emitDecoratorMetadata": true,
"experimentalDecorators": true,
"sourceMap": true,
Expand All @@ -25,5 +28,8 @@
"src/TimeAgoPipe.spec.ts",
"src/module.ts",
"src/index.ts"
]
],
"angularCompilerOptions": {
"genDir": "compiled"
}
}

0 comments on commit f100a33

Please sign in to comment.