@dsivd/prestations-ng 16.0.0-beta2 → 16.0.0-beta3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
|
@@ -71,10 +71,10 @@ After:
|
|
|
71
71
|
}
|
|
72
72
|
```
|
|
73
73
|
|
|
74
|
-
## Adding `import` ,`jasmine` ,`jsdoc` ,`
|
|
74
|
+
## Adding `import` ,`jasmine` ,`jsdoc` ,`simple-import-sort` ,`rxjs` and `rxjs-angular` as plugins
|
|
75
75
|
|
|
76
76
|
```bash
|
|
77
|
-
yarn add eslint-plugin-import eslint-plugin-jasmine eslint-plugin-jsdoc eslint-plugin-
|
|
77
|
+
yarn add eslint-plugin-import eslint-plugin-jasmine eslint-plugin-jsdoc eslint-plugin-simple-import-sort eslint-plugin-rxjs eslint-plugin-rxjs-angular --dev
|
|
78
78
|
```
|
|
79
79
|
|
|
80
80
|
## Customizing ESLint (inspired from OTIA and prestations-ng's files for rules)
|
|
@@ -97,11 +97,10 @@ You can replace the content of your `.eslintrc.json` with the following `json`.
|
|
|
97
97
|
"/package.json",
|
|
98
98
|
"/angular.json",
|
|
99
99
|
"/karma.conf.js",
|
|
100
|
+
"/.eslintrc.json",
|
|
100
101
|
"/tsconfig*.json",
|
|
101
|
-
"/src/
|
|
102
|
+
"/src/tsconfig*.json",
|
|
102
103
|
"/src/main.ts",
|
|
103
|
-
"/src/polyfills.ts",
|
|
104
|
-
"/src/environments/*.ts",
|
|
105
104
|
"/src/typings.d.ts"
|
|
106
105
|
],
|
|
107
106
|
"reportUnusedDisableDirectives": true,
|
|
@@ -133,7 +132,6 @@ You can replace the content of your `.eslintrc.json` with the following `json`.
|
|
|
133
132
|
"plugins": [
|
|
134
133
|
"import",
|
|
135
134
|
"jsdoc",
|
|
136
|
-
"prefer-arrow",
|
|
137
135
|
"rxjs",
|
|
138
136
|
"rxjs-angular",
|
|
139
137
|
"simple-import-sort"
|
|
@@ -334,7 +332,7 @@ You can replace the content of your `.eslintrc.json` with the following `json`.
|
|
|
334
332
|
"jsdoc/newline-after-description": "error",
|
|
335
333
|
"jsdoc/no-types": "error",
|
|
336
334
|
"jsdoc/require-param-type": "off",
|
|
337
|
-
"jsdoc/require-returns-type": "off"
|
|
335
|
+
"jsdoc/require-returns-type": "off"
|
|
338
336
|
}
|
|
339
337
|
},
|
|
340
338
|
// HTML
|
package/UPGRADING_V16.md
CHANGED
|
@@ -34,12 +34,163 @@ ng update \
|
|
|
34
34
|
ts-node@10
|
|
35
35
|
ng update @dsivd/prestations-ng@latest
|
|
36
36
|
|
|
37
|
-
yarn add eslint-import-resolver-typescript --dev
|
|
38
37
|
yarn remove eslint-plugin-prefer-arrow
|
|
38
|
+
yarn add eslint-plugin-simple-import-sort --dev
|
|
39
|
+
yarn add eslint-import-resolver-typescript --dev
|
|
39
40
|
# Remove your resolutions in package.json before executing 'yarn upgrade'
|
|
40
41
|
yarn upgrade
|
|
41
42
|
```
|
|
42
43
|
|
|
44
|
+
## Update "package.json" file to replace tilde(~) by caret(^) on following dependencies to be aligned with prestations-ng library
|
|
45
|
+
|
|
46
|
+
- core-js
|
|
47
|
+
- dayjs
|
|
48
|
+
- ng-http-loader
|
|
49
|
+
- ngx-image-cropper
|
|
50
|
+
- rxjs
|
|
51
|
+
- zone.js
|
|
52
|
+
|
|
53
|
+
Then run an update
|
|
54
|
+
|
|
55
|
+
```bash
|
|
56
|
+
yarn install
|
|
57
|
+
```
|
|
58
|
+
|
|
59
|
+
## Update ".eslintrc.json" file if your project was already migrated to ESLint
|
|
60
|
+
|
|
61
|
+
Replace your current `.eslintrc.json file` by the one found in [ESLINT_MIGRATION.GUIDE](ESLINT_MIGRATION_GUIDE.md#customizing_eslint__inspired_from_otia_and_prestations-ng_s_files_for_rules_)
|
|
62
|
+
|
|
63
|
+
## Use node 16 for your build
|
|
64
|
+
|
|
65
|
+
Open your `jenkins` folder and update your jenkins files
|
|
66
|
+
Define a variable if it does not already exist and add `nodeVersion: 16` then pass it on to the build
|
|
67
|
+
|
|
68
|
+
### UT folder
|
|
69
|
+
```groovy
|
|
70
|
+
def args = [
|
|
71
|
+
nodeVersion: 16
|
|
72
|
+
]
|
|
73
|
+
|
|
74
|
+
stage('Build pipeline') {
|
|
75
|
+
buildPipeline(args)
|
|
76
|
+
}
|
|
77
|
+
```
|
|
78
|
+
|
|
79
|
+
### devex > snap folder
|
|
80
|
+
```groovy
|
|
81
|
+
def buildArgs = [
|
|
82
|
+
nodeVersion : 16
|
|
83
|
+
]
|
|
84
|
+
|
|
85
|
+
stage('Snap2Devex Skeleton') {
|
|
86
|
+
snap2Devex(buildArgs)
|
|
87
|
+
}
|
|
88
|
+
```
|
|
89
|
+
|
|
90
|
+
### devex > stable folder
|
|
91
|
+
```groovy
|
|
92
|
+
def args = [
|
|
93
|
+
nodeVersion : 16
|
|
94
|
+
]
|
|
95
|
+
|
|
96
|
+
stage('Stable2Devex') {
|
|
97
|
+
stable2Devex(args)
|
|
98
|
+
}
|
|
99
|
+
```
|
|
100
|
+
|
|
101
|
+
## Cleanup your project due to CLI improvements
|
|
102
|
+
|
|
103
|
+
See section "CLI improvements" in angular's blog (https://blog.angular.io/angular-v15-is-now-available-df7be7f2f4c8)
|
|
104
|
+
|
|
105
|
+
### Remove files/folder from your project
|
|
106
|
+
|
|
107
|
+
- delete `polyfills.ts` file
|
|
108
|
+
- delete `test.ts` file
|
|
109
|
+
- delete `environments` folder
|
|
110
|
+
|
|
111
|
+
### Update your `angular.json` file
|
|
112
|
+
```diff
|
|
113
|
+
{
|
|
114
|
+
"projects": {
|
|
115
|
+
"[YOUR_PROJECT_NAME]": {
|
|
116
|
+
"architect": {
|
|
117
|
+
"build": {
|
|
118
|
+
"options": {
|
|
119
|
+
- "polyfills": "src/polyfills.ts",
|
|
120
|
+
+ "polyfills": [
|
|
121
|
+
+ "zone.js"
|
|
122
|
+
+ ],
|
|
123
|
+
},
|
|
124
|
+
"configurations": {
|
|
125
|
+
"production": {
|
|
126
|
+
- "fileReplacements": [
|
|
127
|
+
- {
|
|
128
|
+
- "replace": "src/environments/environment.ts",
|
|
129
|
+
- "with": "src/environments/environment.prod.ts"
|
|
130
|
+
- }
|
|
131
|
+
- ]
|
|
132
|
+
}
|
|
133
|
+
}
|
|
134
|
+
},
|
|
135
|
+
"test": {
|
|
136
|
+
"options": {
|
|
137
|
+
- "main": "src/test.ts",
|
|
138
|
+
- "polyfills": "src/polyfills.ts",
|
|
139
|
+
+ "polyfills": [
|
|
140
|
+
+ "zone.js",
|
|
141
|
+
+ "zone.js/testing"
|
|
142
|
+
+ ],
|
|
143
|
+
}
|
|
144
|
+
}
|
|
145
|
+
}
|
|
146
|
+
}
|
|
147
|
+
}
|
|
148
|
+
}
|
|
149
|
+
```
|
|
150
|
+
### Update your `tsconfig.app.json` file
|
|
151
|
+
```diff
|
|
152
|
+
{
|
|
153
|
+
"files": [
|
|
154
|
+
"main.ts",
|
|
155
|
+
- "polyfills.ts"
|
|
156
|
+
],
|
|
157
|
+
}
|
|
158
|
+
```
|
|
159
|
+
|
|
160
|
+
### Update your `tsconfig.spec.json` file
|
|
161
|
+
```diff
|
|
162
|
+
{
|
|
163
|
+
- "files": [
|
|
164
|
+
- "test.ts",
|
|
165
|
+
- "polyfills.ts"
|
|
166
|
+
- ],
|
|
167
|
+
}
|
|
168
|
+
```
|
|
169
|
+
|
|
170
|
+
## Update `allowedCommonJsDependencies` in your `angular.json` file to add `dayjs`
|
|
171
|
+
|
|
172
|
+
```diff
|
|
173
|
+
{
|
|
174
|
+
"projects": {
|
|
175
|
+
"[YOUR_PROJECT_NAME]": {
|
|
176
|
+
"architect": {
|
|
177
|
+
"build": {
|
|
178
|
+
"options": {
|
|
179
|
+
"allowedCommonJsDependencies": [
|
|
180
|
+
"core-js/modules/es.array.includes",
|
|
181
|
+
"iban",
|
|
182
|
+
- "zone.js/dist/zone-error"
|
|
183
|
+
+ "zone.js/dist/zone-error",
|
|
184
|
+
+ "dayjs"
|
|
185
|
+
],
|
|
186
|
+
},
|
|
187
|
+
}
|
|
188
|
+
}
|
|
189
|
+
}
|
|
190
|
+
}
|
|
191
|
+
}
|
|
192
|
+
```
|
|
193
|
+
|
|
43
194
|
## Deprecated features
|
|
44
195
|
|
|
45
196
|
### All components extending FoehnCheckableGroupComponent such as foehn-autocomplete, foehn-checkbox, foehn-radio, foehn-select or your custom components
|
|
Binary file
|
package/package.json
CHANGED
|
@@ -37,7 +37,7 @@
|
|
|
37
37
|
"ng-update": {
|
|
38
38
|
"migrations": "./schematics/migration-collection.json"
|
|
39
39
|
},
|
|
40
|
-
"version": "16.0.0-
|
|
40
|
+
"version": "16.0.0-beta3",
|
|
41
41
|
"module": "fesm2015/dsivd-prestations-ng.mjs",
|
|
42
42
|
"es2020": "fesm2020/dsivd-prestations-ng.mjs",
|
|
43
43
|
"esm2020": "esm2020/dsivd-prestations-ng.mjs",
|
|
Binary file
|