Skip to content

Commit aaa2998

Browse files
committed
chore: update to Angular 15
1 parent 2635a67 commit aaa2998

File tree

9 files changed

+37
-66
lines changed

9 files changed

+37
-66
lines changed

.browserslistrc

Lines changed: 0 additions & 16 deletions
This file was deleted.

CLI.md

Lines changed: 9 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,24 +1,27 @@
11
# Angular
22

3-
This library was generated with [Angular CLI](https://github.com/angular/angular-cli) version 9.0.0-rc.9.
3+
This library was generated with [Angular CLI](https://github.com/angular/angular-cli) version 15.2.0.
44

55
## Code scaffolding
66

7-
Run `ng generate component component-name --project angular` to generate a new component. You can also use `ng generate directive|pipe|service|class|guard|interface|enum|module --project angular`.
8-
> Note: Don't forget to add `--project angular` or else it will be added to the default project in your `angular.json` file.
7+
Run `ng generate component component-name` to generate a new component. You can also use `ng generate directive|pipe|service|class|guard|interface|enum|module`.
98

109
## Build
1110

12-
Run `ng build angular` to build the project. The build artifacts will be stored in the `dist/` directory.
11+
Run `ng build` to build the project. The build artifacts will be stored in the `dist/` directory.
1312

1413
## Publishing
1514

1615
After building your library with `ng build angular`, go to the dist folder `cd dist/angular` and run `npm publish`.
1716

1817
## Running unit tests
1918

20-
Run `ng test angular` to execute the unit tests via [Karma](https://karma-runner.github.io).
19+
Run `ng test` to execute the unit tests via [Karma](https://karma-runner.github.io).
20+
21+
## Running end-to-end tests
22+
23+
Run `ng e2e` to execute the end-to-end tests via a platform of your choice. To use this command, you need to first add a package that implements end-to-end testing capabilities.
2124

2225
## Further help
2326

24-
To get more help on the Angular CLI use `ng help` or go check out the [Angular CLI README](https://github.com/angular/angular-cli/blob/master/README.md).
27+
To get more help on the Angular CLI use `ng help` or go check out the [Angular CLI Overview and Command Reference](https://angular.io/cli) page.

package.json

Lines changed: 18 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -31,24 +31,24 @@
3131
},
3232
"private": true,
3333
"dependencies": {
34-
"@angular/animations": "^14.3.0",
35-
"@angular/common": "^14.3.0",
36-
"@angular/compiler": "^14.3.0",
37-
"@angular/core": "^14.3.0",
38-
"@angular/forms": "^14.3.0",
39-
"@angular/localize": "^14.3.0",
40-
"@angular/platform-browser": "^14.3.0",
41-
"@angular/platform-browser-dynamic": "^14.3.0",
42-
"@angular/router": "^14.3.0",
43-
"rxjs": "^7.5.0",
34+
"@angular/animations": "^15.2.5",
35+
"@angular/common": "^15.2.5",
36+
"@angular/compiler": "^15.2.5",
37+
"@angular/core": "^15.2.5",
38+
"@angular/forms": "^15.2.5",
39+
"@angular/localize": "^15.2.5",
40+
"@angular/platform-browser": "^15.2.5",
41+
"@angular/platform-browser-dynamic": "^15.2.5",
42+
"@angular/router": "^15.2.5",
43+
"rxjs": "^7.8.0",
4444
"tslib": "^2.3.0",
45-
"zone.js": "~0.11.4"
45+
"zone.js": "~0.12.0"
4646
},
4747
"devDependencies": {
48-
"@angular-devkit/build-angular": "^14.2.11",
49-
"@angular/cli": "^14.2.11",
50-
"@angular/compiler-cli": "^14.3.0",
51-
"@angular/language-service": "^14.3.0",
48+
"@angular-devkit/build-angular": "^15.2.4",
49+
"@angular/cli": "^15.2.4",
50+
"@angular/compiler-cli": "^15.2.5",
51+
"@angular/language-service": "^15.2.5",
5252
"@coreui/coreui": "^2.1.16",
5353
"@types/jasmine": "^4.3.1",
5454
"@types/node": "^16.18.23",
@@ -59,16 +59,16 @@
5959
"karma-coverage": "~2.2.0",
6060
"karma-jasmine": "~5.1.0",
6161
"karma-jasmine-html-reporter": "^2.0.0",
62-
"ng-packagr": "^14.2.2",
62+
"ng-packagr": "^15.2.2",
6363
"ngx-perfect-scrollbar": "^10.1.1",
6464
"protractor": "~7.0.0",
6565
"shelljs": "^0.8.5",
6666
"simple-line-icons": "^2.5.5",
6767
"ts-node": "^10.8.2",
68-
"typescript": "~4.7.2"
68+
"typescript": "~4.9.4"
6969
},
7070
"engines": {
71-
"node": "^14.15.0 || >=16.10.0",
71+
"node": "^14.20.0 || ^16.13.0 || ^18.10.0",
7272
"npm": ">= 8"
7373
}
7474
}

projects/coreui-angular/package.json

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -20,9 +20,9 @@
2020
"tslib": "^2.3.0"
2121
},
2222
"peerDependencies": {
23-
"@angular/common": "^14.0.0",
24-
"@angular/core": "^14.0.0",
25-
"@angular/router": "^14.0.0"
23+
"@angular/common": "^15.0.0",
24+
"@angular/core": "^15.0.0",
25+
"@angular/router": "^15.0.0"
2626
},
2727
"repository": {
2828
"type": "git",

projects/coreui-angular/src/test.ts

Lines changed: 0 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -10,13 +10,6 @@ import {
1010

1111
import '@angular/localize/init';
1212

13-
declare const require: {
14-
context(path: string, deep?: boolean, filter?: RegExp): {
15-
<T>(id: string): T;
16-
keys(): string[];
17-
};
18-
};
19-
2013
// First, initialize the Angular testing environment.
2114
getTestBed().initTestEnvironment(
2215
BrowserDynamicTestingModule,
@@ -25,7 +18,3 @@ getTestBed().initTestEnvironment(
2518
teardown: { destroyAfterEach: false }
2619
}
2720
);
28-
// Then we find all the tests.
29-
const context = require.context('./', true, /\.spec\.ts$/);
30-
// And load the modules.
31-
context.keys().forEach(context);

src/app/app.routing.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ export const routes: Routes = [
2727
];
2828

2929
@NgModule({
30-
imports: [ RouterModule.forRoot(routes, { relativeLinkResolution: 'legacy' }) ],
30+
imports: [ RouterModule.forRoot(routes, {}) ],
3131
exports: [ RouterModule ]
3232
})
3333
export class AppRoutingModule {}

src/scss/style.scss

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
@import "variables";
33

44
// Import styles
5-
@import "~@coreui/coreui/scss/coreui";
5+
@import "@coreui/coreui/scss/coreui";
66

77
// If you want to add something do it here
88
@import "custom";

src/test.ts

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -7,16 +7,10 @@ import {
77
platformBrowserDynamicTesting
88
} from '@angular/platform-browser-dynamic/testing';
99

10-
declare const require: any;
11-
1210
// First, initialize the Angular testing environment.
1311
getTestBed().initTestEnvironment(
1412
BrowserDynamicTestingModule,
1513
platformBrowserDynamicTesting(), {
1614
teardown: { destroyAfterEach: false }
1715
}
1816
);
19-
// Then we find all the tests.
20-
const context = require.context('./', true, /\.spec\.ts$/);
21-
// And load the modules.
22-
context.keys().map(context);

tsconfig.json

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -21,15 +21,16 @@
2121
"experimentalDecorators": true,
2222
"moduleResolution": "node",
2323
"importHelpers": true,
24-
"target": "es2020",
25-
"module": "es2020",
24+
"target": "ES2022",
25+
"module": "es2022",
2626
"typeRoots": [
2727
"node_modules/@types"
2828
],
2929
"lib": [
30-
"es2020",
30+
"es2022",
3131
"dom"
32-
]
32+
],
33+
"useDefineForClassFields": false
3334
},
3435
"angularCompilerOptions": {
3536
"enableI18nLegacyMessageIdFormat": false,

0 commit comments

Comments
 (0)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy