feat: update to Angular 11 (#5826)

This commit is contained in:
Sergey Andrievskiy 2021-01-19 13:52:09 +03:00 committed by GitHub
parent 98166c5274
commit ebe181085b
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
10 changed files with 2902 additions and 3306 deletions

View file

@ -13,7 +13,6 @@
"options": { "options": {
"aot": true, "aot": true,
"preserveSymlinks": true, "preserveSymlinks": true,
"rebaseRootRelativeCssUrls": true,
"outputPath": "dist", "outputPath": "dist",
"index": "src/index.html", "index": "src/index.html",
"main": "src/main.ts", "main": "src/main.ts",
@ -72,7 +71,6 @@
"optimization": true, "optimization": true,
"outputHashing": "all", "outputHashing": "all",
"sourceMap": false, "sourceMap": false,
"extractCss": true,
"namedChunks": false, "namedChunks": false,
"aot": true, "aot": true,
"extractLicenses": true, "extractLicenses": true,

View file

@ -1,5 +1,5 @@
{ {
"extends": "../tsconfig.base.json", "extends": "../tsconfig.json",
"compilerOptions": { "compilerOptions": {
"outDir": "../out-tsc/e2e", "outDir": "../out-tsc/e2e",
"baseUrl": "./", "baseUrl": "./",

6074
package-lock.json generated

File diff suppressed because it is too large Load diff

View file

@ -31,21 +31,21 @@
}, },
"dependencies": { "dependencies": {
"@akveo/ng2-completer": "^9.0.1", "@akveo/ng2-completer": "^9.0.1",
"@angular/animations": "^10.0.10", "@angular/animations": "^11.0.9",
"@angular/cdk": "10.1.1", "@angular/cdk": "11.0.4",
"@angular/common": "^10.0.10", "@angular/common": "^11.0.9",
"@angular/compiler": "^10.0.10", "@angular/compiler": "^11.0.9",
"@angular/core": "^10.0.10", "@angular/core": "^11.0.9",
"@angular/forms": "^10.0.10", "@angular/forms": "^11.0.9",
"@angular/google-maps": "^10.1.3", "@angular/google-maps": "^11.0.4",
"@angular/platform-browser": "^10.0.10", "@angular/platform-browser": "^11.0.9",
"@angular/platform-browser-dynamic": "^10.0.10", "@angular/platform-browser-dynamic": "^11.0.9",
"@angular/router": "^10.0.10", "@angular/router": "^11.0.9",
"@asymmetrik/ngx-leaflet": "3.0.1", "@asymmetrik/ngx-leaflet": "3.0.1",
"@nebular/auth": "6.0.0", "@nebular/auth": "7.0.0",
"@nebular/eva-icons": "6.0.0", "@nebular/eva-icons": "7.0.0",
"@nebular/security": "6.0.0", "@nebular/security": "7.0.0",
"@nebular/theme": "6.0.0", "@nebular/theme": "7.0.0",
"@swimlane/ngx-charts": "^14.0.0", "@swimlane/ngx-charts": "^14.0.0",
"angular2-chartjs": "0.4.1", "angular2-chartjs": "0.4.1",
"bootstrap": "4.3.1", "bootstrap": "4.3.1",
@ -74,31 +74,31 @@
"tslib": "^2.0.0", "tslib": "^2.0.0",
"typeface-exo": "0.0.22", "typeface-exo": "0.0.22",
"web-animations-js": "^2.3.2", "web-animations-js": "^2.3.2",
"zone.js": "~0.10.2" "zone.js": "~0.10.3"
}, },
"devDependencies": { "devDependencies": {
"@angular-devkit/build-angular": "~0.1000.6", "@angular-devkit/build-angular": "~0.1100.7",
"@angular/cli": "^10.0.6", "@angular/cli": "^11.0.7",
"@angular/compiler-cli": "^10.0.10", "@angular/compiler-cli": "^11.0.9",
"@angular/language-service": "10.0.10", "@angular/language-service": "11.0.9",
"@compodoc/compodoc": "1.0.1", "@compodoc/compodoc": "1.0.1",
"@fortawesome/fontawesome-free": "^5.2.0", "@fortawesome/fontawesome-free": "^5.2.0",
"@types/d3-color": "1.0.5", "@types/d3-color": "1.0.5",
"@types/googlemaps": "^3.39.3", "@types/googlemaps": "^3.39.3",
"@types/jasmine": "2.5.54", "@types/jasmine": "^3.3.0",
"@types/jasminewd2": "2.0.3", "@types/jasminewd2": "2.0.3",
"@types/leaflet": "1.2.3", "@types/leaflet": "1.2.3",
"@types/node": "^12.11.1", "@types/node": "^12.11.1",
"codelyzer": "^6.0.0", "codelyzer": "^6.0.0",
"conventional-changelog-cli": "1.3.4", "conventional-changelog-cli": "1.3.4",
"husky": "0.13.3", "husky": "0.13.3",
"jasmine-core": "~3.5.0", "jasmine-core": "~3.6.0",
"jasmine-spec-reporter": "~5.0.0", "jasmine-spec-reporter": "~5.0.0",
"karma": "~5.0.0", "karma": "~5.1.1",
"karma-chrome-launcher": "~3.1.0", "karma-chrome-launcher": "~3.1.0",
"karma-cli": "1.0.1", "karma-cli": "1.0.1",
"karma-coverage-istanbul-reporter": "~3.0.2", "karma-coverage-istanbul-reporter": "~3.0.2",
"karma-jasmine": "~3.3.0", "karma-jasmine": "~4.0.0",
"karma-jasmine-html-reporter": "^1.5.0", "karma-jasmine-html-reporter": "^1.5.0",
"npm-run-all": "4.0.2", "npm-run-all": "4.0.2",
"protractor": "~7.0.0", "protractor": "~7.0.0",
@ -107,6 +107,6 @@
"ts-node": "3.2.2", "ts-node": "3.2.2",
"tslint": "~6.1.0", "tslint": "~6.1.0",
"tslint-language-service": "^0.9.9", "tslint-language-service": "^0.9.9",
"typescript": "3.9.7" "typescript": "4.0.5"
} }
} }

View file

@ -5,7 +5,7 @@
// framework component themes (styles tied to theme variables) // framework component themes (styles tied to theme variables)
@import '~@nebular/theme/styles/globals'; @import '~@nebular/theme/styles/globals';
@import '~@nebular/auth/styles/all'; @import '~@nebular/auth/styles/globals';
@import '~bootstrap/scss/functions'; @import '~bootstrap/scss/functions';
@import '~bootstrap/scss/variables'; @import '~bootstrap/scss/variables';

View file

@ -54,7 +54,7 @@
<nb-card-body class="checkbox-radio"> <nb-card-body class="checkbox-radio">
<div class="demo-items"> <div class="demo-items">
<nb-checkbox>Checkbox 1</nb-checkbox> <nb-checkbox>Checkbox 1</nb-checkbox>
<nb-checkbox [value]="true">Checkbox 2</nb-checkbox> <nb-checkbox checked>Checkbox 2</nb-checkbox>
</div> </div>
<div class="demo-items"> <div class="demo-items">
<nb-radio-group [(value)]="radioGroupValue"> <nb-radio-group [(value)]="radioGroupValue">

View file

@ -1,17 +1,14 @@
{ {
"extends": "../tsconfig.base.json", "extends": "../tsconfig.json",
"compilerOptions": { "compilerOptions": {
"outDir": "../out-tsc/app", "outDir": "../out-tsc/app",
"baseUrl": "./" "baseUrl": "./"
}, },
"exclude": [ "files": [
"test.ts", "main.ts",
"**/*.spec.ts", "polyfills.ts"
"../node_modules/@nebular/**/*.spec.ts"
], ],
"include": [ "include": [
"../src/*.ts", "**/*.d.ts"
"../src/**/*.ts",
"../node_modules/@nebular/**/*.ts"
] ]
} }

View file

@ -1,5 +1,5 @@
{ {
"extends": "../tsconfig.base.json", "extends": "../tsconfig.json",
"compilerOptions": { "compilerOptions": {
"outDir": "../out-tsc/spec", "outDir": "../out-tsc/spec",
"baseUrl": "./", "baseUrl": "./",

View file

@ -1,24 +0,0 @@
{
"compileOnSave": false,
"compilerOptions": {
"importHelpers": true,
"module": "es2020",
"outDir": "./dist/out-tsc",
"sourceMap": true,
"declaration": false,
"moduleResolution": "node",
"emitDecoratorMetadata": true,
"experimentalDecorators": true,
"target": "es2015",
"typeRoots": [
"node_modules/@types"
],
"lib": [
"es2017",
"dom"
],
"plugins": [
{ "name": "tslint-language-service"}
]
}
}

View file

@ -1,17 +1,24 @@
/*
This is a "Solution Style" tsconfig.json file, and is used by editors and TypeScripts language server to improve development experience.
It is not intended to be used to perform a compilation.
To learn more about this file see: https://angular.io/config/solution-tsconfig.
*/
{ {
"files": [], "compileOnSave": false,
"references": [ "compilerOptions": {
{ "importHelpers": true,
"path": "./src/tsconfig.app.json" "module": "es2020",
}, "outDir": "./dist/out-tsc",
{ "sourceMap": true,
"path": "./src/tsconfig.spec.json" "declaration": false,
} "moduleResolution": "node",
] "emitDecoratorMetadata": true,
"experimentalDecorators": true,
"target": "es2015",
"typeRoots": [
"node_modules/@types"
],
"lib": [
"es2017",
"dom"
],
"plugins": [
{ "name": "tslint-language-service"}
]
}
} }