Make aspnet-angular compatible with AoT compilation

This commit is contained in:
Steve Sanderson
2017-08-02 10:53:46 +01:00
parent c83605baff
commit 5f1450c9ba
4 changed files with 11 additions and 4 deletions

View File

@@ -1,3 +1,5 @@
/node_modules/ /node_modules/
**/*.js **/*.js
**/*.d.ts **/*.d.ts
**/*.metadata.json
/compiled

View File

@@ -1,2 +1,3 @@
!/*.js !/*.js
!/*.d.ts !/*.d.ts
/compiled

View File

@@ -1,10 +1,10 @@
{ {
"name": "aspnet-angular", "name": "aspnet-angular",
"version": "0.1.0", "version": "0.1.1",
"description": "Helpers for using Angular in ASP.NET Core projects", "description": "Helpers for using Angular in ASP.NET Core projects",
"main": "index.js", "main": "index.js",
"scripts": { "scripts": {
"prepublish": "rimraf *.d.ts && tsc && echo 'Finished building NPM package \"aspnet-angular\"'", "prepublish": "rimraf *.d.ts && ngc && echo 'Finished building NPM package \"aspnet-angular\"'",
"test": "echo \"Error: no test specified\" && exit 1" "test": "echo \"Error: no test specified\" && exit 1"
}, },
"repository": { "repository": {
@@ -18,11 +18,12 @@
}, },
"devDependencies": { "devDependencies": {
"@angular/common": "^4.3.2", "@angular/common": "^4.3.2",
"@angular/compiler": "^4.3.2",
"@angular/compiler-cli": "^4.3.2",
"@angular/core": "^4.3.2", "@angular/core": "^4.3.2",
"@angular/http": "^4.3.2", "@angular/http": "^4.3.2",
"@angular/platform-browser": "^4.3.2", "@angular/platform-browser": "^4.3.2",
"rimraf": "^2.6.1", "rimraf": "^2.6.1",
"typescript": "^2.4.2",
"rxjs": "^5.4.2", "rxjs": "^5.4.2",
"zone.js": "^0.8.16" "zone.js": "^0.8.16"
}, },

View File

@@ -13,5 +13,8 @@
], ],
"exclude": [ "exclude": [
"node_modules" "node_modules"
] ],
"angularCompilerOptions": {
"genDir": "compiled"
}
} }