@ui5/webcomponents-tools 0.0.0-41ab6cd28 → 0.0.0-4237771ff

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.
package/CHANGELOG.md CHANGED
@@ -3,6 +3,338 @@
3
3
  All notable changes to this project will be documented in this file.
4
4
  See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.
5
5
 
6
+ # [1.21.0-rc.5](https://github.com/SAP/ui5-webcomponents/compare/v1.21.0-rc.4...v1.21.0-rc.5) (2024-01-04)
7
+
8
+ **Note:** Version bump only for package @ui5/webcomponents-tools
9
+
10
+
11
+
12
+
13
+
14
+ # [1.21.0-rc.4](https://github.com/SAP/ui5-webcomponents/compare/v1.21.0-rc.3...v1.21.0-rc.4) (2023-12-28)
15
+
16
+ **Note:** Version bump only for package @ui5/webcomponents-tools
17
+
18
+
19
+
20
+
21
+
22
+ # [1.21.0-rc.3](https://github.com/SAP/ui5-webcomponents/compare/v1.21.0-rc.2...v1.21.0-rc.3) (2023-12-21)
23
+
24
+
25
+ ### Bug Fixes
26
+
27
+ * declare webpackChunkName in more generated dynamic imports ([#8029](https://github.com/SAP/ui5-webcomponents/issues/8029)) ([c85fa23](https://github.com/SAP/ui5-webcomponents/commit/c85fa23bd32574434f537df95c7507a7f1a48b5e))
28
+
29
+
30
+ ### Features
31
+
32
+ * **tools:** Optimize build by switching css processing to esbuild ([#8008](https://github.com/SAP/ui5-webcomponents/issues/8008)) ([b4d411f](https://github.com/SAP/ui5-webcomponents/commit/b4d411f00f8d74ccecb2d02254126243faf53dfd))
33
+
34
+
35
+
36
+
37
+
38
+ # [1.21.0-rc.2](https://github.com/SAP/ui5-webcomponents/compare/v1.21.0-rc.1...v1.21.0-rc.2) (2023-12-14)
39
+
40
+ **Note:** Version bump only for package @ui5/webcomponents-tools
41
+
42
+
43
+
44
+
45
+
46
+ # [1.21.0-rc.1](https://github.com/SAP/ui5-webcomponents/compare/v1.21.0-rc.0...v1.21.0-rc.1) (2023-12-08)
47
+
48
+ **Note:** Version bump only for package @ui5/webcomponents-tools
49
+
50
+
51
+
52
+
53
+
54
+ # [1.21.0-rc.0](https://github.com/SAP/ui5-webcomponents/compare/v1.20.0...v1.21.0-rc.0) (2023-12-07)
55
+
56
+ **Note:** Version bump only for package @ui5/webcomponents-tools
57
+
58
+
59
+
60
+
61
+
62
+ # [1.20.0](https://github.com/SAP/ui5-webcomponents/compare/v1.20.0-rc.3...v1.20.0) (2023-12-04)
63
+
64
+ **Note:** Version bump only for package @ui5/webcomponents-tools
65
+
66
+
67
+
68
+
69
+
70
+ # [1.20.0-rc.3](https://github.com/SAP/ui5-webcomponents/compare/v1.20.0-rc.2...v1.20.0-rc.3) (2023-11-30)
71
+
72
+
73
+ ### Features
74
+
75
+ * register custom theme properties ([#7750](https://github.com/SAP/ui5-webcomponents/issues/7750)) ([c6c04c6](https://github.com/SAP/ui5-webcomponents/commit/c6c04c609d82a7442bdf79ef5bba46a406859a27))
76
+
77
+
78
+
79
+
80
+
81
+ # [1.20.0-rc.2](https://github.com/SAP/ui5-webcomponents/compare/v1.20.0-rc.1...v1.20.0-rc.2) (2023-11-23)
82
+
83
+ **Note:** Version bump only for package @ui5/webcomponents-tools
84
+
85
+
86
+
87
+
88
+
89
+ # [1.20.0-rc.1](https://github.com/SAP/ui5-webcomponents/compare/v1.20.0-rc.0...v1.20.0-rc.1) (2023-11-16)
90
+
91
+
92
+ ### Bug Fixes
93
+
94
+ * declare webpackChunkName in generated dynamic imports for readable runtime bundle names ([#7835](https://github.com/SAP/ui5-webcomponents/issues/7835)) ([592a10b](https://github.com/SAP/ui5-webcomponents/commit/592a10b25a14da89885874c40c5c7a192b8b4d85))
95
+
96
+
97
+
98
+
99
+
100
+ # [1.20.0-rc.0](https://github.com/SAP/ui5-webcomponents/compare/v1.19.0...v1.20.0-rc.0) (2023-11-09)
101
+
102
+ **Note:** Version bump only for package @ui5/webcomponents-tools
103
+
104
+
105
+
106
+
107
+
108
+ # [1.19.0](https://github.com/SAP/ui5-webcomponents/compare/v1.19.0-rc.3...v1.19.0) (2023-11-02)
109
+
110
+ **Note:** Version bump only for package @ui5/webcomponents-tools
111
+
112
+
113
+
114
+
115
+
116
+ # [1.19.0-rc.3](https://github.com/SAP/ui5-webcomponents/compare/v1.19.0-rc.2...v1.19.0-rc.3) (2023-11-02)
117
+
118
+
119
+ ### Features
120
+
121
+ * **framework:** switch default theme from Quartz Light to Morning Ho… ([#7749](https://github.com/SAP/ui5-webcomponents/issues/7749)) ([10dadd7](https://github.com/SAP/ui5-webcomponents/commit/10dadd79e3a93daf29baaed3a5bcebd8c66a0940))
122
+
123
+
124
+
125
+
126
+
127
+ # [1.19.0-rc.2](https://github.com/SAP/ui5-webcomponents/compare/v1.19.0-rc.1...v1.19.0-rc.2) (2023-10-26)
128
+
129
+ **Note:** Version bump only for package @ui5/webcomponents-tools
130
+
131
+
132
+
133
+
134
+
135
+ # [1.19.0-rc.1](https://github.com/SAP/ui5-webcomponents/compare/v1.19.0-rc.0...v1.19.0-rc.1) (2023-10-19)
136
+
137
+
138
+ ### Bug Fixes
139
+
140
+ * escape special characters when scoping CSS vars ([#7704](https://github.com/SAP/ui5-webcomponents/issues/7704)) ([8888751](https://github.com/SAP/ui5-webcomponents/commit/888875121b56fa0c7216674acc580620d8e0d720))
141
+
142
+
143
+
144
+
145
+
146
+ # [1.19.0-rc.0](https://github.com/SAP/ui5-webcomponents/compare/v1.18.1-rc.0...v1.19.0-rc.0) (2023-10-12)
147
+
148
+ **Note:** Version bump only for package @ui5/webcomponents-tools
149
+
150
+
151
+
152
+
153
+
154
+ ## [1.18.1-rc.0](https://github.com/SAP/ui5-webcomponents/compare/v1.18.0...v1.18.1-rc.0) (2023-10-05)
155
+
156
+ **Note:** Version bump only for package @ui5/webcomponents-tools
157
+
158
+
159
+
160
+
161
+
162
+ # [1.18.0](https://github.com/SAP/ui5-webcomponents/compare/v1.18.0-rc.2...v1.18.0) (2023-10-02)
163
+
164
+ **Note:** Version bump only for package @ui5/webcomponents-tools
165
+
166
+
167
+
168
+
169
+
170
+ # [1.18.0-rc.2](https://github.com/SAP/ui5-webcomponents/compare/v1.18.0-rc.1...v1.18.0-rc.2) (2023-09-28)
171
+
172
+ **Note:** Version bump only for package @ui5/webcomponents-tools
173
+
174
+
175
+
176
+
177
+
178
+ # [1.18.0-rc.1](https://github.com/SAP/ui5-webcomponents/compare/v1.18.0-rc.0...v1.18.0-rc.1) (2023-09-21)
179
+
180
+
181
+ ### Reverts
182
+
183
+ * Revert "build: fix dev server page refresh" ([105db9f](https://github.com/SAP/ui5-webcomponents/commit/105db9f3c42e7434c2dc9b0eb967fb45cac9620d))
184
+
185
+
186
+
187
+
188
+
189
+ # [1.18.0-rc.0](https://github.com/SAP/ui5-webcomponents/compare/v1.17.0...v1.18.0-rc.0) (2023-09-07)
190
+
191
+ **Note:** Version bump only for package @ui5/webcomponents-tools
192
+
193
+
194
+
195
+
196
+
197
+ # [1.17.0](https://github.com/SAP/ui5-webcomponents/compare/v1.17.0-rc.2...v1.17.0) (2023-09-01)
198
+
199
+ **Note:** Version bump only for package @ui5/webcomponents-tools
200
+
201
+
202
+
203
+
204
+
205
+ # [1.17.0-rc.2](https://github.com/SAP/ui5-webcomponents/compare/v1.17.0-rc.1...v1.17.0-rc.2) (2023-08-24)
206
+
207
+ **Note:** Version bump only for package @ui5/webcomponents-tools
208
+
209
+
210
+
211
+
212
+
213
+ # [1.17.0-rc.1](https://github.com/SAP/ui5-webcomponents/compare/v1.17.0-rc.0...v1.17.0-rc.1) (2023-08-17)
214
+
215
+
216
+ ### Features
217
+
218
+ * **framework:** scope css variables per runtime and version ([#7449](https://github.com/SAP/ui5-webcomponents/issues/7449)) ([d3f6c2e](https://github.com/SAP/ui5-webcomponents/commit/d3f6c2efba9cfda389ea4d700a375f75b3e2996b))
219
+
220
+
221
+
222
+
223
+
224
+ # [1.17.0-rc.0](https://github.com/SAP/ui5-webcomponents/compare/v1.16.0...v1.17.0-rc.0) (2023-08-10)
225
+
226
+
227
+ ### Bug Fixes
228
+
229
+ * **ui5-illustrated-message:** support collection based illustration loading ([#7318](https://github.com/SAP/ui5-webcomponents/issues/7318)) ([6b52dbd](https://github.com/SAP/ui5-webcomponents/commit/6b52dbd157a3c8198e41c84157e3d9ae89e3386e))
230
+
231
+
232
+
233
+
234
+
235
+ # [1.16.0](https://github.com/SAP/ui5-webcomponents/compare/v1.16.0-rc.4...v1.16.0) (2023-08-03)
236
+
237
+ **Note:** Version bump only for package @ui5/webcomponents-tools
238
+
239
+
240
+
241
+
242
+
243
+ # [1.16.0-rc.4](https://github.com/SAP/ui5-webcomponents/compare/v1.16.0-rc.3...v1.16.0-rc.4) (2023-08-03)
244
+
245
+ **Note:** Version bump only for package @ui5/webcomponents-tools
246
+
247
+
248
+
249
+
250
+
251
+ # [1.16.0-rc.3](https://github.com/SAP/ui5-webcomponents/compare/v1.16.0-rc.2...v1.16.0-rc.3) (2023-07-27)
252
+
253
+ **Note:** Version bump only for package @ui5/webcomponents-tools
254
+
255
+
256
+
257
+
258
+
259
+ # [1.16.0-rc.2](https://github.com/SAP/ui5-webcomponents/compare/v1.16.0-rc.1...v1.16.0-rc.2) (2023-07-20)
260
+
261
+ **Note:** Version bump only for package @ui5/webcomponents-tools
262
+
263
+
264
+
265
+
266
+
267
+ # [1.16.0-rc.1](https://github.com/SAP/ui5-webcomponents/compare/v1.16.0-rc.0...v1.16.0-rc.1) (2023-07-13)
268
+
269
+ **Note:** Version bump only for package @ui5/webcomponents-tools
270
+
271
+
272
+
273
+
274
+
275
+ # [1.16.0-rc.0](https://github.com/SAP/ui5-webcomponents/compare/v1.15.1...v1.16.0-rc.0) (2023-07-06)
276
+
277
+ **Note:** Version bump only for package @ui5/webcomponents-tools
278
+
279
+
280
+
281
+
282
+
283
+ # [1.15.0](https://github.com/SAP/ui5-webcomponents/compare/v1.15.0-rc.2...v1.15.0) (2023-06-30)
284
+
285
+
286
+ ### Bug Fixes
287
+
288
+ * **framework:** missing CSS variables in compact mode / rtl mode ([#7189](https://github.com/SAP/ui5-webcomponents/issues/7189)) ([9b39b9c](https://github.com/SAP/ui5-webcomponents/commit/9b39b9ce5c3720dbb106c5638f858754e11a735f))
289
+
290
+
291
+
292
+
293
+
294
+ # [1.15.0-rc.2](https://github.com/SAP/ui5-webcomponents/compare/v1.15.0-rc.1...v1.15.0-rc.2) (2023-06-22)
295
+
296
+ **Note:** Version bump only for package @ui5/webcomponents-tools
297
+
298
+
299
+
300
+
301
+
302
+ # [1.15.0-rc.1](https://github.com/SAP/ui5-webcomponents/compare/v1.15.0-rc.0...v1.15.0-rc.1) (2023-06-15)
303
+
304
+ **Note:** Version bump only for package @ui5/webcomponents-tools
305
+
306
+
307
+
308
+
309
+
310
+
311
+
312
+
313
+
314
+ # [1.15.0-rc.0](https://github.com/SAP/ui5-webcomponents/compare/v1.14.0...v1.15.0-rc.0) (2023-06-08)
315
+
316
+ **Note:** Version bump only for package @ui5/webcomponents-tools
317
+
318
+
319
+
320
+
321
+
322
+ # [1.14.0](https://github.com/SAP/ui5-webcomponents/compare/v1.14.0-rc.2...v1.14.0) (2023-06-01)
323
+
324
+ **Note:** Version bump only for package @ui5/webcomponents-tools
325
+
326
+
327
+
328
+
329
+
330
+ # [1.14.0-rc.2](https://github.com/SAP/ui5-webcomponents/compare/v1.14.0-rc.1...v1.14.0-rc.2) (2023-06-01)
331
+
332
+ **Note:** Version bump only for package @ui5/webcomponents-tools
333
+
334
+
335
+
336
+
337
+
6
338
  # [1.14.0-rc.1](https://github.com/SAP/ui5-webcomponents/compare/v1.14.0-rc.0...v1.14.0-rc.1) (2023-05-25)
7
339
 
8
340
  **Note:** Version bump only for package @ui5/webcomponents-tools
package/README.md CHANGED
@@ -1,5 +1,6 @@
1
1
  ![UI5 icon](https://raw.githubusercontent.com/SAP/ui5-webcomponents/main/docs/images/UI5_logo_wide.png)
2
2
 
3
+
3
4
  # UI5 Web Components - Tools
4
5
 
5
6
  [![npm Package Version](https://badge.fury.io/js/%40ui5%2Fwebcomponents.svg)](https://www.npmjs.com/package/@ui5/webcomponents)
@@ -13,7 +14,7 @@ used by other UI5 Web Components packages, such as `main` and `fiori`.
13
14
  - [UI5 Web Components - Playground and API Reference](https://sap.github.io/ui5-webcomponents/playground/)
14
15
 
15
16
  ## Support
16
- We welcome all comments, suggestions, questions, and bug reports. Please follow our [Support Guidelines](https://github.com/SAP/ui5-webcomponents/blob/main/SUPPORT.md#-content) on how to report an issue, or chat with us in the `#webcomponents` channel of the [OpenUI5 Community Slack](https://join-ui5-slack.herokuapp.com/).
17
+ We welcome all comments, suggestions, questions, and bug reports. Please follow our [Support Guidelines](https://github.com/SAP/ui5-webcomponents/blob/main/SUPPORT.md#-content) on how to report an issue, or chat with us in the `#webcomponents` channel of the [OpenUI5 Community Slack](https://ui5-slack-invite.cfapps.eu10.hana.ondemand.com/).
17
18
 
18
19
  ## Contribute
19
20
  Please check our [Contribution Guidelines](https://github.com/SAP/ui5-webcomponents/blob/main/docs/6-contributing/02-conventions-and-guidelines.md).
package/assets-meta.js CHANGED
@@ -1,6 +1,6 @@
1
1
  const assetsMeta = {
2
2
  "themes": {
3
- "default": "sap_fiori_3",
3
+ "default": "sap_horizon",
4
4
  "all": [
5
5
  "sap_fiori_3",
6
6
  "sap_fiori_3_dark",
@@ -9,12 +9,15 @@ const assetsMeta = {
9
9
  "sap_belize_hcw",
10
10
  "sap_fiori_3_hcb",
11
11
  "sap_fiori_3_hcw",
12
- "sap_horizon",
13
- "sap_horizon_dark",
14
- "sap_horizon_hcb",
15
- "sap_horizon_hcw",
16
- "sap_horizon_exp"
17
- ]
12
+ "sap_horizon",
13
+ "sap_horizon_dark",
14
+ "sap_horizon_hcb",
15
+ "sap_horizon_hcw",
16
+ "sap_horizon_exp",
17
+ "sap_horizon_dark_exp",
18
+ "sap_horizon_hcb_exp",
19
+ "sap_horizon_hcw_exp",
20
+ ],
18
21
  },
19
22
  "languages": {
20
23
  "default": "en",
@@ -22,6 +25,7 @@ const assetsMeta = {
22
25
  "ar",
23
26
  "bg",
24
27
  "ca",
28
+ "cnr",
25
29
  "cs",
26
30
  "cy",
27
31
  "da",
@@ -49,6 +53,7 @@ const assetsMeta = {
49
53
  "ko",
50
54
  "lt",
51
55
  "lv",
56
+ "mk",
52
57
  "ms",
53
58
  "nl",
54
59
  "no",
@@ -60,6 +65,7 @@ const assetsMeta = {
60
65
  "sh",
61
66
  "sk",
62
67
  "sl",
68
+ "sr",
63
69
  "sv",
64
70
  "th",
65
71
  "tr",
@@ -77,6 +83,7 @@ const assetsMeta = {
77
83
  "ar_SA",
78
84
  "bg",
79
85
  "ca",
86
+ // "cnr_ME" - cldr for not available yet
80
87
  "cs",
81
88
  "da",
82
89
  "de",
@@ -124,6 +131,7 @@ const assetsMeta = {
124
131
  "lt",
125
132
  "lv",
126
133
  "ms",
134
+ // "mk_MK" cldr not available yet
127
135
  "nb",
128
136
  "nl",
129
137
  "nl_BE",
@@ -136,6 +144,7 @@ const assetsMeta = {
136
144
  "sk",
137
145
  "sl",
138
146
  "sr",
147
+ // "sr_Cyrl_RS" - cldr not available yet
139
148
  "sr_Latn",
140
149
  "sv",
141
150
  "th",
@@ -15,6 +15,7 @@ const overrides = tsMode ? [{
15
15
  ],
16
16
  parserOptions: {
17
17
  "project": ["./tsconfig.json", "./packages/*/tsconfig.json"],
18
+ EXPERIMENTAL_useSourceOfProjectReferenceRedirect: true,
18
19
  },
19
20
  rules: {
20
21
  "no-shadow": "off",
@@ -8,17 +8,20 @@ const getScripts = (options) => {
8
8
 
9
9
  // The script creates all JS modules (dist/illustrations/{illustrationName}.js) out of the existing SVGs
10
10
  const illustrationsData = options.illustrationsData || [];
11
- const illustrations = illustrationsData.map(illustration => `node "${LIB}/create-illustrations/index.js" ${illustration.path} ${illustration.defaultText} ${illustration.illustrationsPrefix} ${illustration.set} ${illustration.destinationPath}`);
11
+ const illustrations = illustrationsData.map(illustration => `node "${LIB}/create-illustrations/index.js" ${illustration.path} ${illustration.defaultText} ${illustration.illustrationsPrefix} ${illustration.set} ${illustration.destinationPath} ${illustration.collection}`);
12
12
  const createIllustrationsJSImportsScript = illustrations.join(" && ");
13
13
 
14
- // The script creates the "dist/generated/js-imports/Illustration.js" file that registers loaders (dynamic JS imports) for each illustration
15
- const illustrationDestinationPaths = illustrationsData.map(illustrations => illustrations.destinationPath);
16
- const createIllustrationsLoadersScript = options.fioriPackage ? `node ${LIB}/generate-js-imports/illustrations.js ${illustrationDestinationPaths[0]} ${illustrationDestinationPaths[1]} dist/generated/js-imports` : "";
14
+ // The script creates the "src/generated/js-imports/Illustration.js" file that registers loaders (dynamic JS imports) for each illustration
15
+ const createIllustrationsLoadersScript = illustrationsData.map(illustrations => `node ${LIB}/generate-js-imports/illustrations.js ${illustrations.destinationPath} ${illustrations.dynamicImports.outputFile} ${illustrations.collection} ${illustrations.dynamicImports.location} ${illustrations.dynamicImports.prefix || '\"\"'} ${illustrations.dynamicImports.filterOut.join(" ")}`).join(" && ");
16
+
17
17
  const tsOption = options.typescript;
18
- const tsCommand = tsOption ? "tsc" : "";
19
- const tsWatchCommand = tsOption ? "tsc --watch" : "";
18
+ const tsCommandOld = tsOption ? "tsc" : "";
19
+ let tsWatchCommandStandalone = tsOption ? "tsc --watch" : "";
20
+ // this command is only used for standalone projects. monorepo projects get their watch from vite, so opt-out here
21
+ if (options.noWatchTS) {
22
+ tsWatchCommandStandalone = "";
23
+ }
20
24
  const tsCrossEnv = tsOption ? "cross-env UI5_TS=true" : "";
21
- const copySrcGenerated = tsOption ? "" : "copy.srcGenerated";
22
25
 
23
26
  if (tsOption) {
24
27
  try {
@@ -54,19 +57,24 @@ const getScripts = (options) => {
54
57
  clean: 'rimraf jsdoc-dist && rimraf src/generated && rimraf dist && rimraf .port && nps "scope.testPages.clean"',
55
58
  lint: `eslint . ${eslintConfig}`,
56
59
  lintfix: `eslint . ${eslintConfig} --fix`,
57
- prepare: {
58
- default: `${tsCrossEnv} nps clean prepare.all typescript generateAPI`,
60
+ generate: {
61
+ default: `${tsCrossEnv} nps prepare.all`,
59
62
  all: 'concurrently "nps build.templates" "nps build.i18n" "nps prepare.styleRelated" "nps copy" "nps build.illustrations"',
60
63
  styleRelated: "nps build.styles build.jsonImports build.jsImports",
61
64
  },
62
- typescript: tsCommand,
65
+ prepare: {
66
+ default: `${tsCrossEnv} nps clean prepare.all copy prepare.typescript generateAPI`,
67
+ all: 'concurrently "nps build.templates" "nps build.i18n" "nps prepare.styleRelated" "nps build.illustrations"',
68
+ styleRelated: "nps build.styles build.jsonImports build.jsImports",
69
+ typescript: tsCommandOld,
70
+ },
63
71
  build: {
64
- default: "nps prepare lint build.bundle",
65
- templates: `mkdirp dist/generated/templates && ${tsCrossEnv} node "${LIB}/hbs2ui5/index.js" -d src/ -o src/generated/templates`,
72
+ default: "nps prepare lint build.bundle", // build.bundle2
73
+ templates: `mkdirp src/generated/templates && ${tsCrossEnv} node "${LIB}/hbs2ui5/index.js" -d src/ -o src/generated/templates`,
66
74
  styles: {
67
- default: `nps build.styles.themes build.styles.components ${copySrcGenerated}`,
68
- themes: `node "${LIB}/postcss-p/postcss-p.mjs"`,
69
- components: "postcss src/themes/*.css --config config/postcss.components --base src --dir dist/css/", // When updating this, also update the new files script
75
+ default: `concurrently "nps build.styles.themes" "nps build.styles.components"`,
76
+ themes: `node "${LIB}/css-processors/css-processor-themes.mjs"`,
77
+ components: `node "${LIB}/css-processors/css-processor-components.mjs"`,
70
78
  },
71
79
  i18n: {
72
80
  default: "nps build.i18n.defaultsjs build.i18n.json",
@@ -74,38 +82,35 @@ const getScripts = (options) => {
74
82
  json: `node "${LIB}/i18n/toJSON.js" src/i18n dist/generated/assets/i18n`,
75
83
  },
76
84
  jsonImports: {
77
- default: "mkdirp dist/generated/json-imports && nps build.jsonImports.themes build.jsonImports.i18n",
78
- themes: `node "${LIB}/generate-json-imports/themes.js" dist/generated/assets/themes dist/generated/json-imports`,
79
- i18n: `node "${LIB}/generate-json-imports/i18n.js" dist/generated/assets/i18n dist/generated/json-imports`,
85
+ default: "mkdirp src/generated/json-imports && nps build.jsonImports.themes build.jsonImports.i18n",
86
+ themes: `node "${LIB}/generate-json-imports/themes.js" dist/generated/assets/themes src/generated/json-imports`,
87
+ i18n: `node "${LIB}/generate-json-imports/i18n.js" dist/generated/assets/i18n src/generated/json-imports`,
80
88
  },
81
89
  jsImports: {
82
- default: "mkdirp dist/generated/js-imports && nps build.jsImports.illustrationsLoaders",
90
+ default: "mkdirp src/generated/js-imports && nps build.jsImports.illustrationsLoaders",
83
91
  illustrationsLoaders: createIllustrationsLoadersScript,
84
92
  },
85
93
  bundle: `vite build ${viteConfig}`,
94
+ bundle2: ``,
86
95
  illustrations: createIllustrationsJSImportsScript,
87
96
  },
88
97
  copy: {
89
98
  default: "nps copy.src copy.props",
90
- src: `node "${LIB}/copy-and-watch/index.js" --silent "src/**/*.js" dist/`,
91
- srcGenerated: `node "${LIB}/copy-and-watch/index.js" --silent "src/generated/**/*.js" dist/generated/`,
99
+ src: `node "${LIB}/copy-and-watch/index.js" --silent "src/**/*.{js,json}" dist/`,
100
+ // srcGenerated2: `node "${LIB}/copy-and-watch/index.js" --silent "src/generated/**/*.{js,json}" dist/generated/`,
92
101
  props: `node "${LIB}/copy-and-watch/index.js" --silent "src/**/*.properties" dist/`,
93
102
  },
94
103
  watch: {
95
- default: `${tsCrossEnv} concurrently "nps watch.templates" "nps watch.api" "nps watch.src" "nps watch.typescript" "nps watch.styles" "nps watch.i18n" "nps watch.props"`,
104
+ default: `${tsCrossEnv} concurrently "nps watch.templates" "nps watch.typescript" "nps watch.api" "nps watch.src" "nps watch.styles" "nps watch.i18n" "nps watch.props"`,
96
105
  devServer: 'concurrently "nps watch.default" "nps watch.bundle"',
97
106
  src: 'nps "copy.src --watch --safe --skip-initial-copy"',
98
- typescript: tsWatchCommand,
107
+ typescript: tsWatchCommandStandalone,
99
108
  props: 'nps "copy.props --watch --safe --skip-initial-copy"',
100
109
  bundle: `node ${LIB}/dev-server/dev-server.js ${viteConfig}`,
101
110
  styles: {
102
111
  default: 'concurrently "nps watch.styles.themes" "nps watch.styles.components"',
103
112
  themes: 'nps "build.styles.themes -w"',
104
- components: {
105
- default: 'concurrently "nps watch.styles.components.existingFiles" "nps watch.styles.components.newFiles"',
106
- existingFiles: `nps "build.styles.components -w"`,
107
- newFiles: `node "${LIB}/postcss-new-files/index.js" --srcFiles="src/themes/*.css"`,
108
- },
113
+ components: `nps "build.styles.components -w"`,
109
114
  },
110
115
  templates: 'chokidar "src/**/*.hbs" -c "nps build.templates"',
111
116
  api: 'chokidar "test/**/*.sample.html" -c "nps generateAPI"',
@@ -117,7 +122,7 @@ const getScripts = (options) => {
117
122
  "test-suite-2": `node "${LIB}/test-runner/test-runner.js" --suite suite2`,
118
123
  startWithScope: "nps scope.prepare scope.watchWithBundle",
119
124
  scope: {
120
- prepare: "nps scope.lint prepare scope.testPages",
125
+ prepare: "nps scope.lint scope.testPages",
121
126
  lint: `node "${LIB}/scoping/lint-src.js"`,
122
127
  testPages: {
123
128
  default: "nps scope.testPages.clean scope.testPages.copy scope.testPages.replace",
@@ -1,21 +1 @@
1
- const postcssImport = require('postcss-import');
2
- const postcssCSStoESM = require('../lib/postcss-css-to-esm/index.js');
3
- const cssnano = require('cssnano');
4
- const fs = require("fs");
5
-
6
- const packageName = JSON.parse(fs.readFileSync("./package.json")).name;
7
-
8
- module.exports = {
9
- plugins: [
10
- postcssImport(),
11
- cssnano({
12
- preset: [
13
- 'default', {
14
- mergeLonghand: false, // https://github.com/cssnano/cssnano/issues/675
15
- mergeRules: false, // https://github.com/cssnano/cssnano/issues/730
16
- },
17
- ]
18
- }),
19
- postcssCSStoESM({ toReplace: 'src', includeDefaultTheme: true, packageName }),
20
- ]
21
- }
1
+ module.exports = {}
@@ -1,36 +1 @@
1
- const postcssImport = require('postcss-import');
2
- const combineSelectors = require('../lib/postcss-combine-duplicated-selectors/index.js');
3
- const postcssCSStoJSON = require('../lib/postcss-css-to-json/index.js');
4
- const postcssCSStoESM = require('../lib/postcss-css-to-esm/index.js');
5
- const cssnano = require('cssnano');
6
- const modifySelectors = require("modify-selectors");
7
- const fs = require("fs");
8
-
9
- const packageName = JSON.parse(fs.readFileSync("./package.json")).name;
10
-
11
- module.exports = {
12
- plugins: [
13
- postcssImport(),
14
- combineSelectors({
15
- removeDuplicatedProperties: true
16
- }),
17
- cssnano({
18
- preset: [
19
- 'default', {
20
- mergeLonghand: false, // https://github.com/cssnano/cssnano/issues/675
21
- },
22
- ]
23
- },),
24
- modifySelectors({
25
- enable: true,
26
- suffix: [
27
- {
28
- match: '*',
29
- with: '[_ui5host]', // Add suffix to each selector in the file (:root => :root [_ui5host])
30
- },
31
- ],
32
- }),
33
- postcssCSStoJSON({ toReplace: 'src', packageName }),
34
- postcssCSStoESM({ toReplace: 'src', packageName }),
35
- ]
36
- };
1
+ module.exports = {};
@@ -1,3 +1,5 @@
1
+ const dns = require("node:dns");
2
+
1
3
  exports.config = {
2
4
  //
3
5
  // ====================
@@ -107,8 +109,7 @@ exports.config = {
107
109
  // Services take over a specific job you don't want to take care of. They enhance
108
110
  // your test setup with almost no effort. Unlike plugins, they don't add new
109
111
  // commands. Instead, they hook themselves up into the test process.
110
- services: ['chromedriver', 'devtools',
111
- ['static-server', {
112
+ services: ['chromedriver', ['static-server', {
112
113
  folders: [
113
114
  { mount: '/', path: './dist' },
114
115
  ],
@@ -161,6 +162,9 @@ exports.config = {
161
162
  */
162
163
  // beforeSession: function (config, capabilities, specs) {
163
164
  // },
165
+ beforeSession: () => {
166
+ dns.setDefaultResultOrder('ipv4first');
167
+ },
164
168
  /**
165
169
  * Gets executed before test execution begins. At this point you can access to all global
166
170
  * variables like `browser`. It is the perfect place to define custom commands.
@@ -41,22 +41,24 @@ const copyIconAssetsCommand = (options) => {
41
41
  const getScripts = (options) => {
42
42
  const createJSImportsCmd = createIconImportsCommand(options);
43
43
  const copyAssetsCmd = copyIconAssetsCommand(options);
44
- const tsCommand = options.typescript ? "tsc" : "";
44
+ const tsCommand = options.typescript ? "tsc --build" : "";
45
45
  const tsCrossEnv = options.typescript ? "cross-env UI5_TS=true" : "";
46
46
 
47
47
  const scripts = {
48
48
  clean: "rimraf dist && rimraf src/generated",
49
49
  copy: copyAssetsCmd,
50
+ generate: `${tsCrossEnv} nps clean copy build.i18n build.icons build.jsonImports copyjson`,
51
+ copyjson: "copy-and-watch \"src/generated/**/*.json\" dist/generated/",
50
52
  build: {
51
53
  default: `${tsCrossEnv} nps clean copy build.i18n typescript build.icons build.jsonImports`,
52
54
  i18n: {
53
55
  default: "nps build.i18n.defaultsjs build.i18n.json",
54
56
  defaultsjs: `mkdirp dist/generated/i18n && node "${LIB}/i18n/defaults.js" src/i18n src/generated/i18n`,
55
- json: `mkdirp dist/generated/assets/i18n && node "${LIB}/i18n/toJSON.js" src/i18n dist/generated/assets/i18n`,
57
+ json: `mkdirp src/generated/assets/i18n && node "${LIB}/i18n/toJSON.js" src/i18n src/generated/assets/i18n`,
56
58
  },
57
59
  jsonImports: {
58
- default: "mkdirp dist/generated/json-imports && nps build.jsonImports.i18n",
59
- i18n: `node "${LIB}/generate-json-imports/i18n.js" dist/generated/assets/i18n dist/generated/json-imports`,
60
+ default: "mkdirp src/generated/json-imports && nps build.jsonImports.i18n",
61
+ i18n: `node "${LIB}/generate-json-imports/i18n.js" src/generated/assets/i18n src/generated/json-imports`,
60
62
  },
61
63
  icons: createJSImportsCmd,
62
64
  },