Skip to content

Commit

Permalink
Upgrade to Angular 15
Browse files Browse the repository at this point in the history
  • Loading branch information
Igor Lückel committed Apr 28, 2023
1 parent 22195de commit 29f60d5
Show file tree
Hide file tree
Showing 4 changed files with 37 additions and 48 deletions.
28 changes: 14 additions & 14 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -37,19 +37,19 @@
"tslib": "^2.3.1"
},
"devDependencies": {
"@angular-devkit/build-angular": "^14.2.11",
"@angular-devkit/core": "^14.2.11",
"@angular/animations": "^14.3.0",
"@angular/cli": "^14.2.11",
"@angular/common": "^14.3.0",
"@angular/compiler": "^14.3.0",
"@angular/compiler-cli": "^14.3.0",
"@angular/core": "^14.3.0",
"@angular/forms": "^14.3.0",
"@angular/language-service": "^14.3.0",
"@angular/platform-browser": "^14.3.0",
"@angular/platform-browser-dynamic": "^14.3.0",
"@angular/router": "^14.3.0",
"@angular-devkit/build-angular": "^15.2.7",
"@angular-devkit/core": "^15.2.7",
"@angular/animations": "^15.2.8",
"@angular/cli": "^15.2.7",
"@angular/common": "^15.2.8",
"@angular/compiler": "^15.2.8",
"@angular/compiler-cli": "^15.2.8",
"@angular/core": "^15.2.8",
"@angular/forms": "^15.2.8",
"@angular/language-service": "^15.2.8",
"@angular/platform-browser": "^15.2.8",
"@angular/platform-browser-dynamic": "^15.2.8",
"@angular/router": "^15.2.8",
"@types/jasmine": "~3.10.3",
"@types/jasminewd2": "~2.0.10",
"@types/node": "^17.0.14",
Expand All @@ -61,7 +61,7 @@
"karma-coverage-istanbul-reporter": "~3.0.3",
"karma-jasmine": "~4.0.1",
"karma-jasmine-html-reporter": "^1.7.0",
"ng-packagr": "^14.2.2",
"ng-packagr": "^15.2.2",
"protractor": "~7.0.0",
"rxjs": "~7.5.2",
"ts-node": "~10.4.0",
Expand Down
11 changes: 0 additions & 11 deletions src/test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -8,19 +8,8 @@ import {
platformBrowserDynamicTesting
} from '@angular/platform-browser-dynamic/testing';

declare const require: {
context(path: string, deep?: boolean, filter?: RegExp): {
keys(): string[];
<T>(id: string): T;
};
};

// First, initialize the Angular testing environment.
getTestBed().initTestEnvironment(
BrowserDynamicTestingModule,
platformBrowserDynamicTesting()
);
// Then we find all the tests.
const context = require.context('./', true, /\.spec\.ts$/);
// And load the modules.
context.keys().map(context);
45 changes: 23 additions & 22 deletions tsconfig.json
Original file line number Diff line number Diff line change
@@ -1,28 +1,29 @@
{
"compileOnSave": false,
"compilerOptions": {
"baseUrl": "./",
"outDir": "./dist/out-tsc",
"sourceMap": true,
"declaration": false,
"downlevelIteration": true,
"experimentalDecorators": true,
"module": "es2020",
"moduleResolution": "node",
"importHelpers": true,
"target": "es2020",
"typeRoots": [
"node_modules/@types"
],
"lib": [
"es2018",
"dom"
],
"paths": {
"angular2-hotkeys": [
"dist/"
]
}
"baseUrl": "./",
"outDir": "./dist/out-tsc",
"sourceMap": true,
"declaration": false,
"downlevelIteration": true,
"experimentalDecorators": true,
"module": "es2020",
"moduleResolution": "node",
"importHelpers": true,
"target": "ES2022",
"typeRoots": [
"node_modules/@types"
],
"lib": [
"es2018",
"dom"
],
"paths": {
"angular2-hotkeys": [
"dist/"
]
},
"useDefineForClassFields": false
},
"angularCompilerOptions": {
"fullTemplateTypeCheck": true,
Expand Down
1 change: 0 additions & 1 deletion tsconfig.lib.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@
"extends": "./tsconfig.json",
"compilerOptions": {
"outDir": "./out-tsc/lib",
"target": "es2020",
"declaration": true,
"inlineSources": true,
"types": [],
Expand Down

0 comments on commit 29f60d5

Please sign in to comment.