Skip to content
This repository was archived by the owner on Apr 8, 2020. It is now read-only.

Commit 5f1450c

Browse files
Make aspnet-angular compatible with AoT compilation
1 parent c83605b commit 5f1450c

File tree

4 files changed

+11
-4
lines changed

4 files changed

+11
-4
lines changed
Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
11
/node_modules/
22
**/*.js
33
**/*.d.ts
4+
**/*.metadata.json
5+
/compiled
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,3 @@
11
!/*.js
22
!/*.d.ts
3+
/compiled

src/Microsoft.AspNetCore.SpaServices/npm/aspnet-angular/package.json

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,10 @@
11
{
22
"name": "aspnet-angular",
3-
"version": "0.1.0",
3+
"version": "0.1.1",
44
"description": "Helpers for using Angular in ASP.NET Core projects",
55
"main": "index.js",
66
"scripts": {
7-
"prepublish": "rimraf *.d.ts && tsc && echo 'Finished building NPM package \"aspnet-angular\"'",
7+
"prepublish": "rimraf *.d.ts && ngc && echo 'Finished building NPM package \"aspnet-angular\"'",
88
"test": "echo \"Error: no test specified\" && exit 1"
99
},
1010
"repository": {
@@ -18,11 +18,12 @@
1818
},
1919
"devDependencies": {
2020
"@angular/common": "^4.3.2",
21+
"@angular/compiler": "^4.3.2",
22+
"@angular/compiler-cli": "^4.3.2",
2123
"@angular/core": "^4.3.2",
2224
"@angular/http": "^4.3.2",
2325
"@angular/platform-browser": "^4.3.2",
2426
"rimraf": "^2.6.1",
25-
"typescript": "^2.4.2",
2627
"rxjs": "^5.4.2",
2728
"zone.js": "^0.8.16"
2829
},

src/Microsoft.AspNetCore.SpaServices/npm/aspnet-angular/tsconfig.json

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,5 +13,8 @@
1313
],
1414
"exclude": [
1515
"node_modules"
16-
]
16+
],
17+
"angularCompilerOptions": {
18+
"genDir": "compiled"
19+
}
1720
}

0 commit comments

Comments
 (0)