Skip to content

Commit

Permalink
deps(workbench): update @scion/workbench to Angular 15
Browse files Browse the repository at this point in the history
closes #347

BREAKING CHANGE: Updating `@scion/workbench` to Angular 15 introduced a breaking change.

To migrate:
- update your application to Angular 15.x; for detailed migration instructions, refer to https://v15.angular.io/guide/update-to-latest-version;
- update @scion/components to version 15; for detailed migration instructions, refer to https://github.com/SchweizerischeBundesbahnen/scion-toolkit/blob/master/CHANGELOG_COMPONENTS.md;
  • Loading branch information
Marcarrian committed Feb 8, 2023
1 parent b9f03fd commit 9a77b1f
Show file tree
Hide file tree
Showing 48 changed files with 6,364 additions and 8,112 deletions.
6 changes: 1 addition & 5 deletions .eslintrc.json
Original file line number Diff line number Diff line change
Expand Up @@ -9,12 +9,8 @@
"files": [
"*.ts"
],
"parserOptions": {
"project": [
"tsconfig.json"
]
},
"extends": [
"eslint:recommended",
"plugin:@typescript-eslint/recommended",
"plugin:@angular-eslint/recommended",
"plugin:@angular-eslint/template/process-inline-templates",
Expand Down
1 change: 1 addition & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -51,6 +51,7 @@ Although SCION Workbench is designed for use in Angular applications, its workbe
***

### Versions
- `v15.0.0-beta.1` and newer are compatible with Angular version 15.x.
- `v14.0.0-beta.1` and newer are compatible with Angular version 14.x.
- `v13.0.0-beta.1` and newer are compatible with Angular version 13.x.
- `v12.0.0-beta.1` and newer are compatible with Angular version 12.x.
Expand Down
16 changes: 14 additions & 2 deletions angular.json
Original file line number Diff line number Diff line change
Expand Up @@ -106,7 +106,9 @@
"outputPath": "dist/workbench-testing-app",
"index": "apps/workbench-testing-app/src/index.html",
"main": "apps/workbench-testing-app/src/main.ts",
"polyfills": "apps/workbench-testing-app/src/polyfills.ts",
"polyfills": [
"zone.js"
],
"tsConfig": "apps/workbench-testing-app/tsconfig.app.json",
"inlineStyleLanguage": "scss",
"assets": [
Expand Down Expand Up @@ -233,7 +235,9 @@
"outputPath": "dist/workbench-client-testing-app",
"index": "apps/workbench-client-testing-app/src/index.html",
"main": "apps/workbench-client-testing-app/src/main.ts",
"polyfills": "apps/workbench-client-testing-app/src/polyfills.ts",
"polyfills": [
"zone.js"
],
"tsConfig": "apps/workbench-client-testing-app/tsconfig.app.json",
"inlineStyleLanguage": "scss",
"assets": [
Expand Down Expand Up @@ -347,5 +351,13 @@
}
}
}
},
"schematics": {
"@angular-eslint/schematics:application": {
"setParserOptionsProject": true
},
"@angular-eslint/schematics:library": {
"setParserOptionsProject": true
}
}
}
26 changes: 0 additions & 26 deletions apps/workbench-client-testing-app/.browserslistrc

This file was deleted.

4 changes: 1 addition & 3 deletions apps/workbench-client-testing-app/.eslintrc.json
Original file line number Diff line number Diff line change
Expand Up @@ -9,9 +9,7 @@
"*.ts"
],
"parserOptions": {
"project": [
"apps/workbench-client-testing-app/tsconfig.app.eslint.json"
]
"project": "apps/workbench-client-testing-app/tsconfig.app.eslint.json"
},
"rules": {
"@angular-eslint/directive-selector": [
Expand Down
6 changes: 0 additions & 6 deletions apps/workbench-client-testing-app/src/main.ts
Original file line number Diff line number Diff line change
Expand Up @@ -8,15 +8,9 @@
* SPDX-License-Identifier: EPL-2.0
*/

import {enableProdMode} from '@angular/core';
import {platformBrowserDynamic} from '@angular/platform-browser-dynamic';

import {AppModule} from './app/app.module';
import {environment} from './environments/environment';

if (environment.production) {
enableProdMode();
}

platformBrowserDynamic().bootstrapModule(AppModule)
.catch(err => console.error(err));
63 changes: 0 additions & 63 deletions apps/workbench-client-testing-app/src/polyfills.ts

This file was deleted.

1 change: 0 additions & 1 deletion apps/workbench-client-testing-app/tsconfig.app.json
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,6 @@
},
"files": [
"src/main.ts",
"src/polyfills.ts"
],
"include": [
"src/**/*.d.ts"
Expand Down
26 changes: 0 additions & 26 deletions apps/workbench-testing-app/.browserslistrc

This file was deleted.

4 changes: 1 addition & 3 deletions apps/workbench-testing-app/.eslintrc.json
Original file line number Diff line number Diff line change
Expand Up @@ -9,9 +9,7 @@
"*.ts"
],
"parserOptions": {
"project": [
"apps/workbench-testing-app/tsconfig.app.eslint.json"
]
"project": "apps/workbench-testing-app/tsconfig.app.eslint.json"
},
"rules": {
"@angular-eslint/directive-selector": [
Expand Down
6 changes: 0 additions & 6 deletions apps/workbench-testing-app/src/main.ts
Original file line number Diff line number Diff line change
Expand Up @@ -8,15 +8,9 @@
* SPDX-License-Identifier: EPL-2.0
*/

import {enableProdMode} from '@angular/core';
import {platformBrowserDynamic} from '@angular/platform-browser-dynamic';

import {AppModule} from './app/app.module';
import {environment} from './environments/environment';

if (environment.production) {
enableProdMode();
}

platformBrowserDynamic().bootstrapModule(AppModule)
.catch(err => console.error(err));
63 changes: 0 additions & 63 deletions apps/workbench-testing-app/src/polyfills.ts

This file was deleted.

1 change: 0 additions & 1 deletion apps/workbench-testing-app/tsconfig.app.json
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,6 @@
},
"files": [
"src/main.ts",
"src/polyfills.ts"
],
"include": [
"src/**/*.d.ts"
Expand Down
Loading

0 comments on commit 9a77b1f

Please sign in to comment.