@ui5/create-webcomponents-package 0.0.0-6827fdc09 → 0.0.0-6daff23a5

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,383 @@
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
+ # [0.0.0-6daff23a5](https://github.com/UI5/webcomponents/compare/v2.17.0-rc.3...v0.0.0-6daff23a5) (2025-11-25)
7
+
8
+ **Note:** Version bump only for package @ui5/create-webcomponents-package
9
+
10
+
11
+
12
+
13
+
14
+ # [2.17.0-rc.3](https://github.com/UI5/webcomponents/compare/v2.17.0-rc.2...v2.17.0-rc.3) (2025-11-20)
15
+
16
+ **Note:** Version bump only for package @ui5/create-webcomponents-package
17
+
18
+
19
+
20
+
21
+
22
+ # [2.17.0-rc.2](https://github.com/UI5/webcomponents/compare/v2.17.0-rc.1...v2.17.0-rc.2) (2025-11-13)
23
+
24
+ **Note:** Version bump only for package @ui5/create-webcomponents-package
25
+
26
+
27
+
28
+
29
+
30
+ # [2.17.0-rc.1](https://github.com/UI5/webcomponents/compare/v2.17.0-rc.0...v2.17.0-rc.1) (2025-11-07)
31
+
32
+ **Note:** Version bump only for package @ui5/create-webcomponents-package
33
+
34
+
35
+
36
+
37
+
38
+ # [2.17.0-rc.0](https://github.com/UI5/webcomponents/compare/v2.16.1-rc.0...v2.17.0-rc.0) (2025-11-06)
39
+
40
+ **Note:** Version bump only for package @ui5/create-webcomponents-package
41
+
42
+
43
+
44
+
45
+
46
+ ## [2.16.1-rc.0](https://github.com/UI5/webcomponents/compare/v2.16.0...v2.16.1-rc.0) (2025-11-06)
47
+
48
+ **Note:** Version bump only for package @ui5/create-webcomponents-package
49
+
50
+
51
+
52
+
53
+
54
+ # [2.16.0](https://github.com/UI5/webcomponents/compare/v2.16.0-rc.3...v2.16.0) (2025-11-05)
55
+
56
+ **Note:** Version bump only for package @ui5/create-webcomponents-package
57
+
58
+
59
+
60
+
61
+
62
+ # [2.16.0-rc.3](https://github.com/UI5/webcomponents/compare/v2.16.0-rc.2...v2.16.0-rc.3) (2025-10-30)
63
+
64
+ **Note:** Version bump only for package @ui5/create-webcomponents-package
65
+
66
+
67
+
68
+
69
+
70
+ # [2.16.0-rc.2](https://github.com/UI5/webcomponents/compare/v2.16.0-rc.1...v2.16.0-rc.2) (2025-10-23)
71
+
72
+ **Note:** Version bump only for package @ui5/create-webcomponents-package
73
+
74
+
75
+
76
+
77
+
78
+ # [2.16.0-rc.1](https://github.com/UI5/webcomponents/compare/v2.16.0-rc.0...v2.16.0-rc.1) (2025-10-16)
79
+
80
+ **Note:** Version bump only for package @ui5/create-webcomponents-package
81
+
82
+
83
+
84
+
85
+
86
+ # [2.16.0-rc.0](https://github.com/UI5/webcomponents/compare/v2.15.0...v2.16.0-rc.0) (2025-10-09)
87
+
88
+ **Note:** Version bump only for package @ui5/create-webcomponents-package
89
+
90
+
91
+
92
+
93
+
94
+ # [2.15.0](https://github.com/UI5/webcomponents/compare/v2.15.0-rc.3...v2.15.0) (2025-10-03)
95
+
96
+ **Note:** Version bump only for package @ui5/create-webcomponents-package
97
+
98
+
99
+
100
+
101
+
102
+ # [2.15.0-rc.3](https://github.com/UI5/webcomponents/compare/v2.15.0-rc.2...v2.15.0-rc.3) (2025-10-02)
103
+
104
+ **Note:** Version bump only for package @ui5/create-webcomponents-package
105
+
106
+
107
+
108
+
109
+
110
+ # [2.15.0-rc.2](https://github.com/UI5/webcomponents/compare/v2.15.0-rc.1...v2.15.0-rc.2) (2025-09-25)
111
+
112
+ **Note:** Version bump only for package @ui5/create-webcomponents-package
113
+
114
+
115
+
116
+
117
+
118
+ # [2.15.0-rc.1](https://github.com/UI5/webcomponents/compare/v2.15.0-rc.0...v2.15.0-rc.1) (2025-09-25)
119
+
120
+
121
+ ### Bug Fixes
122
+
123
+ * **create-new-package:** missing files ([#12327](https://github.com/UI5/webcomponents/issues/12327)) ([c80c4e9](https://github.com/UI5/webcomponents/commit/c80c4e96d853657e4618328c3b0fb0d1cb457e80))
124
+
125
+
126
+
127
+
128
+
129
+ # [2.15.0-rc.0](https://github.com/UI5/webcomponents/compare/v2.14.0...v2.15.0-rc.0) (2025-09-11)
130
+
131
+ **Note:** Version bump only for package @ui5/create-webcomponents-package
132
+
133
+
134
+
135
+
136
+
137
+ # [2.14.0](https://github.com/SAP/ui5-webcomponents/compare/v2.14.0-rc.7...v2.14.0) (2025-09-04)
138
+
139
+ **Note:** Version bump only for package @ui5/create-webcomponents-package
140
+
141
+
142
+
143
+
144
+
145
+ # [2.14.0-rc.7](https://github.com/SAP/ui5-webcomponents/compare/v2.14.0-rc.6...v2.14.0-rc.7) (2025-09-04)
146
+
147
+ **Note:** Version bump only for package @ui5/create-webcomponents-package
148
+
149
+
150
+
151
+
152
+
153
+ # [2.14.0-rc.6](https://github.com/SAP/ui5-webcomponents/compare/v2.14.0-rc.5...v2.14.0-rc.6) (2025-08-29)
154
+
155
+
156
+ ### Bug Fixes
157
+
158
+ * **create-package:** add `npmignore` to ensure `dist` is published ([#12199](https://github.com/SAP/ui5-webcomponents/issues/12199)) ([b00bd17](https://github.com/SAP/ui5-webcomponents/commit/b00bd17f4d6dadfbc4ad9bd0c8374225813cb605)), closes [#12196](https://github.com/SAP/ui5-webcomponents/issues/12196)
159
+
160
+
161
+
162
+
163
+
164
+ # [2.14.0-rc.5](https://github.com/SAP/ui5-webcomponents/compare/v2.14.0-rc.4...v2.14.0-rc.5) (2025-08-28)
165
+
166
+ **Note:** Version bump only for package @ui5/create-webcomponents-package
167
+
168
+
169
+
170
+
171
+
172
+ # [2.14.0-rc.4](https://github.com/SAP/ui5-webcomponents/compare/v2.14.0-rc.3...v2.14.0-rc.4) (2025-08-25)
173
+
174
+ **Note:** Version bump only for package @ui5/create-webcomponents-package
175
+
176
+
177
+
178
+
179
+
180
+ # [2.14.0-rc.3](https://github.com/SAP/ui5-webcomponents/compare/v2.14.0-rc.2...v2.14.0-rc.3) (2025-08-22)
181
+
182
+ **Note:** Version bump only for package @ui5/create-webcomponents-package
183
+
184
+
185
+
186
+
187
+
188
+ # [2.14.0-rc.2](https://github.com/SAP/ui5-webcomponents/compare/v2.14.0-rc.1...v2.14.0-rc.2) (2025-08-21)
189
+
190
+ **Note:** Version bump only for package @ui5/create-webcomponents-package
191
+
192
+
193
+
194
+
195
+
196
+ # [2.14.0-rc.1](https://github.com/SAP/ui5-webcomponents/compare/v2.14.0-rc.0...v2.14.0-rc.1) (2025-08-14)
197
+
198
+ **Note:** Version bump only for package @ui5/create-webcomponents-package
199
+
200
+
201
+
202
+
203
+
204
+ # [2.14.0-rc.0](https://github.com/SAP/ui5-webcomponents/compare/v2.13.0...v2.14.0-rc.0) (2025-08-07)
205
+
206
+ **Note:** Version bump only for package @ui5/create-webcomponents-package
207
+
208
+
209
+
210
+
211
+
212
+ # [2.13.0](https://github.com/SAP/ui5-webcomponents/compare/v2.13.0-rc.3...v2.13.0) (2025-08-04)
213
+
214
+ **Note:** Version bump only for package @ui5/create-webcomponents-package
215
+
216
+
217
+
218
+
219
+
220
+ # [2.13.0-rc.3](https://github.com/SAP/ui5-webcomponents/compare/v2.13.0-rc.2...v2.13.0-rc.3) (2025-07-31)
221
+
222
+ **Note:** Version bump only for package @ui5/create-webcomponents-package
223
+
224
+
225
+
226
+
227
+
228
+ # [2.13.0-rc.2](https://github.com/SAP/ui5-webcomponents/compare/v2.13.0-rc.1...v2.13.0-rc.2) (2025-07-24)
229
+
230
+ **Note:** Version bump only for package @ui5/create-webcomponents-package
231
+
232
+
233
+
234
+
235
+
236
+ # [2.13.0-rc.1](https://github.com/SAP/ui5-webcomponents/compare/v2.13.0-rc.0...v2.13.0-rc.1) (2025-07-17)
237
+
238
+ **Note:** Version bump only for package @ui5/create-webcomponents-package
239
+
240
+
241
+
242
+
243
+
244
+ # [2.13.0-rc.0](https://github.com/SAP/ui5-webcomponents/compare/v2.12.0...v2.13.0-rc.0) (2025-07-10)
245
+
246
+ **Note:** Version bump only for package @ui5/create-webcomponents-package
247
+
248
+
249
+
250
+
251
+
252
+ # [2.12.0](https://github.com/SAP/ui5-webcomponents/compare/v2.12.0-rc.3...v2.12.0) (2025-07-04)
253
+
254
+ **Note:** Version bump only for package @ui5/create-webcomponents-package
255
+
256
+
257
+
258
+
259
+
260
+ # [2.12.0-rc.3](https://github.com/SAP/ui5-webcomponents/compare/v2.12.0-rc.2...v2.12.0-rc.3) (2025-07-03)
261
+
262
+ **Note:** Version bump only for package @ui5/create-webcomponents-package
263
+
264
+
265
+
266
+
267
+
268
+ # [2.12.0-rc.2](https://github.com/SAP/ui5-webcomponents/compare/v2.12.0-rc.1...v2.12.0-rc.2) (2025-06-26)
269
+
270
+ **Note:** Version bump only for package @ui5/create-webcomponents-package
271
+
272
+
273
+
274
+
275
+
276
+ # [2.12.0-rc.1](https://github.com/SAP/ui5-webcomponents/compare/v2.12.0-rc.0...v2.12.0-rc.1) (2025-06-19)
277
+
278
+ **Note:** Version bump only for package @ui5/create-webcomponents-package
279
+
280
+
281
+
282
+
283
+
284
+ # [2.12.0-rc.0](https://github.com/SAP/ui5-webcomponents/compare/v2.11.0...v2.12.0-rc.0) (2025-06-12)
285
+
286
+ **Note:** Version bump only for package @ui5/create-webcomponents-package
287
+
288
+
289
+
290
+
291
+
292
+ # [2.11.0](https://github.com/SAP/ui5-webcomponents/compare/v2.11.0-rc.4...v2.11.0) (2025-06-05)
293
+
294
+ **Note:** Version bump only for package @ui5/create-webcomponents-package
295
+
296
+
297
+
298
+
299
+
300
+ # [2.11.0-rc.4](https://github.com/SAP/ui5-webcomponents/compare/v2.11.0-rc.3...v2.11.0-rc.4) (2025-06-05)
301
+
302
+ **Note:** Version bump only for package @ui5/create-webcomponents-package
303
+
304
+
305
+
306
+
307
+
308
+ # [2.11.0-rc.3](https://github.com/SAP/ui5-webcomponents/compare/v2.11.0-rc.2...v2.11.0-rc.3) (2025-05-29)
309
+
310
+
311
+ ### Bug Fixes
312
+
313
+ * create new package script on windows ([#11555](https://github.com/SAP/ui5-webcomponents/issues/11555)) ([2a60bc0](https://github.com/SAP/ui5-webcomponents/commit/2a60bc09d76d08a6d168ae2041d8c472d38e7cc1))
314
+
315
+
316
+
317
+
318
+
319
+ # [2.11.0-rc.2](https://github.com/SAP/ui5-webcomponents/compare/v2.11.0-rc.1...v2.11.0-rc.2) (2025-05-22)
320
+
321
+ **Note:** Version bump only for package @ui5/create-webcomponents-package
322
+
323
+
324
+
325
+
326
+
327
+ # [2.11.0-rc.1](https://github.com/SAP/ui5-webcomponents/compare/v2.11.0-rc.0...v2.11.0-rc.1) (2025-05-15)
328
+
329
+ **Note:** Version bump only for package @ui5/create-webcomponents-package
330
+
331
+
332
+
333
+
334
+
335
+ # [2.11.0-rc.0](https://github.com/SAP/ui5-webcomponents/compare/v2.10.0...v2.11.0-rc.0) (2025-05-08)
336
+
337
+ **Note:** Version bump only for package @ui5/create-webcomponents-package
338
+
339
+
340
+
341
+
342
+
343
+ # [2.10.0](https://github.com/SAP/ui5-webcomponents/compare/v2.10.0-rc.3...v2.10.0) (2025-05-07)
344
+
345
+ **Note:** Version bump only for package @ui5/create-webcomponents-package
346
+
347
+
348
+
349
+
350
+
351
+ # [2.10.0-rc.3](https://github.com/SAP/ui5-webcomponents/compare/v2.10.0-rc.2...v2.10.0-rc.3) (2025-05-01)
352
+
353
+ **Note:** Version bump only for package @ui5/create-webcomponents-package
354
+
355
+
356
+
357
+
358
+
359
+ # [2.10.0-rc.2](https://github.com/SAP/ui5-webcomponents/compare/v2.10.0-rc.1...v2.10.0-rc.2) (2025-04-24)
360
+
361
+ **Note:** Version bump only for package @ui5/create-webcomponents-package
362
+
363
+
364
+
365
+
366
+
367
+ # [2.10.0-rc.1](https://github.com/SAP/ui5-webcomponents/compare/v2.10.0-rc.0...v2.10.0-rc.1) (2025-04-17)
368
+
369
+ **Note:** Version bump only for package @ui5/create-webcomponents-package
370
+
371
+
372
+
373
+
374
+
375
+ # [2.10.0-rc.0](https://github.com/SAP/ui5-webcomponents/compare/v2.9.1-rc.0...v2.10.0-rc.0) (2025-04-14)
376
+
377
+ **Note:** Version bump only for package @ui5/create-webcomponents-package
378
+
379
+
380
+
381
+
382
+
6
383
  ## [2.9.1-rc.0](https://github.com/SAP/ui5-webcomponents/compare/v2.9.0...v2.9.1-rc.0) (2025-04-10)
7
384
 
8
385
  **Note:** Version bump only for package @ui5/create-webcomponents-package
package/LICENSE.txt ADDED
@@ -0,0 +1,201 @@
1
+ Apache License
2
+ Version 2.0, January 2004
3
+ http://www.apache.org/licenses/
4
+
5
+ TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION
6
+
7
+ 1. Definitions.
8
+
9
+ "License" shall mean the terms and conditions for use, reproduction,
10
+ and distribution as defined by Sections 1 through 9 of this document.
11
+
12
+ "Licensor" shall mean the copyright owner or entity authorized by
13
+ the copyright owner that is granting the License.
14
+
15
+ "Legal Entity" shall mean the union of the acting entity and all
16
+ other entities that control, are controlled by, or are under common
17
+ control with that entity. For the purposes of this definition,
18
+ "control" means (i) the power, direct or indirect, to cause the
19
+ direction or management of such entity, whether by contract or
20
+ otherwise, or (ii) ownership of fifty percent (50%) or more of the
21
+ outstanding shares, or (iii) beneficial ownership of such entity.
22
+
23
+ "You" (or "Your") shall mean an individual or Legal Entity
24
+ exercising permissions granted by this License.
25
+
26
+ "Source" form shall mean the preferred form for making modifications,
27
+ including but not limited to software source code, documentation
28
+ source, and configuration files.
29
+
30
+ "Object" form shall mean any form resulting from mechanical
31
+ transformation or translation of a Source form, including but
32
+ not limited to compiled object code, generated documentation,
33
+ and conversions to other media types.
34
+
35
+ "Work" shall mean the work of authorship, whether in Source or
36
+ Object form, made available under the License, as indicated by a
37
+ copyright notice that is included in or attached to the work
38
+ (an example is provided in the Appendix below).
39
+
40
+ "Derivative Works" shall mean any work, whether in Source or Object
41
+ form, that is based on (or derived from) the Work and for which the
42
+ editorial revisions, annotations, elaborations, or other modifications
43
+ represent, as a whole, an original work of authorship. For the purposes
44
+ of this License, Derivative Works shall not include works that remain
45
+ separable from, or merely link (or bind by name) to the interfaces of,
46
+ the Work and Derivative Works thereof.
47
+
48
+ "Contribution" shall mean any work of authorship, including
49
+ the original version of the Work and any modifications or additions
50
+ to that Work or Derivative Works thereof, that is intentionally
51
+ submitted to Licensor for inclusion in the Work by the copyright owner
52
+ or by an individual or Legal Entity authorized to submit on behalf of
53
+ the copyright owner. For the purposes of this definition, "submitted"
54
+ means any form of electronic, verbal, or written communication sent
55
+ to the Licensor or its representatives, including but not limited to
56
+ communication on electronic mailing lists, source code control systems,
57
+ and issue tracking systems that are managed by, or on behalf of, the
58
+ Licensor for the purpose of discussing and improving the Work, but
59
+ excluding communication that is conspicuously marked or otherwise
60
+ designated in writing by the copyright owner as "Not a Contribution."
61
+
62
+ "Contributor" shall mean Licensor and any individual or Legal Entity
63
+ on behalf of whom a Contribution has been received by Licensor and
64
+ subsequently incorporated within the Work.
65
+
66
+ 2. Grant of Copyright License. Subject to the terms and conditions of
67
+ this License, each Contributor hereby grants to You a perpetual,
68
+ worldwide, non-exclusive, no-charge, royalty-free, irrevocable
69
+ copyright license to reproduce, prepare Derivative Works of,
70
+ publicly display, publicly perform, sublicense, and distribute the
71
+ Work and such Derivative Works in Source or Object form.
72
+
73
+ 3. Grant of Patent License. Subject to the terms and conditions of
74
+ this License, each Contributor hereby grants to You a perpetual,
75
+ worldwide, non-exclusive, no-charge, royalty-free, irrevocable
76
+ (except as stated in this section) patent license to make, have made,
77
+ use, offer to sell, sell, import, and otherwise transfer the Work,
78
+ where such license applies only to those patent claims licensable
79
+ by such Contributor that are necessarily infringed by their
80
+ Contribution(s) alone or by combination of their Contribution(s)
81
+ with the Work to which such Contribution(s) was submitted. If You
82
+ institute patent litigation against any entity (including a
83
+ cross-claim or counterclaim in a lawsuit) alleging that the Work
84
+ or a Contribution incorporated within the Work constitutes direct
85
+ or contributory patent infringement, then any patent licenses
86
+ granted to You under this License for that Work shall terminate
87
+ as of the date such litigation is filed.
88
+
89
+ 4. Redistribution. You may reproduce and distribute copies of the
90
+ Work or Derivative Works thereof in any medium, with or without
91
+ modifications, and in Source or Object form, provided that You
92
+ meet the following conditions:
93
+
94
+ (a) You must give any other recipients of the Work or
95
+ Derivative Works a copy of this License; and
96
+
97
+ (b) You must cause any modified files to carry prominent notices
98
+ stating that You changed the files; and
99
+
100
+ (c) You must retain, in the Source form of any Derivative Works
101
+ that You distribute, all copyright, patent, trademark, and
102
+ attribution notices from the Source form of the Work,
103
+ excluding those notices that do not pertain to any part of
104
+ the Derivative Works; and
105
+
106
+ (d) If the Work includes a "NOTICE" text file as part of its
107
+ distribution, then any Derivative Works that You distribute must
108
+ include a readable copy of the attribution notices contained
109
+ within such NOTICE file, excluding those notices that do not
110
+ pertain to any part of the Derivative Works, in at least one
111
+ of the following places: within a NOTICE text file distributed
112
+ as part of the Derivative Works; within the Source form or
113
+ documentation, if provided along with the Derivative Works; or,
114
+ within a display generated by the Derivative Works, if and
115
+ wherever such third-party notices normally appear. The contents
116
+ of the NOTICE file are for informational purposes only and
117
+ do not modify the License. You may add Your own attribution
118
+ notices within Derivative Works that You distribute, alongside
119
+ or as an addendum to the NOTICE text from the Work, provided
120
+ that such additional attribution notices cannot be construed
121
+ as modifying the License.
122
+
123
+ You may add Your own copyright statement to Your modifications and
124
+ may provide additional or different license terms and conditions
125
+ for use, reproduction, or distribution of Your modifications, or
126
+ for any such Derivative Works as a whole, provided Your use,
127
+ reproduction, and distribution of the Work otherwise complies with
128
+ the conditions stated in this License.
129
+
130
+ 5. Submission of Contributions. Unless You explicitly state otherwise,
131
+ any Contribution intentionally submitted for inclusion in the Work
132
+ by You to the Licensor shall be under the terms and conditions of
133
+ this License, without any additional terms or conditions.
134
+ Notwithstanding the above, nothing herein shall supersede or modify
135
+ the terms of any separate license agreement you may have executed
136
+ with Licensor regarding such Contributions.
137
+
138
+ 6. Trademarks. This License does not grant permission to use the trade
139
+ names, trademarks, service marks, or product names of the Licensor,
140
+ except as required for reasonable and customary use in describing the
141
+ origin of the Work and reproducing the content of the NOTICE file.
142
+
143
+ 7. Disclaimer of Warranty. Unless required by applicable law or
144
+ agreed to in writing, Licensor provides the Work (and each
145
+ Contributor provides its Contributions) on an "AS IS" BASIS,
146
+ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or
147
+ implied, including, without limitation, any warranties or conditions
148
+ of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A
149
+ PARTICULAR PURPOSE. You are solely responsible for determining the
150
+ appropriateness of using or redistributing the Work and assume any
151
+ risks associated with Your exercise of permissions under this License.
152
+
153
+ 8. Limitation of Liability. In no event and under no legal theory,
154
+ whether in tort (including negligence), contract, or otherwise,
155
+ unless required by applicable law (such as deliberate and grossly
156
+ negligent acts) or agreed to in writing, shall any Contributor be
157
+ liable to You for damages, including any direct, indirect, special,
158
+ incidental, or consequential damages of any character arising as a
159
+ result of this License or out of the use or inability to use the
160
+ Work (including but not limited to damages for loss of goodwill,
161
+ work stoppage, computer failure or malfunction, or any and all
162
+ other commercial damages or losses), even if such Contributor
163
+ has been advised of the possibility of such damages.
164
+
165
+ 9. Accepting Warranty or Additional Liability. While redistributing
166
+ the Work or Derivative Works thereof, You may choose to offer,
167
+ and charge a fee for, acceptance of support, warranty, indemnity,
168
+ or other liability obligations and/or rights consistent with this
169
+ License. However, in accepting such obligations, You may act only
170
+ on Your own behalf and on Your sole responsibility, not on behalf
171
+ of any other Contributor, and only if You agree to indemnify,
172
+ defend, and hold each Contributor harmless for any liability
173
+ incurred by, or claims asserted against, such Contributor by reason
174
+ of your accepting any such warranty or additional liability.
175
+
176
+ END OF TERMS AND CONDITIONS
177
+
178
+ APPENDIX: How to apply the Apache License to your work.
179
+
180
+ To apply the Apache License to your work, attach the following
181
+ boilerplate notice, with the fields enclosed by brackets "[]"
182
+ replaced with your own identifying information. (Don't include
183
+ the brackets!) The text should be enclosed in the appropriate
184
+ comment syntax for the file format. We also recommend that a
185
+ file or class name and description of purpose be included on the
186
+ same "printed page" as the copyright notice for easier
187
+ identification within third-party archives.
188
+
189
+ Copyright 2020-21 SAP SE or an SAP affiliate company and OpenUI5 contributors
190
+
191
+ Licensed under the Apache License, Version 2.0 (the "License");
192
+ you may not use this file except in compliance with the License.
193
+ You may obtain a copy of the License at
194
+
195
+ http://www.apache.org/licenses/LICENSE-2.0
196
+
197
+ Unless required by applicable law or agreed to in writing, software
198
+ distributed under the License is distributed on an "AS IS" BASIS,
199
+ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
200
+ See the License for the specific language governing permissions and
201
+ limitations under the License.
package/README.md CHANGED
@@ -1,4 +1,4 @@
1
- # ![UI5 icon](https://raw.githubusercontent.com/SAP/ui5-webcomponents/main/docs/images/UI5_logo_water.png)UI5 Web Components - Create Package
1
+ # ![UI5 icon](https://raw.githubusercontent.com/UI5/webcomponents/main/docs/images/UI5_logo_water.png)UI5 Web Components - Create Package
2
2
 
3
3
  [![npm Package Version](https://badge.fury.io/js/%40ui5%2Fwebcomponents.svg)](https://www.npmjs.com/package/@ui5/webcomponents)
4
4
 
@@ -16,8 +16,6 @@ Usage:
16
16
 
17
17
  Options:
18
18
  --name <string> - defines the package name
19
- --component-name <string> - defines the component class name that will be created in your new package
20
- --tag <string> - defines the tag name of the sample web component that will be created in your new package
21
19
  --test-setup <"cypress" | "manual"> - defines whether the predefined test setup should be added or it will be configured manually.
22
20
  --skip - skips configuration and generates package with a default value for each parameter that wasn't passed
23
21
  ```
@@ -32,8 +30,6 @@ Usage:
32
30
  yarn create @ui5/webcomponents-package [OPTIONS]
33
31
  Options:
34
32
  --name <string> - defines the package name
35
- --component-name <string> - defines the component class name that will be created in your new package
36
- --tag <string> - defines the tag name of the sample web component that will be created in your new package
37
33
  --test-setup <"cypress" | "manual"> - defines whether the predefined test setup should be added or it will be configured manually.
38
34
  --skip - skips configuration and generates package with a default value for each parameter that wasn't passed
39
35
  ```
@@ -42,16 +38,16 @@ The script creates a new directory, and fills it with a `package.json` file and
42
38
  components package.
43
39
 
44
40
  ## Resources
45
- - [UI5 Web Components - README.md](https://github.com/SAP/ui5-webcomponents/blob/main/README.md)
46
- - [UI5 Web Components - Home Page](https://sap.github.io/ui5-webcomponents)
47
- - [UI5 Web Components - Playground and API Reference](https://sap.github.io/ui5-webcomponents/play/)
41
+ - [UI5 Web Components - README.md](https://github.com/UI5/webcomponents/blob/main/README.md)
42
+ - [UI5 Web Components - Home Page](https://ui5.github.io/webcomponents)
43
+ - [UI5 Web Components - Playground and API Reference](https://ui5.github.io/webcomponents/play/)
48
44
 
49
45
  ## Support
50
- 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/).
46
+ We welcome all comments, suggestions, questions, and bug reports. Please follow our [Support Guidelines](https://github.com/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/).
51
47
 
52
48
  ## Contribute
53
- Please check our [Contribution Guidelines](https://github.com/SAP/ui5-webcomponents/blob/main/docs/6-contributing/02-conventions-and-guidelines.md).
49
+ Please check our [Contribution Guidelines](https://github.com/UI5/webcomponents/blob/main/docs/6-contributing/02-conventions-and-guidelines.md).
54
50
 
55
51
  ## License
56
52
  Copyright (c) 2019 SAP SE or an SAP affiliate company. All rights reserved.
57
- This file is licensed under the Apache Software License, Version 2.0 except as noted otherwise in the [LICENSE](https://github.com/SAP/ui5-webcomponents/blob/main/LICENSE.txt) file.
53
+ This file is licensed under the Apache Software License, Version 2.0 except as noted otherwise in the [LICENSE](https://github.com/UI5/webcomponents/blob/main/LICENSE.txt) file.
package/create-package.js CHANGED
@@ -4,7 +4,6 @@ import path, { dirname } from "path";
4
4
  import prompts from "prompts";
5
5
  import parser from "npm-config-user-agent-parser";
6
6
  import yargs from "yargs/yargs";
7
- import { globby } from "globby";
8
7
  import { hideBin } from "yargs/helpers";
9
8
  import { fileURLToPath } from "url";
10
9
  import * as prettier from "prettier";
@@ -18,28 +17,67 @@ const VERSION = JSON.parse(
18
17
 
19
18
  // Constants
20
19
  const SUPPORTED_TEST_SETUPS = ["cypress", "manual"];
21
- const SRC_DIR = "template";
20
+ const SRC_DIR = path.join(__dirname, "template");
21
+ const DEST_DIR = process.cwd();
22
+
22
23
  const FILES_TO_RENAME = {
23
- "npmrc": ".npmrc",
24
- "gitignore": ".gitignore",
24
+ [path.normalize("eslintignore")]: path.normalize(".eslintignore"),
25
+ [path.normalize("eslintrc.cjs")]: path.normalize(".eslintrc.cjs"),
26
+ [path.normalize("gitignore")]: path.normalize(".gitignore"),
27
+ [path.normalize("npmignore")]: path.normalize(".npmignore"),
28
+ [path.normalize("npsrc.json")]: path.normalize(".npsrc.json"),
29
+ [path.normalize("npmrc")]: path.normalize(".npmrc"),
30
+ [path.normalize("env")]: path.normalize(".env"),
31
+ [path.normalize("tsconfig.template.json")]: path.normalize("tsconfig.json"),
32
+ [path.normalize("cypress/tsconfig.template.json")]: path.normalize("cypress/tsconfig.json")
25
33
  };
26
34
  const FILES_TO_COPY = ["test/pages/img/logo.png"];
27
35
 
28
36
  // Validation Patterns
29
37
  const PackageNamePattern =
30
38
  /^(@[a-z0-9-~][a-z0-9-._~]*\/)?[a-z0-9-~][a-z0-9-._~]*$/;
39
+ const TagPattern = /^[a-z0-9]+?-[a-zA-Z0-9\-_]+?[a-z0-9]$/;
31
40
 
32
41
  // Utility Functions
33
42
  const isPackageNameValid = name =>
34
43
  typeof name === "string" && PackageNamePattern.test(name);
44
+ const isTagValid = tag => typeof tag === "string" && TagPattern.test(tag);
35
45
  const isTestSetupValid = setup =>
36
46
  typeof setup === "string" && SUPPORTED_TEST_SETUPS.includes(setup);
37
47
 
48
+ async function collectFiles(dir, fileList = []) {
49
+ const entries = await fs.readdir(dir, { withFileTypes: true });
50
+
51
+ for (const entry of entries) {
52
+ const fullPath = path.join(dir, entry.name);
53
+ if (entry.isDirectory()) {
54
+ await collectFiles(fullPath, fileList);
55
+ } else if (entry.isFile()) {
56
+ fileList.push(fullPath);
57
+ }
58
+ }
59
+
60
+ return fileList;
61
+ }
62
+
63
+ /**
64
+ * Hyphanates the given PascalCase string, f.e.:
65
+ * Foo -> "my-foo" (adds preffix)
66
+ * FooBar -> "foo-bar"
67
+ */
68
+ const hyphenateComponentName = componentName => {
69
+ const result = componentName
70
+ .replace(/([a-z])([A-Z])/g, "$1-$2")
71
+ .toLowerCase();
72
+ return result.includes("-") ? result : `my-${result}`;
73
+ };
74
+
38
75
  const replacePlaceholders = (content, replacements) =>
39
76
  content.replace(/{{(.*?)}}/g, (_, key) => replacements[key.trim()] || "");
40
77
 
41
78
  const generateFilesContent = async (
42
79
  packageName,
80
+ componentName,
43
81
  skipSubfolder,
44
82
  testSetup,
45
83
  ) => {
@@ -47,13 +85,15 @@ const generateFilesContent = async (
47
85
  const vars = {
48
86
  INIT_PACKAGE_VAR_NAME: packageName,
49
87
  INIT_PACKAGE_VERSION: VERSION,
88
+ INIT_PACKAGE_VAR_TAG: argv.tag || hyphenateComponentName(componentName),
89
+ INIT_PACKAGE_VAR_CLASS_NAME: componentName,
50
90
  INIT_PACKAGE_CYPRESS_ROOT_TSCONFIG:
51
91
  testSetup === "cypress"
52
92
  ? `"tsBuildInfoFile": "dist/.tsbuildinfo",\n"rootDir": "src",\n"composite": true,`
53
93
  : "",
54
94
  INIT_PACKAGE_CYPRESS_DEV_DEPS:
55
95
  testSetup === "cypress"
56
- ? `"@ui5/cypress-ct-ui5-webc": "^0.0.3",\n"cypress": "^13.11.0",`
96
+ ? `"@ui5/cypress-ct-ui5-webc": "^0.0.4",\n"cypress": "^13.11.0",`
57
97
  : "",
58
98
  INIT_PACKAGE_CYPRESS_TEST_COMMANDS:
59
99
  testSetup === "cypress"
@@ -67,13 +107,13 @@ const generateFilesContent = async (
67
107
  ? packageName.slice(packageName.lastIndexOf("/") + 1)
68
108
  : packageName;
69
109
  const destDir = skipSubfolder
70
- ? path.join("./")
71
- : path.join("./", packageBaseName);
110
+ ? path.join(DEST_DIR)
111
+ : path.join(DEST_DIR, packageBaseName);
72
112
 
73
113
  await processFiles(destDir, vars, testSetup);
74
114
 
75
115
  console.log("\nPackage successfully created!\nNext steps:\n");
76
- console.log(`$ cd ${destDir}`);
116
+ console.log(`$ cd ${packageBaseName}`);
77
117
 
78
118
  try {
79
119
  const userAgent = parser(process.env.npm_config_user_agent);
@@ -88,9 +128,9 @@ const generateFilesContent = async (
88
128
  };
89
129
 
90
130
  async function processFiles(destDir, replacements, testSetup) {
91
- const files = await globby(`${SRC_DIR}/**/*`, { dot: true });
131
+ const files = await collectFiles(SRC_DIR);
92
132
  const FILE_PATHS_TO_SKIP = [
93
- testSetup !== "cypress" ? "cypress" : undefined,
133
+ testSetup !== "cypress" ? path.normalize("cypress") : undefined,
94
134
  ].filter(Boolean);
95
135
 
96
136
  for (const file of files) {
@@ -102,6 +142,12 @@ async function processFiles(destDir, replacements, testSetup) {
102
142
  continue;
103
143
  }
104
144
 
145
+ // // Component related file based on the user input
146
+ // destPath = destPath.replace(
147
+ // "MyFirstComponent",
148
+ // replacements.INIT_PACKAGE_VAR_CLASS_NAME,
149
+ // );
150
+
105
151
  // Files that need to be renamed
106
152
  if (FILES_TO_RENAME[relativePath]) {
107
153
  destPath = destPath.replace(
@@ -155,12 +201,14 @@ const createWebcomponentsPackage = async () => {
155
201
  }
156
202
 
157
203
  let packageName = argv.name || "my-package";
204
+ let componentName = "MyFirstComponent";
158
205
  let testSetup = argv.testSetup || "manual";
159
206
  const skipSubfolder = !!argv.skipSubfolder;
160
207
 
161
208
  if (argv.skip) {
162
209
  return generateFilesContent(
163
210
  packageName,
211
+ componentName,
164
212
  skipSubfolder,
165
213
  testSetup,
166
214
  );
@@ -196,6 +244,7 @@ const createWebcomponentsPackage = async () => {
196
244
 
197
245
  return generateFilesContent(
198
246
  packageName,
247
+ componentName,
199
248
  skipSubfolder,
200
249
  testSetup,
201
250
  );
package/package.json CHANGED
@@ -1,30 +1,28 @@
1
1
  {
2
2
  "name": "@ui5/create-webcomponents-package",
3
- "version": "0.0.0-6827fdc09",
3
+ "version": "0.0.0-6daff23a5",
4
4
  "description": "UI5 Web Components: create package",
5
5
  "author": "SAP SE (https://www.sap.com)",
6
6
  "license": "Apache-2.0",
7
7
  "type": "module",
8
- "private": false,
9
8
  "keywords": [
10
9
  "openui5",
11
10
  "sapui5",
12
11
  "ui5"
13
12
  ],
14
- "bin": {
15
- "create-webcomponents-package": "create-package.js"
16
- },
13
+ "bin": "create-package.js",
17
14
  "repository": {
18
15
  "type": "git",
19
- "url": "https://github.com/SAP/ui5-webcomponents.git",
16
+ "url": "https://github.com/UI5/webcomponents.git",
20
17
  "directory": "packages/create-package"
21
18
  },
22
19
  "dependencies": {
23
- "globby": "^13.1.1",
20
+ "chokidar-cli": "^3.0.0",
24
21
  "mkdirp": "^1.0.4",
25
22
  "npm-config-user-agent-parser": "^1.0.0",
26
23
  "prettier": "^3.5.3",
27
24
  "prompts": "^2.4.1",
28
25
  "yargs": "^17.5.1"
29
- }
30
- }
26
+ },
27
+ "gitHead": "b5e8a99b74f0475e61300bc7c49b7470d11b9015"
28
+ }
@@ -0,0 +1,13 @@
1
+ import {{INIT_PACKAGE_VAR_CLASS_NAME}} from "../../src/{{INIT_PACKAGE_VAR_CLASS_NAME}}.js";
2
+
3
+ describe('{{INIT_PACKAGE_VAR_CLASS_NAME}}.cy.tsx', () => {
4
+ it('playground', () => {
5
+ cy.mount(<{{INIT_PACKAGE_VAR_CLASS_NAME}} />)
6
+
7
+ cy.get("[{{INIT_PACKAGE_VAR_TAG}}]")
8
+ .click();
9
+
10
+ cy.get("[{{INIT_PACKAGE_VAR_TAG}}]")
11
+ .should("have.prop", "count", 1)
12
+ })
13
+ })
package/template/env ADDED
@@ -0,0 +1 @@
1
+ VITE_BUNDLE_PATH="../../dist/bundle.esm.js"
@@ -0,0 +1,6 @@
1
+ src/generated
2
+ node_modules/
3
+ test/
4
+ cypress/
5
+ .eslintrc.cjs
6
+ .eslintignore
@@ -6,10 +6,10 @@ import jsxRenderer from "@ui5/webcomponents-base/dist/renderer/JsxRenderer.js";
6
6
  import type I18nBundle from "@ui5/webcomponents-base/dist/i18nBundle.js";
7
7
 
8
8
  // Template
9
- import DemoCounterTemplate from "./DemoCounterTemplate.js";
9
+ import {{INIT_PACKAGE_VAR_CLASS_NAME}}Template from "./{{INIT_PACKAGE_VAR_CLASS_NAME}}Template.js";
10
10
 
11
11
  // Styles
12
- import DemoCounterCss from "./generated/themes/DemoCounter.css.js";
12
+ import {{INIT_PACKAGE_VAR_CLASS_NAME}}Css from "./generated/themes/{{INIT_PACKAGE_VAR_CLASS_NAME}}.css.js";
13
13
 
14
14
  import { COUNT } from "./generated/i18n/i18n-defaults.js";
15
15
 
@@ -18,19 +18,19 @@ import { COUNT } from "./generated/i18n/i18n-defaults.js";
18
18
  *
19
19
  * <h3 class="comment-api-title">Overview</h3>
20
20
  *
21
- * The <code>demo-counter</code> component is a demo component that increases a number upon click.
21
+ * The <code>{{INIT_PACKAGE_VAR_TAG}}</code> component is a demo component that displays some text.
22
22
  *
23
23
  * @constructor
24
24
  * @extends UI5Element
25
25
  * @public
26
26
  */
27
27
  @customElement({
28
- tag: "demo-counter",
28
+ tag: "{{INIT_PACKAGE_VAR_TAG}}",
29
29
  renderer: jsxRenderer,
30
- styles: DemoCounterCss,
31
- template: DemoCounterTemplate,
30
+ styles: {{INIT_PACKAGE_VAR_CLASS_NAME}}Css,
31
+ template: {{INIT_PACKAGE_VAR_CLASS_NAME}}Template,
32
32
  })
33
- class DemoCounter extends UI5Element {
33
+ class {{INIT_PACKAGE_VAR_CLASS_NAME}} extends UI5Element {
34
34
  @i18n("{{INIT_PACKAGE_VAR_NAME}}")
35
35
  static i18nBundle: I18nBundle;
36
36
 
@@ -47,10 +47,10 @@ class DemoCounter extends UI5Element {
47
47
  }
48
48
 
49
49
  get counterText() {
50
- return DemoCounter.i18nBundle.getText(COUNT);
50
+ return {{INIT_PACKAGE_VAR_CLASS_NAME}}.i18nBundle.getText(COUNT);
51
51
  }
52
52
  }
53
53
 
54
- DemoCounter.define();
54
+ {{INIT_PACKAGE_VAR_CLASS_NAME}}.define();
55
55
 
56
- export default DemoCounter;
56
+ export default {{INIT_PACKAGE_VAR_CLASS_NAME}};
@@ -0,0 +1,9 @@
1
+ import type {{INIT_PACKAGE_VAR_CLASS_NAME}} from "./{{INIT_PACKAGE_VAR_CLASS_NAME}}.js";
2
+
3
+ export default function {{INIT_PACKAGE_VAR_CLASS_NAME}}Template(this: {{INIT_PACKAGE_VAR_CLASS_NAME}}) {
4
+ return (
5
+ <div class="root" onClick={this.onClick}>
6
+ {this.counterText} :: {this.count}
7
+ </div>
8
+ );
9
+ }
@@ -1,7 +1,30 @@
1
- // Entry point for all components and resources used in the test pages
1
+ // used in test pages
2
+ import { renderFinished } from "@ui5/webcomponents-base/dist/Render.js";
2
3
 
3
- // Themes and i18n texts
4
+ import { getAnimationMode } from "@ui5/webcomponents-base/dist/config/AnimationMode.js";
5
+ import { getLanguage } from "@ui5/webcomponents-base/dist/config/Language.js";
6
+ import { getCalendarType } from "@ui5/webcomponents-base/dist/config/CalendarType.js";
7
+ import { getTheme, setTheme } from "@ui5/webcomponents-base/dist/config/Theme.js";
8
+ import { getNoConflict, setNoConflict } from "@ui5/webcomponents-base/dist/config/NoConflict.js";
9
+ import { getFirstDayOfWeek } from "@ui5/webcomponents-base/dist/config/FormatSettings.js";
10
+
11
+ // Enable additional themes and i18n texts
4
12
  import "./Assets.js";
5
13
 
6
- // Web components
7
- import "./DemoCounter.js";
14
+ // Import your web components here from the src/ directory
15
+ import "./{{INIT_PACKAGE_VAR_CLASS_NAME}}.js";
16
+
17
+ // @ts-expect-error
18
+ window["sap-ui-webcomponents-bundle"] = {
19
+ renderFinished,
20
+ configuration: {
21
+ getAnimationMode,
22
+ getLanguage,
23
+ getTheme,
24
+ setTheme,
25
+ getNoConflict,
26
+ setNoConflict,
27
+ getCalendarType,
28
+ getFirstDayOfWeek,
29
+ },
30
+ };
@@ -28,12 +28,14 @@ a.theme-link {
28
28
  color: var(--sapButton_Emphasized_TextColor);
29
29
  background-color: var(--sapButton_Emphasized_Background);
30
30
  text-decoration: none;
31
+ border-radius: 0.25rem;
31
32
  }
32
33
 
33
34
  a.lang-link {
34
35
  color: var(--sapButton_Attention_TextColor);
35
36
  background-color: var(--sapButton_Attention_Background);
36
37
  text-decoration: none;
38
+ border-radius: 0.25rem;
37
39
  }
38
40
 
39
41
  .app {
@@ -7,27 +7,27 @@
7
7
  <meta name="viewport" content="width=device-width, initial-scale=1">
8
8
  <meta charset="utf-8">
9
9
  <link rel="stylesheet" type="text/css" href="./css/index.css">
10
- <script src="../../dist/bundle.esm.js" type="module"></script>
10
+ <script src="%VITE_BUNDLE_PATH%" type="module"></script>
11
11
  </head>
12
12
 
13
13
  <body>
14
14
  <div class="app">
15
15
  <nav class="app-nav">
16
- <a class="link" href="https://sap.github.io/ui5-webcomponents/">Website</a>
17
- <a class="link" href="https://sap.github.io/ui5-webcomponents/components/">Components</a>
18
- <a class="link" href="https://sap.github.io/ui5-webcomponents/docs/development/package/">Development</a>
16
+ <a class="link" href="https://ui5.github.io/webcomponents/">Website</a>
17
+ <a class="link" href="https://ui5.github.io/webcomponents/components/">Components</a>
18
+ <a class="link" href="https://ui5.github.io/webcomponents/docs/development/package/">Development</a>
19
19
  </nav>
20
20
 
21
21
  <header class="app-header">
22
- <a href="https://sap.github.io/ui5-webcomponents/" target="_blank"><img src="./img/logo.png" class="app-logo" alt="logo"/></a>
22
+ <a href="https://ui5.github.io/webcomponents/" target="_blank"><img src="./img/logo.png" class="app-logo" alt="logo"/></a>
23
23
  <h1>UI5 Web Components</h1>
24
24
  </header>
25
25
 
26
26
  <main class="app-main">
27
27
  <div class="app-main-demo">
28
28
  <h2>Congrats! It's your First Web Component 🎉</h2>
29
- <div> <pre>&lt;demo-counter>&lt;/demo-counter> </pre></div>
30
- <demo-counter id="myFirstComponent"></demo-counter>
29
+ <div> <pre>&lt;{{INIT_PACKAGE_VAR_TAG}}>&lt;/{{INIT_PACKAGE_VAR_TAG}}> </pre></div>
30
+ <{{INIT_PACKAGE_VAR_TAG}} id="myFirstComponent"></{{INIT_PACKAGE_VAR_TAG}}>
31
31
  </div>
32
32
 
33
33
  <div class="app-main-settings">
@@ -1,13 +0,0 @@
1
- import DemoCounter from "../../src/DemoCounter.js";
2
-
3
- describe('DemoCounter.cy.tsx', () => {
4
- it('playground', () => {
5
- cy.mount(<DemoCounter />)
6
-
7
- cy.get("[hardcoded-button]")
8
- .click();
9
-
10
- cy.get("[hardcoded-button]")
11
- .should("have.prop", "count", 1)
12
- })
13
- })
@@ -1,9 +0,0 @@
1
- import type DemoCounter from "./DemoCounter.js";
2
-
3
- export default function DemoCounterTemplate(this: DemoCounter) {
4
- return (
5
- <div class="root" onClick={this.onClick}>
6
- {this.counterText} :: {this.count}
7
- </div>
8
- );
9
- }
File without changes
File without changes
File without changes