Migrate angular core and cli to version 15 and update dependencies to be compatible with the newer version.

This commit is contained in:
Konstantinos Triantafyllou 2023-08-04 11:11:42 +03:00
parent 4de0ac0072
commit 26018fad27
3 changed files with 19 additions and 23 deletions

View File

@ -13,30 +13,30 @@
},
"private": true,
"dependencies": {
"@angular/animations": "^14.2.3",
"@angular/common": "^14.2.3",
"@angular/compiler": "^14.2.3",
"@angular/core": "^14.2.3",
"@angular/forms": "^14.2.3",
"@angular/localize": "^14.2.3",
"@angular/platform-browser": "^14.2.3",
"@angular/platform-browser-dynamic": "^14.2.3",
"@angular/router": "^14.2.3",
"@angular/animations": "^15.2.9",
"@angular/common": "^15.2.9",
"@angular/compiler": "^15.2.9",
"@angular/core": "^15.2.9",
"@angular/forms": "^15.2.9",
"@angular/localize": "^15.2.9",
"@angular/platform-browser": "^15.2.9",
"@angular/platform-browser-dynamic": "^15.2.9",
"@angular/router": "^15.2.9",
"core-js": "^2.4.1",
"file-saver": "^2.0.2",
"jquery": "^3.4.1",
"ngx-pagination": "^3.2.1",
"ngx-pagination": "^6.0.3",
"nouislider": "^13.1.5",
"rxjs": "^6.5.1",
"tslib": "^2.0.0",
"uikit": "^3.1.5",
"uikit": "^3.13.10",
"zone.js": "~0.11.4"
},
"devDependencies": {
"@angular-devkit/build-angular": "^14.2.3",
"@angular/cli": "^14.2.3",
"@angular/compiler-cli": "^14.2.3",
"@angular/language-service": "^14.2.3",
"@angular-devkit/build-angular": "^15.2.9",
"@angular/cli": "^15.2.9",
"@angular/compiler-cli": "^15.2.9",
"@angular/language-service": "^15.2.9",
"@types/file-saver": "^2.0.1",
"@types/jasmine": "~3.6.0",
"@types/jasminewd2": "~2.0.6",
@ -50,7 +50,7 @@
"karma-coverage-istanbul-reporter": "~3.0.2",
"karma-jasmine": "~4.0.0",
"karma-jasmine-html-reporter": "^1.6.0",
"ng-packagr": "^14.2.1",
"ng-packagr": "^15.2.2",
"protractor": "~7.0.0",
"ts-node": "~8.2.0",
"typescript": "~4.9.5"

View File

@ -14,7 +14,6 @@ import {
// Unfortunately there's no typing for the `__karma__` variable. Just declare it as any.
declare const __karma__: any;
declare const require: any;
// Prevent Karma from running prematurely.
__karma__.loaded = function () {};
@ -26,9 +25,5 @@ getTestBed().initTestEnvironment(
teardown: { destroyAfterEach: false }
}
);
// Then we find all the tests.
const context = require.context('./', true, /\.spec\.ts$/);
// And load the modules.
context.keys().map(context);
// Finally, start Karma to run the tests.
__karma__.start();

View File

@ -8,7 +8,7 @@
"declaration": false,
"moduleResolution": "node",
"experimentalDecorators": true,
"target": "es2020",
"target": "ES2022",
"typeRoots": [
"node_modules/@types"
],
@ -17,6 +17,7 @@
"dom"
],
"module": "es2020",
"baseUrl": "./"
"baseUrl": "./",
"useDefineForClassFields": false
}
}