Skip to content

Commit 67105ae

Browse files
committed
chore: upgrade core to ng9
1 parent f56c9c5 commit 67105ae

File tree

6 files changed

+1613
-713
lines changed

6 files changed

+1613
-713
lines changed

angular.json

+7
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,7 @@
1313
"build": {
1414
"builder": "@angular-devkit/build-angular:browser",
1515
"options": {
16+
"aot": true,
1617
"outputPath": "dist",
1718
"index": "src/index.html",
1819
"main": "src/main.ts",
@@ -24,6 +25,12 @@
2425
},
2526
"configurations": {
2627
"production": {
28+
"budgets": [
29+
{
30+
"type": "anyComponentStyle",
31+
"maximumWarning": "6kb"
32+
}
33+
],
2734
"fileReplacements": [
2835
{
2936
"replace": "src/environments/environment.ts",

package.json

+17-17
Original file line numberDiff line numberDiff line change
@@ -14,18 +14,18 @@
1414
},
1515
"private": true,
1616
"dependencies": {
17-
"@angular/animations": "^8.2.14",
17+
"@angular/animations": "^9.1.12",
1818
"@angular/cdk": "^8.2.3",
19-
"@angular/cli": "^8.3.29",
20-
"@angular/common": "^8.2.14",
21-
"@angular/compiler": "^8.2.14",
22-
"@angular/compiler-cli": "^8.2.14",
23-
"@angular/core": "^8.2.14",
24-
"@angular/forms": "^8.2.14",
19+
"@angular/cli": "^9.1.12",
20+
"@angular/common": "^9.1.12",
21+
"@angular/compiler": "^9.1.12",
22+
"@angular/compiler-cli": "^9.1.12",
23+
"@angular/core": "^9.1.12",
24+
"@angular/forms": "^9.1.12",
2525
"@angular/material": "^8.2.3",
26-
"@angular/platform-browser": "^8.2.14",
27-
"@angular/platform-browser-dynamic": "^8.2.14",
28-
"@angular/router": "^8.2.14",
26+
"@angular/platform-browser": "^9.1.12",
27+
"@angular/platform-browser-dynamic": "^9.1.12",
28+
"@angular/router": "^9.1.12",
2929
"@ngxs/devtools-plugin": "^3.4.1",
3030
"@ngxs/logger-plugin": "^3.4.1",
3131
"@ngxs/router-plugin": "^3.4.1",
@@ -38,24 +38,24 @@
3838
"path": "^0.12.7",
3939
"rxjs": "^6.6.3",
4040
"rxjs-compat": "^6.4.0",
41-
"tslib": "^1.9.0",
42-
"typescript": "~3.5.3",
43-
"zone.js": "~0.9.1"
41+
"tslib": "^1.10.0",
42+
"typescript": "~3.8.3",
43+
"zone.js": "~0.10.2"
4444
},
4545
"devDependencies": {
46-
"@angular-devkit/build-angular": "~0.803.29",
47-
"@angular/language-service": "^8.2.14",
46+
"@angular-devkit/build-angular": "~0.901.12",
47+
"@angular/language-service": "^9.1.12",
4848
"@babel/core": "^7.3.4",
4949
"@commitlint/cli": "^7.5.2",
5050
"@commitlint/config-conventional": "^7.5.0",
5151
"@ngxs/schematics": "^0.0.1-alpha.5",
5252
"@types/jasmine": "^3.3.9",
5353
"@types/jasminewd2": "^2.0.6",
5454
"@types/jest": "^24.0.9",
55-
"@types/node": "^11.10.4",
55+
"@types/node": "^12.11.1",
5656
"babel-core": "^7.0.0-bridge.0",
5757
"babel-jest": "^24.1.0",
58-
"codelyzer": "^5.0.1",
58+
"codelyzer": "^5.1.2",
5959
"enhanced-resolve": "^4.1.0",
6060
"husky": "^1.3.1",
6161
"jasmine-core": "^3.3.0",

src/app/auth/auth.module.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ export const COMPONENTS = [LoginPageComponent, LoginFormComponent];
2121
exports: COMPONENTS,
2222
})
2323
export class AuthModule {
24-
static forRoot(): ModuleWithProviders {
24+
static forRoot(): ModuleWithProviders<RootAuthModule> {
2525
return {
2626
ngModule: RootAuthModule,
2727
providers: [AuthService, AuthGuard],

src/app/core/core.module.ts

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import { NgModule } from '@angular/core';
1+
import { ModuleWithProviders, NgModule } from '@angular/core';
22
import { CommonModule } from '@angular/common';
33
import { RouterModule } from '@angular/router';
44

@@ -27,7 +27,7 @@ export const COMPONENTS = [
2727
exports: COMPONENTS,
2828
})
2929
export class CoreModule {
30-
static forRoot() {
30+
static forRoot(): ModuleWithProviders<CoreModule> {
3131
return {
3232
ngModule: CoreModule,
3333
providers: [GoogleBooksService],

src/tsconfig.app.json

+7-1
Original file line numberDiff line numberDiff line change
@@ -4,5 +4,11 @@
44
"outDir": "../out-tsc/app",
55
"types": []
66
},
7-
"exclude": ["src/test.ts", "**/*.spec.ts"]
7+
"files": [
8+
"main.ts",
9+
"polyfills.ts"
10+
],
11+
"include": [
12+
"src/**/*.d.ts"
13+
]
814
}

0 commit comments

Comments
 (0)