Upgrade to ng version 9

This commit is contained in:
Carlos de Miguel Ferrero 2020-12-15 15:51:29 +01:00
parent 39d4396e79
commit 634d42022b
8 changed files with 3311 additions and 1349 deletions

View File

@ -14,7 +14,7 @@ import { Header } from '../shared/components/header/header';
exports: [BasketStatusComponent]
})
export class BasketModule {
static forRoot(): ModuleWithProviders {
static forRoot(): ModuleWithProviders<BasketModule> {
return {
ngModule: BasketModule,
providers: [

View File

@ -57,7 +57,7 @@ import { UppercasePipe } from './pipes/uppercase.pipe';
]
})
export class SharedModule {
static forRoot(): ModuleWithProviders {
static forRoot(): ModuleWithProviders<SharedModule> {
return {
ngModule: SharedModule,
providers: [

View File

@ -2,12 +2,14 @@
"extends": "../tsconfig.json",
"compilerOptions": {
"outDir": "../out-tsc/app",
"module": "es2015",
"baseUrl": "",
"types": []
},
"exclude": [
"test.ts",
"**/*.spec.ts"
"files": [
"main.ts",
"polyfills.ts"
],
"include": [
"Client/**/*.d.ts"
]
}

View File

@ -2,7 +2,6 @@
"extends": "../tsconfig.json",
"compilerOptions": {
"outDir": "../out-tsc/spec",
"module": "commonjs",
"target": "es5",
"baseUrl": "",
"types": [

View File

@ -27,6 +27,12 @@
},
"configurations": {
"production": {
"budgets": [
{
"type": "anyComponentStyle",
"maximumWarning": "6kb"
}
],
"optimization": true,
"outputHashing": "all",
"sourceMap": false,
@ -119,10 +125,13 @@
"schematics": {
"@schematics/angular:component": {
"prefix": "app",
"styleext": "scss"
"style": "scss"
},
"@schematics/angular:directive": {
"prefix": "app"
}
},
"cli": {
"analytics": false
}
}

File diff suppressed because it is too large Load Diff

View File

@ -28,15 +28,15 @@
},
"dependencies": {
"@angular-devkit/schematics": "^11.0.4",
"@angular/animations": "8.2.14",
"@angular/common": "8.2.14",
"@angular/compiler": "8.2.14",
"@angular/core": "8.2.14",
"@angular/forms": "8.2.14",
"@angular/platform-browser": "8.2.14",
"@angular/platform-browser-dynamic": "8.2.14",
"@angular/platform-server": "8.2.14",
"@angular/router": "8.2.14",
"@angular/animations": "9.1.12",
"@angular/common": "9.1.12",
"@angular/compiler": "9.1.12",
"@angular/core": "9.1.12",
"@angular/forms": "9.1.12",
"@angular/platform-browser": "9.1.12",
"@angular/platform-browser-dynamic": "9.1.12",
"@angular/platform-server": "9.1.12",
"@angular/router": "9.1.12",
"@microsoft/signalr": "3.0.1",
"@ng-bootstrap/ng-bootstrap": "5.2.1",
"@popperjs/core": "2.0.0",
@ -53,23 +53,23 @@
"popper.js": "1.16.1",
"rxjs": "^6.5.2",
"rxjs-compat": "^6.5.2",
"tslib": "^1.10.0",
"typedoc": "^0.19.2",
"webpack-dev-server": "3.1.14",
"zone.js": "~0.9.1"
"zone.js": "~0.10.2"
},
"devDependencies": {
"@angular-devkit/build-angular": "0.803.29",
"@angular/cli": "8.3.29",
"@angular/compiler-cli": "8.2.14",
"@angular/language-service": "8.2.14",
"@angular-devkit/build-angular": "~0.901.12",
"@angular/cli": "9.1.12",
"@angular/compiler-cli": "9.1.12",
"@angular/language-service": "9.1.12",
"@types/core-js": "2.5.0",
"@types/hammerjs": "2.0.35",
"@types/jasmine": "^3.5.10",
"@types/node": "^11.15.9",
"@types/node": "^12.11.1",
"@types/protractor": "4.0.0",
"@types/selenium-webdriver": "3.0.10",
"tslib": "^1.10.0",
"codelyzer": "^5.2.2",
"codelyzer": "^5.1.2",
"eslint": "^6.8.0",
"handlebars": "^4.7.6",
"jasmine-core": "^3.5.0",
@ -94,7 +94,6 @@
"webpack": "^4.42.1"
},
"peerDependencies": {
"typescript": "3.6.4",
"tslib": "1.10.0"
"typescript": "3.6.4"
}
}

View File

@ -16,7 +16,7 @@
"es2016",
"dom"
],
"module": "es2015"
"module": "esnext"
},
"angularCompilerOptions": {
"enableIvy": false