@ui5/create-webcomponents-package 0.0.0-274170508 → 0.0.0-2cf9f07f8

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.
Files changed (34) hide show
  1. package/CHANGELOG.md +396 -0
  2. package/README.md +29 -7
  3. package/create-package.js +271 -0
  4. package/package.json +4 -3
  5. package/template/.eslintignore +3 -0
  6. package/template/.eslintrc.js +5 -0
  7. package/template/gitignore +4 -0
  8. package/template/npmrc +2 -0
  9. package/template/package-scripts.js +2 -1
  10. package/template/src/Assets.ts +5 -0
  11. package/template/src/MyFirstComponent.hbs +1 -1
  12. package/template/src/MyFirstComponent.js +21 -6
  13. package/template/src/MyFirstComponent.ts +63 -0
  14. package/template/src/i18n/messagebundle.properties +3 -2
  15. package/template/src/i18n/messagebundle_de.properties +1 -1
  16. package/template/src/i18n/messagebundle_en.properties +1 -1
  17. package/template/src/i18n/messagebundle_es.properties +1 -1
  18. package/template/src/i18n/messagebundle_fr.properties +1 -1
  19. package/template/src/themes/MyFirstComponent.css +14 -9
  20. package/template/src/themes/sap_fiori_3/parameters-bundle.css +1 -1
  21. package/template/src/themes/sap_horizon_dark/parameters-bundle.css +3 -0
  22. package/template/src/themes/sap_horizon_hcb/parameters-bundle.css +3 -0
  23. package/template/test/pages/css/index.css +36 -0
  24. package/template/test/pages/img/logo.png +0 -0
  25. package/template/test/pages/index.html +35 -30
  26. package/template/test/specs/Demo.spec.js +3 -2
  27. package/template/tsconfig.json +15 -0
  28. package/index.js +0 -169
  29. package/template/src/themes/sap_belize_hcw/parameters-bundle.css +0 -3
  30. package/template/src/themes/sap_fiori_3_dark/parameters-bundle.css +0 -3
  31. package/template/src/themes/sap_fiori_3_hcb/parameters-bundle.css +0 -3
  32. package/template/src/themes/sap_fiori_3_hcw/parameters-bundle.css +0 -3
  33. /package/template/src/themes/{sap_belize → sap_horizon}/parameters-bundle.css +0 -0
  34. /package/template/src/themes/{sap_belize_hcb → sap_horizon_hcw}/parameters-bundle.css +0 -0
package/CHANGELOG.md CHANGED
@@ -3,6 +3,402 @@
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.17.0-rc.2](https://github.com/SAP/ui5-webcomponents/compare/v1.17.0-rc.1...v1.17.0-rc.2) (2023-08-24)
7
+
8
+ **Note:** Version bump only for package @ui5/create-webcomponents-package
9
+
10
+
11
+
12
+
13
+
14
+ # [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)
15
+
16
+ **Note:** Version bump only for package @ui5/create-webcomponents-package
17
+
18
+
19
+
20
+
21
+
22
+ # [1.17.0-rc.0](https://github.com/SAP/ui5-webcomponents/compare/v1.16.0...v1.17.0-rc.0) (2023-08-10)
23
+
24
+ **Note:** Version bump only for package @ui5/create-webcomponents-package
25
+
26
+
27
+
28
+
29
+
30
+ # [1.16.0](https://github.com/SAP/ui5-webcomponents/compare/v1.16.0-rc.4...v1.16.0) (2023-08-03)
31
+
32
+ **Note:** Version bump only for package @ui5/create-webcomponents-package
33
+
34
+
35
+
36
+
37
+
38
+ # [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)
39
+
40
+ **Note:** Version bump only for package @ui5/create-webcomponents-package
41
+
42
+
43
+
44
+
45
+
46
+ # [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)
47
+
48
+ **Note:** Version bump only for package @ui5/create-webcomponents-package
49
+
50
+
51
+
52
+
53
+
54
+ # [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)
55
+
56
+ **Note:** Version bump only for package @ui5/create-webcomponents-package
57
+
58
+
59
+
60
+
61
+
62
+ # [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)
63
+
64
+ **Note:** Version bump only for package @ui5/create-webcomponents-package
65
+
66
+
67
+
68
+
69
+
70
+ # [1.16.0-rc.0](https://github.com/SAP/ui5-webcomponents/compare/v1.15.1...v1.16.0-rc.0) (2023-07-06)
71
+
72
+ **Note:** Version bump only for package @ui5/create-webcomponents-package
73
+
74
+
75
+
76
+
77
+
78
+ ## [1.15.1](https://github.com/SAP/ui5-webcomponents/compare/v1.15.0...v1.15.1) (2023-06-30)
79
+
80
+
81
+ ### Bug Fixes
82
+
83
+ * **framework:** fix links in starting page of new pkg [ci skip] ([475fed5](https://github.com/SAP/ui5-webcomponents/commit/475fed55504f4a15e8b26aaf3c9e4d73b55976ec))
84
+
85
+
86
+
87
+
88
+
89
+ # [1.15.0](https://github.com/SAP/ui5-webcomponents/compare/v1.15.0-rc.2...v1.15.0) (2023-06-30)
90
+
91
+
92
+ ### Bug Fixes
93
+
94
+ * fix image in `create-webcomponent-package` ([#7253](https://github.com/SAP/ui5-webcomponents/issues/7253)) ([3317e64](https://github.com/SAP/ui5-webcomponents/commit/3317e64b911f992abf34b88a48e6003a723f7b9e))
95
+
96
+
97
+
98
+
99
+
100
+ # [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)
101
+
102
+ **Note:** Version bump only for package @ui5/create-webcomponents-package
103
+
104
+
105
+
106
+
107
+
108
+ # [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)
109
+
110
+ **Note:** Version bump only for package @ui5/create-webcomponents-package
111
+
112
+
113
+
114
+
115
+
116
+
117
+
118
+
119
+
120
+ # [1.15.0-rc.0](https://github.com/SAP/ui5-webcomponents/compare/v1.14.0...v1.15.0-rc.0) (2023-06-08)
121
+
122
+ **Note:** Version bump only for package @ui5/create-webcomponents-package
123
+
124
+
125
+
126
+
127
+
128
+ # [1.14.0](https://github.com/SAP/ui5-webcomponents/compare/v1.14.0-rc.2...v1.14.0) (2023-06-01)
129
+
130
+ **Note:** Version bump only for package @ui5/create-webcomponents-package
131
+
132
+
133
+
134
+
135
+
136
+ # [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)
137
+
138
+ **Note:** Version bump only for package @ui5/create-webcomponents-package
139
+
140
+
141
+
142
+
143
+
144
+ # [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)
145
+
146
+ **Note:** Version bump only for package @ui5/create-webcomponents-package
147
+
148
+
149
+
150
+
151
+
152
+ # [1.14.0-rc.0](https://github.com/SAP/ui5-webcomponents/compare/v1.13.2...v1.14.0-rc.0) (2023-05-18)
153
+
154
+
155
+ ### Features
156
+
157
+ * users can provide a JSDoc namespeace when creating a package ([#7034](https://github.com/SAP/ui5-webcomponents/issues/7034)) ([0af8d23](https://github.com/SAP/ui5-webcomponents/commit/0af8d2376e25e5abe6d940c72286ab7c682eea56))
158
+
159
+
160
+
161
+
162
+
163
+ ## [1.13.1](https://github.com/SAP/ui5-webcomponents/compare/v1.13.0-rc.5...v1.13.1) (2023-05-11)
164
+
165
+
166
+ ### Bug Fixes
167
+
168
+ * **create-package:** revert `moduleResolution` setting to `node` ([#7020](https://github.com/SAP/ui5-webcomponents/issues/7020)) ([9fc84e2](https://github.com/SAP/ui5-webcomponents/commit/9fc84e288452616ee72f3a2b6fc31d9752f05f6f))
169
+
170
+
171
+
172
+
173
+
174
+ # [1.13.0-rc.5](https://github.com/SAP/ui5-webcomponents/compare/v1.13.0-rc.4...v1.13.0-rc.5) (2023-05-11)
175
+
176
+
177
+ ### Bug Fixes
178
+
179
+ * **create-webcomponents-package:** fix package creation issues with test and lint ([#6976](https://github.com/SAP/ui5-webcomponents/issues/6976)) ([dd70f3a](https://github.com/SAP/ui5-webcomponents/commit/dd70f3aa8ef70b592f1d4e0f3f9894c6280fb1bf))
180
+
181
+
182
+
183
+
184
+
185
+ # [1.13.0-rc.4](https://github.com/SAP/ui5-webcomponents/compare/v1.13.0-rc.3...v1.13.0-rc.4) (2023-05-04)
186
+
187
+
188
+ ### Features
189
+
190
+ * generate TS from HBS templates ([#6558](https://github.com/SAP/ui5-webcomponents/issues/6558)) ([02611b2](https://github.com/SAP/ui5-webcomponents/commit/02611b2e24b2c2a06129b8e60a8bc680d9501e39))
191
+
192
+
193
+
194
+
195
+
196
+ # [1.13.0-rc.3](https://github.com/SAP/ui5-webcomponents/compare/v1.13.0-rc.2...v1.13.0-rc.3) (2023-04-27)
197
+
198
+ **Note:** Version bump only for package @ui5/create-webcomponents-package
199
+
200
+
201
+
202
+
203
+
204
+ # [1.13.0-rc.2](https://github.com/SAP/ui5-webcomponents/compare/v1.13.0-rc.1...v1.13.0-rc.2) (2023-04-20)
205
+
206
+ **Note:** Version bump only for package @ui5/create-webcomponents-package
207
+
208
+
209
+
210
+
211
+
212
+ # [1.13.0-rc.1](https://github.com/SAP/ui5-webcomponents/compare/v1.13.0-rc.0...v1.13.0-rc.1) (2023-04-13)
213
+
214
+ **Note:** Version bump only for package @ui5/create-webcomponents-package
215
+
216
+
217
+
218
+
219
+
220
+ # [1.13.0-rc.0](https://github.com/SAP/ui5-webcomponents/compare/v1.12.0...v1.13.0-rc.0) (2023-04-06)
221
+
222
+ **Note:** Version bump only for package @ui5/create-webcomponents-package
223
+
224
+
225
+
226
+
227
+
228
+ # [1.12.0](https://github.com/SAP/ui5-webcomponents/compare/v1.12.0-rc.3...v1.12.0) (2023-04-04)
229
+
230
+ **Note:** Version bump only for package @ui5/create-webcomponents-package
231
+
232
+
233
+
234
+
235
+
236
+ # [1.12.0-rc.3](https://github.com/SAP/ui5-webcomponents/compare/v1.12.0-rc.2...v1.12.0-rc.3) (2023-03-30)
237
+
238
+ **Note:** Version bump only for package @ui5/create-webcomponents-package
239
+
240
+
241
+
242
+
243
+
244
+ # [1.12.0-rc.2](https://github.com/SAP/ui5-webcomponents/compare/v1.12.0-rc.1...v1.12.0-rc.2) (2023-03-23)
245
+
246
+
247
+ ### Bug Fixes
248
+
249
+ * inline sources in the .map file so the src folder is not mandatory ([#6732](https://github.com/SAP/ui5-webcomponents/issues/6732)) ([16771a6](https://github.com/SAP/ui5-webcomponents/commit/16771a64d7b13f418af9afa1a03b224fe3762775))
250
+
251
+
252
+
253
+
254
+
255
+ # [1.12.0-rc.1](https://github.com/SAP/ui5-webcomponents/compare/v1.12.0-rc.0...v1.12.0-rc.1) (2023-03-16)
256
+
257
+ **Note:** Version bump only for package @ui5/create-webcomponents-package
258
+
259
+
260
+
261
+
262
+
263
+ # [1.12.0-rc.0](https://github.com/SAP/ui5-webcomponents/compare/v1.11.0...v1.12.0-rc.0) (2023-03-09)
264
+
265
+ **Note:** Version bump only for package @ui5/create-webcomponents-package
266
+
267
+
268
+
269
+
270
+
271
+ # [1.11.0](https://github.com/SAP/ui5-webcomponents/compare/v1.11.0-rc.4...v1.11.0) (2023-03-06)
272
+
273
+ **Note:** Version bump only for package @ui5/create-webcomponents-package
274
+
275
+
276
+
277
+
278
+
279
+ # [1.11.0-rc.4](https://github.com/SAP/ui5-webcomponents/compare/v1.11.0-rc.3...v1.11.0-rc.4) (2023-03-02)
280
+
281
+ **Note:** Version bump only for package @ui5/create-webcomponents-package
282
+
283
+
284
+
285
+
286
+
287
+ # [1.11.0-rc.3](https://github.com/SAP/ui5-webcomponents/compare/v1.11.0-rc.2...v1.11.0-rc.3) (2023-02-23)
288
+
289
+ **Note:** Version bump only for package @ui5/create-webcomponents-package
290
+
291
+
292
+
293
+
294
+
295
+ # [1.11.0-rc.2](https://github.com/SAP/ui5-webcomponents/compare/v1.11.0-rc.1...v1.11.0-rc.2) (2023-02-16)
296
+
297
+ **Note:** Version bump only for package @ui5/create-webcomponents-package
298
+
299
+
300
+
301
+
302
+
303
+ # [1.11.0-rc.1](https://github.com/SAP/ui5-webcomponents/compare/v1.11.0-rc.0...v1.11.0-rc.1) (2023-02-09)
304
+
305
+
306
+ ### Features
307
+
308
+ * **framework:** add option to define package name, tag and typescript support from CLI ([#6379](https://github.com/SAP/ui5-webcomponents/issues/6379)) ([687c0f7](https://github.com/SAP/ui5-webcomponents/commit/687c0f7a420a72f77f294ace2898223c48708ae2)), closes [#6382](https://github.com/SAP/ui5-webcomponents/issues/6382)
309
+
310
+
311
+
312
+
313
+
314
+ # [1.11.0-rc.0](https://github.com/SAP/ui5-webcomponents/compare/v1.10.4-rc.0...v1.11.0-rc.0) (2023-02-02)
315
+
316
+ **Note:** Version bump only for package @ui5/create-webcomponents-package
317
+
318
+
319
+
320
+
321
+
322
+ ## [1.10.4-rc.0](https://github.com/SAP/ui5-webcomponents/compare/v1.10.3...v1.10.4-rc.0) (2023-01-26)
323
+
324
+ **Note:** Version bump only for package @ui5/create-webcomponents-package
325
+
326
+
327
+
328
+
329
+
330
+ ## [1.10.3](https://github.com/SAP/ui5-webcomponents/compare/v1.10.2...v1.10.3) (2023-01-25)
331
+
332
+ **Note:** Version bump only for package @ui5/create-webcomponents-package
333
+
334
+
335
+
336
+
337
+
338
+ ## [1.10.1](https://github.com/SAP/ui5-webcomponents/compare/v0.0.0-7b49a7ff1...v1.10.1) (2023-01-24)
339
+
340
+ **Note:** Version bump only for package @ui5/create-webcomponents-package
341
+
342
+
343
+
344
+
345
+
346
+ # [1.10.0](https://github.com/SAP/ui5-webcomponents/compare/v1.9.3...v1.10.0) (2023-01-20)
347
+
348
+ **Note:** Version bump only for package @ui5/create-webcomponents-package
349
+
350
+
351
+
352
+
353
+
354
+ ## [1.9.3](https://github.com/SAP/ui5-webcomponents/compare/v1.9.2...v1.9.3) (2022-12-16)
355
+
356
+ **Note:** Version bump only for package @ui5/create-webcomponents-package
357
+
358
+
359
+
360
+
361
+
362
+ ## [1.9.1](https://github.com/SAP/ui5-webcomponents/compare/v1.9.0...v1.9.1) (2022-11-10)
363
+
364
+ **Note:** Version bump only for package @ui5/create-webcomponents-package
365
+
366
+
367
+
368
+
369
+
370
+ # [1.9.0](https://github.com/SAP/ui5-webcomponents/compare/v1.8.0...v1.9.0) (2022-10-31)
371
+
372
+ **Note:** Version bump only for package @ui5/create-webcomponents-package
373
+
374
+
375
+
376
+
377
+
378
+ # [1.8.0](https://github.com/SAP/ui5-webcomponents/compare/v1.7.1...v1.8.0) (2022-10-03)
379
+
380
+ **Note:** Version bump only for package @ui5/create-webcomponents-package
381
+
382
+
383
+
384
+
385
+
386
+ ## [1.7.1](https://github.com/SAP/ui5-webcomponents/compare/v1.7.0...v1.7.1) (2022-09-08)
387
+
388
+ **Note:** Version bump only for package @ui5/create-webcomponents-package
389
+
390
+
391
+
392
+
393
+
394
+ # [1.7.0](https://github.com/SAP/ui5-webcomponents/compare/v1.6.0...v1.7.0) (2022-09-02)
395
+
396
+ **Note:** Version bump only for package @ui5/create-webcomponents-package
397
+
398
+
399
+
400
+
401
+
6
402
  # [1.6.0](https://github.com/SAP/ui5-webcomponents/compare/v1.5.0...v1.6.0) (2022-07-25)
7
403
 
8
404
 
package/README.md CHANGED
@@ -6,17 +6,39 @@
6
6
 
7
7
  Provides an `npm init` script for creating new "UI5 Web Components" packages.
8
8
 
9
- ## Usage
9
+ ## Usage with npm
10
10
 
11
- with `npm`
11
+ ```
12
+ Usage:
12
13
 
13
- - `npm init @ui5/webcomponents-package` (the user will be asked for **name**, **port**, **tag**);
14
- - `npm init @ui5/webcomponents-package <NEW-PACKAGE-NAME>` (the user will be asked for **port** and **tag** only).
14
+ # npm 6.x
15
+ npm init @ui5/webcomponents-package [OPTIONS]
16
+ # npm 7+, an extra double-dash is needed:
17
+ npm init @ui5/webcomponents-package -- [OPTIONS]
15
18
 
16
- And with `yarn`
19
+ Options:
20
+ --name <string> - defines the package name
21
+ --component-name <string> - defines the component class name that will be created in your new package
22
+ --tag <string> - defines the tag name of the sample web component that will be created in your new package. The tag will be derived from the component name if not provided.
23
+ --enable-typescript - enables TypeScript support for the package
24
+ --skip - skips configuration and generates package with a default value for each parameter that wasn't passed
25
+ ```
17
26
 
18
- - `yarn create @ui5/webcomponents-package`
19
- - `yarn create @ui5/webcomponents-package <NEW-PACKAGE-NAME>`.
27
+ The script creates a new directory, and fills it with a `package.json` file and all necessary source files, and resources for a new
28
+ components package.
29
+
30
+ ## Usage with yarn
31
+
32
+ ```
33
+ Usage:
34
+ yarn create @ui5/webcomponents-package [OPTIONS]
35
+ Options:
36
+ --name <string> - defines the package name
37
+ --component-name <string> - defines the component class name that will be created in your new package
38
+ --tag <string> - defines the tag name of the sample web component that will be created in your new package
39
+ --enable-typescript - enables TypeScript support for the package
40
+ --skip - skips configuration and generates package with a default value for each parameter that wasn't passed
41
+ ```
20
42
 
21
43
  The script creates a new directory, and fills it with a `package.json` file and all necessary source files, and resources for a new
22
44
  components package.