Skip to content

Commit f8b7365

Browse files
jmaGarfield-fr
andcommitted
chore: upgrade Angular v17 and Formly v6
Extraction of title and description to avoid reference problems with the schema. * Upgrades Angular to version 17. * Upgrades ngx-formly to version 6. * Fixes multicheckbox. * Fixes tests. * Updates formToWidget to use new props property. * Fixes resolve$ref function if the properties is undefined. * Uses ngx-formly primeng. * Updates editor. * Fixes eslint. * Fixes title and description on the editor. * Updates angular templates with new syntax. Co-Authored-by: Bertrand Zuchuat <[email protected]> Co-Authored-by: Johnny Mariethoz <[email protected]>
1 parent 36621b6 commit f8b7365

File tree

157 files changed

+13636
-23653
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

157 files changed

+13636
-23653
lines changed

.eslintrc.json

+2-1
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,8 @@
3535
"style": "camelCase",
3636
"type": "attribute"
3737
}
38-
]
38+
],
39+
"@angular-eslint/component-class-suffix": ["off"]
3940
}
4041
},
4142
{

.github/workflows/main.yml

+4-4
Original file line numberDiff line numberDiff line change
@@ -9,17 +9,17 @@ jobs:
99

1010
strategy:
1111
matrix:
12-
node-version: [14.x, 16.x]
12+
node-version: [18.x, 20.x]
1313

1414
steps:
15-
- uses: actions/checkout@v3
15+
- uses: actions/checkout@v4
1616
- name: Use Node.js ${{ matrix.node-version }}
17-
uses: actions/setup-node@v3
17+
uses: actions/setup-node@v4
1818
with:
1919
node-version: ${{ matrix.node-version }}
2020
- name: install package
2121
run: |
22-
npm install -g @angular/cli@14
22+
npm install -g @angular/cli@17
2323
npm ci
2424
- name: run tests
2525
run: |

angular.json

+14-7
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,6 @@
11
{
22
"$schema": "./node_modules/@angular/cli/lib/config/schema.json",
33
"version": 1,
4-
"defaultProject": "@rero/ng-core",
54
"projects": {
65
"@rero/ng-core": {
76
"projectType": "library",
@@ -51,6 +50,12 @@
5150
"build": {
5251
"builder": "@angular-devkit/build-angular:browser",
5352
"options": {
53+
"allowedCommonJsDependencies": [
54+
"crypto-js",
55+
"easymde",
56+
"js-generate-password",
57+
"moment"
58+
],
5459
"outputPath": "dist/ng-core-tester",
5560
"index": "projects/ng-core-tester/src/index.html",
5661
"main": "projects/ng-core-tester/src/main.ts",
@@ -62,10 +67,12 @@
6267
],
6368
"styles": [
6469
"projects/ng-core-tester/src/styles.scss",
65-
"node_modules/ngx-bootstrap/datepicker/bs-datepicker.css",
66-
"node_modules/primeicons/primeicons.css",
6770
"node_modules/primeng/resources/themes/lara-light-blue/theme.css",
68-
"node_modules/primeng/resources/primeng.min.css"
71+
"node_modules/primeng/resources/primeng.min.css",
72+
"node_modules/primeflex/primeflex.min.css",
73+
"node_modules/primeicons/primeicons.css",
74+
"node_modules/ngx-spinner/animations/ball-zig-zag.css",
75+
"node_modules/ngx-bootstrap/datepicker/bs-datepicker.css"
6976
],
7077
"vendorChunk": true,
7178
"extractLicenses": false,
@@ -107,7 +114,7 @@
107114
"serve": {
108115
"builder": "@angular-devkit/build-angular:dev-server",
109116
"options": {
110-
"browserTarget": "ng-core-tester:build"
117+
"buildTarget": "ng-core-tester:build"
111118
},
112119
"configurations": {
113120
"localhost": {
@@ -117,14 +124,14 @@
117124
"proxyConfig": "proxies/wiremockapi.json"
118125
},
119126
"production": {
120-
"browserTarget": "ng-core-tester:build:production"
127+
"buildTarget": "ng-core-tester:build:production"
121128
}
122129
}
123130
},
124131
"extract-i18n": {
125132
"builder": "@angular-devkit/build-angular:extract-i18n",
126133
"options": {
127-
"browserTarget": "ng-core-tester:build"
134+
"buildTarget": "ng-core-tester:build"
128135
}
129136
},
130137
"test": {

0 commit comments

Comments
 (0)