Skip to content

Commit

Permalink
feat(admin-ui): Update to Angular v15.x
Browse files Browse the repository at this point in the history
  • Loading branch information
michaelbromley committed Mar 2, 2023
1 parent ea25804 commit 0c503b4
Show file tree
Hide file tree
Showing 7 changed files with 1,053 additions and 1,376 deletions.
28 changes: 14 additions & 14 deletions packages/admin-ui/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -20,15 +20,15 @@
"directory": "package"
},
"dependencies": {
"@angular/animations": "14.2.12",
"@angular/animations": "15.2.1",
"@angular/cdk": "13.2.3",
"@angular/common": "14.2.12",
"@angular/core": "14.2.12",
"@angular/forms": "14.2.12",
"@angular/language-service": "14.2.12",
"@angular/platform-browser": "14.2.12",
"@angular/platform-browser-dynamic": "14.2.12",
"@angular/router": "14.2.12",
"@angular/common": "15.2.1",
"@angular/core": "15.2.1",
"@angular/forms": "15.2.1",
"@angular/language-service": "15.2.1",
"@angular/platform-browser": "15.2.1",
"@angular/platform-browser-dynamic": "15.2.1",
"@angular/router": "15.2.1",
"@apollo/client": "^3.5.5",
"@biesbjerg/ngx-translate-extract-marker": "^1.0.0",
"@cds/core": "^5.6.4",
Expand Down Expand Up @@ -66,10 +66,10 @@
"zone.js": "~0.11.4"
},
"devDependencies": {
"@angular-devkit/build-angular": "^14.2.10",
"@angular/cli": "14.2.10",
"@angular/compiler": "14.2.12",
"@angular/compiler-cli": "14.2.12",
"@angular-devkit/build-angular": "^15.2.1",
"@angular/cli": "15.2.1",
"@angular/compiler": "15.2.1",
"@angular/compiler-cli": "15.2.1",
"@vendure/ngx-translate-extract": "^8.0.5",
"@types/jasmine": "~3.6.0",
"@types/jasminewd2": "~2.0.6",
Expand All @@ -85,11 +85,11 @@
"karma-jasmine": "~4.0.0",
"karma-jasmine-html-reporter": "^1.7.0",
"karma-mocha-reporter": "^2.2.5",
"ng-packagr": "14.2.2",
"ng-packagr": "15.2.2",
"protractor": "~7.0.0",
"puppeteer": "^8.0.0",
"rimraf": "^3.0.2",
"tslint": "~6.1.3",
"typescript": "4.8.4"
}
}
}
17 changes: 0 additions & 17 deletions packages/admin-ui/src/.browserslistrc

This file was deleted.

6 changes: 1 addition & 5 deletions packages/admin-ui/src/app/app.module.ts
Original file line number Diff line number Diff line change
Expand Up @@ -7,11 +7,7 @@ import { routes } from './app.routes';

@NgModule({
declarations: [],
imports: [
CommonModule,
AppComponentModule,
RouterModule.forRoot(routes, { useHash: false, relativeLinkResolution: 'legacy' }),
],
imports: [CommonModule, AppComponentModule, RouterModule.forRoot(routes, { useHash: false })],
providers: [],
bootstrap: [AppComponent],
})
Expand Down
8 changes: 1 addition & 7 deletions packages/admin-ui/src/test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -7,13 +7,7 @@ import {
platformBrowserDynamicTesting,
} from '@angular/platform-browser-dynamic/testing';

declare const require: any;

// First, initialize the Angular testing environment.
getTestBed().initTestEnvironment(BrowserDynamicTestingModule, platformBrowserDynamicTesting(), {
teardown: { destroyAfterEach: false }
teardown: { destroyAfterEach: false },
});
// Then we find all the tests.
const context = require.context('./', true, /\.spec\.ts$/);
// And load the modules.
context.keys().map(context);
5 changes: 3 additions & 2 deletions packages/admin-ui/tsconfig.json
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
"strict": true,
"noImplicitAny": false,
"strictPropertyInitialization": false,
"target": "es2020",
"target": "ES2022",
"skipLibCheck": true,
"esModuleInterop": true,
"allowSyntheticDefaultImports": true,
Expand Down Expand Up @@ -56,6 +56,7 @@
"@vendure/admin-ui/system": [
"./src/lib/system/src/public_api"
]
}
},
"useDefineForClassFields": false
}
}
1 change: 0 additions & 1 deletion packages/admin-ui/tsconfig.lib.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,6 @@
"compilerOptions": {
"outDir": "../../out-tsc/lib",
"declarationMap": true,
"target": "es2020",
"declaration": true,
"inlineSources": true,
"types": [],
Expand Down
Loading

0 comments on commit 0c503b4

Please sign in to comment.