@ui5/create-webcomponents-package 0.0.0-3236d56be → 0.0.0-33967dd12

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 (36) hide show
  1. package/CHANGELOG.md +383 -0
  2. package/README.md +34 -13
  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 +35 -4
  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 +36 -33
  26. package/template/test/specs/Demo.spec.js +3 -2
  27. package/template/tsconfig.json +15 -0
  28. package/index.js +0 -168
  29. package/template/config/.eslintrc.js +0 -1
  30. package/template/config/rollup.config.js +0 -1
  31. package/template/src/themes/sap_belize_hcw/parameters-bundle.css +0 -3
  32. package/template/src/themes/sap_fiori_3_dark/parameters-bundle.css +0 -3
  33. package/template/src/themes/sap_fiori_3_hcb/parameters-bundle.css +0 -3
  34. package/template/src/themes/sap_fiori_3_hcw/parameters-bundle.css +0 -3
  35. /package/template/src/themes/{sap_belize → sap_horizon}/parameters-bundle.css +0 -0
  36. /package/template/src/themes/{sap_belize_hcb → sap_horizon_hcw}/parameters-bundle.css +0 -0
package/CHANGELOG.md CHANGED
@@ -3,6 +3,389 @@
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.16.0-rc.3](https://github.com/SAP/ui5-webcomponents/compare/v1.16.0-rc.2...v1.16.0-rc.3) (2023-07-27)
7
+
8
+ **Note:** Version bump only for package @ui5/create-webcomponents-package
9
+
10
+
11
+
12
+
13
+
14
+ # [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)
15
+
16
+ **Note:** Version bump only for package @ui5/create-webcomponents-package
17
+
18
+
19
+
20
+
21
+
22
+ # [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)
23
+
24
+ **Note:** Version bump only for package @ui5/create-webcomponents-package
25
+
26
+
27
+
28
+
29
+
30
+ # [1.16.0-rc.0](https://github.com/SAP/ui5-webcomponents/compare/v1.15.1...v1.16.0-rc.0) (2023-07-06)
31
+
32
+ **Note:** Version bump only for package @ui5/create-webcomponents-package
33
+
34
+
35
+
36
+
37
+
38
+ ## [1.15.1](https://github.com/SAP/ui5-webcomponents/compare/v1.15.0...v1.15.1) (2023-06-30)
39
+
40
+
41
+ ### Bug Fixes
42
+
43
+ * **framework:** fix links in starting page of new pkg [ci skip] ([475fed5](https://github.com/SAP/ui5-webcomponents/commit/475fed55504f4a15e8b26aaf3c9e4d73b55976ec))
44
+
45
+
46
+
47
+
48
+
49
+ # [1.15.0](https://github.com/SAP/ui5-webcomponents/compare/v1.15.0-rc.2...v1.15.0) (2023-06-30)
50
+
51
+
52
+ ### Bug Fixes
53
+
54
+ * fix image in `create-webcomponent-package` ([#7253](https://github.com/SAP/ui5-webcomponents/issues/7253)) ([3317e64](https://github.com/SAP/ui5-webcomponents/commit/3317e64b911f992abf34b88a48e6003a723f7b9e))
55
+
56
+
57
+
58
+
59
+
60
+ # [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)
61
+
62
+ **Note:** Version bump only for package @ui5/create-webcomponents-package
63
+
64
+
65
+
66
+
67
+
68
+ # [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)
69
+
70
+ **Note:** Version bump only for package @ui5/create-webcomponents-package
71
+
72
+
73
+
74
+
75
+
76
+
77
+
78
+
79
+
80
+ # [1.15.0-rc.0](https://github.com/SAP/ui5-webcomponents/compare/v1.14.0...v1.15.0-rc.0) (2023-06-08)
81
+
82
+ **Note:** Version bump only for package @ui5/create-webcomponents-package
83
+
84
+
85
+
86
+
87
+
88
+ # [1.14.0](https://github.com/SAP/ui5-webcomponents/compare/v1.14.0-rc.2...v1.14.0) (2023-06-01)
89
+
90
+ **Note:** Version bump only for package @ui5/create-webcomponents-package
91
+
92
+
93
+
94
+
95
+
96
+ # [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)
97
+
98
+ **Note:** Version bump only for package @ui5/create-webcomponents-package
99
+
100
+
101
+
102
+
103
+
104
+ # [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)
105
+
106
+ **Note:** Version bump only for package @ui5/create-webcomponents-package
107
+
108
+
109
+
110
+
111
+
112
+ # [1.14.0-rc.0](https://github.com/SAP/ui5-webcomponents/compare/v1.13.2...v1.14.0-rc.0) (2023-05-18)
113
+
114
+
115
+ ### Features
116
+
117
+ * 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))
118
+
119
+
120
+
121
+
122
+
123
+ ## [1.13.1](https://github.com/SAP/ui5-webcomponents/compare/v1.13.0-rc.5...v1.13.1) (2023-05-11)
124
+
125
+
126
+ ### Bug Fixes
127
+
128
+ * **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))
129
+
130
+
131
+
132
+
133
+
134
+ # [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)
135
+
136
+
137
+ ### Bug Fixes
138
+
139
+ * **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))
140
+
141
+
142
+
143
+
144
+
145
+ # [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)
146
+
147
+
148
+ ### Features
149
+
150
+ * generate TS from HBS templates ([#6558](https://github.com/SAP/ui5-webcomponents/issues/6558)) ([02611b2](https://github.com/SAP/ui5-webcomponents/commit/02611b2e24b2c2a06129b8e60a8bc680d9501e39))
151
+
152
+
153
+
154
+
155
+
156
+ # [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)
157
+
158
+ **Note:** Version bump only for package @ui5/create-webcomponents-package
159
+
160
+
161
+
162
+
163
+
164
+ # [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)
165
+
166
+ **Note:** Version bump only for package @ui5/create-webcomponents-package
167
+
168
+
169
+
170
+
171
+
172
+ # [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)
173
+
174
+ **Note:** Version bump only for package @ui5/create-webcomponents-package
175
+
176
+
177
+
178
+
179
+
180
+ # [1.13.0-rc.0](https://github.com/SAP/ui5-webcomponents/compare/v1.12.0...v1.13.0-rc.0) (2023-04-06)
181
+
182
+ **Note:** Version bump only for package @ui5/create-webcomponents-package
183
+
184
+
185
+
186
+
187
+
188
+ # [1.12.0](https://github.com/SAP/ui5-webcomponents/compare/v1.12.0-rc.3...v1.12.0) (2023-04-04)
189
+
190
+ **Note:** Version bump only for package @ui5/create-webcomponents-package
191
+
192
+
193
+
194
+
195
+
196
+ # [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)
197
+
198
+ **Note:** Version bump only for package @ui5/create-webcomponents-package
199
+
200
+
201
+
202
+
203
+
204
+ # [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)
205
+
206
+
207
+ ### Bug Fixes
208
+
209
+ * 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))
210
+
211
+
212
+
213
+
214
+
215
+ # [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)
216
+
217
+ **Note:** Version bump only for package @ui5/create-webcomponents-package
218
+
219
+
220
+
221
+
222
+
223
+ # [1.12.0-rc.0](https://github.com/SAP/ui5-webcomponents/compare/v1.11.0...v1.12.0-rc.0) (2023-03-09)
224
+
225
+ **Note:** Version bump only for package @ui5/create-webcomponents-package
226
+
227
+
228
+
229
+
230
+
231
+ # [1.11.0](https://github.com/SAP/ui5-webcomponents/compare/v1.11.0-rc.4...v1.11.0) (2023-03-06)
232
+
233
+ **Note:** Version bump only for package @ui5/create-webcomponents-package
234
+
235
+
236
+
237
+
238
+
239
+ # [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)
240
+
241
+ **Note:** Version bump only for package @ui5/create-webcomponents-package
242
+
243
+
244
+
245
+
246
+
247
+ # [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)
248
+
249
+ **Note:** Version bump only for package @ui5/create-webcomponents-package
250
+
251
+
252
+
253
+
254
+
255
+ # [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)
256
+
257
+ **Note:** Version bump only for package @ui5/create-webcomponents-package
258
+
259
+
260
+
261
+
262
+
263
+ # [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)
264
+
265
+
266
+ ### Features
267
+
268
+ * **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)
269
+
270
+
271
+
272
+
273
+
274
+ # [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)
275
+
276
+ **Note:** Version bump only for package @ui5/create-webcomponents-package
277
+
278
+
279
+
280
+
281
+
282
+ ## [1.10.4-rc.0](https://github.com/SAP/ui5-webcomponents/compare/v1.10.3...v1.10.4-rc.0) (2023-01-26)
283
+
284
+ **Note:** Version bump only for package @ui5/create-webcomponents-package
285
+
286
+
287
+
288
+
289
+
290
+ ## [1.10.3](https://github.com/SAP/ui5-webcomponents/compare/v1.10.2...v1.10.3) (2023-01-25)
291
+
292
+ **Note:** Version bump only for package @ui5/create-webcomponents-package
293
+
294
+
295
+
296
+
297
+
298
+ ## [1.10.1](https://github.com/SAP/ui5-webcomponents/compare/v0.0.0-7b49a7ff1...v1.10.1) (2023-01-24)
299
+
300
+ **Note:** Version bump only for package @ui5/create-webcomponents-package
301
+
302
+
303
+
304
+
305
+
306
+ # [1.10.0](https://github.com/SAP/ui5-webcomponents/compare/v1.9.3...v1.10.0) (2023-01-20)
307
+
308
+ **Note:** Version bump only for package @ui5/create-webcomponents-package
309
+
310
+
311
+
312
+
313
+
314
+ ## [1.9.3](https://github.com/SAP/ui5-webcomponents/compare/v1.9.2...v1.9.3) (2022-12-16)
315
+
316
+ **Note:** Version bump only for package @ui5/create-webcomponents-package
317
+
318
+
319
+
320
+
321
+
322
+ ## [1.9.1](https://github.com/SAP/ui5-webcomponents/compare/v1.9.0...v1.9.1) (2022-11-10)
323
+
324
+ **Note:** Version bump only for package @ui5/create-webcomponents-package
325
+
326
+
327
+
328
+
329
+
330
+ # [1.9.0](https://github.com/SAP/ui5-webcomponents/compare/v1.8.0...v1.9.0) (2022-10-31)
331
+
332
+ **Note:** Version bump only for package @ui5/create-webcomponents-package
333
+
334
+
335
+
336
+
337
+
338
+ # [1.8.0](https://github.com/SAP/ui5-webcomponents/compare/v1.7.1...v1.8.0) (2022-10-03)
339
+
340
+ **Note:** Version bump only for package @ui5/create-webcomponents-package
341
+
342
+
343
+
344
+
345
+
346
+ ## [1.7.1](https://github.com/SAP/ui5-webcomponents/compare/v1.7.0...v1.7.1) (2022-09-08)
347
+
348
+ **Note:** Version bump only for package @ui5/create-webcomponents-package
349
+
350
+
351
+
352
+
353
+
354
+ # [1.7.0](https://github.com/SAP/ui5-webcomponents/compare/v1.6.0...v1.7.0) (2022-09-02)
355
+
356
+ **Note:** Version bump only for package @ui5/create-webcomponents-package
357
+
358
+
359
+
360
+
361
+
362
+ # [1.6.0](https://github.com/SAP/ui5-webcomponents/compare/v1.5.0...v1.6.0) (2022-07-25)
363
+
364
+
365
+ ### Bug Fixes
366
+
367
+ * create package bugs ([#5517](https://github.com/SAP/ui5-webcomponents/issues/5517)) ([f528f5c](https://github.com/SAP/ui5-webcomponents/commit/f528f5c))
368
+
369
+
370
+
371
+
372
+
373
+ # [1.5.0](https://github.com/SAP/ui5-webcomponents/compare/v1.4.0...v1.5.0) (2022-07-03)
374
+
375
+ **Note:** Version bump only for package @ui5/create-webcomponents-package
376
+
377
+
378
+
379
+
380
+
381
+ # [1.4.0](https://github.com/SAP/ui5-webcomponents/compare/v1.3.1...v1.4.0) (2022-05-25)
382
+
383
+ **Note:** Version bump only for package @ui5/create-webcomponents-package
384
+
385
+
386
+
387
+
388
+
6
389
  ## [1.3.1](https://github.com/SAP/ui5-webcomponents/compare/v1.3.0...v1.3.1) (2022-04-27)
7
390
 
8
391
  **Note:** Version bump only for package @ui5/create-webcomponents-package
package/README.md CHANGED
@@ -1,38 +1,59 @@
1
- ![UI5 icon](https://raw.githubusercontent.com/SAP/ui5-webcomponents/master/docs/images/UI5_logo_wide.png)
1
+ ![UI5 icon](https://raw.githubusercontent.com/SAP/ui5-webcomponents/main/docs/images/UI5_logo_wide.png)
2
2
 
3
3
  # UI5 Web Components - Create Package
4
4
 
5
- [![Travis CI Build Status](https://travis-ci.org/SAP/ui5-webcomponents.svg?branch=master)](https://travis-ci.org/SAP/ui5-webcomponents)
6
5
  [![npm Package Version](https://badge.fury.io/js/%40ui5%2Fwebcomponents.svg)](https://www.npmjs.com/package/@ui5/webcomponents)
7
6
 
8
7
  Provides an `npm init` script for creating new "UI5 Web Components" packages.
9
8
 
10
- ## Usage
9
+ ## Usage with npm
11
10
 
12
- with `npm`
11
+ ```
12
+ Usage:
13
13
 
14
- - `npm init @ui5/webcomponents-package` (the user will be asked for **name**, **port**, **tag**);
15
- - `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]
16
18
 
17
- 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
+ ```
18
26
 
19
- - `yarn create @ui5/webcomponents-package`
20
- - `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
+ ```
21
42
 
22
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
23
44
  components package.
24
45
 
25
46
  ## Resources
26
- - [UI5 Web Components - README.md](https://github.com/SAP/ui5-webcomponents/blob/master/README.md)
47
+ - [UI5 Web Components - README.md](https://github.com/SAP/ui5-webcomponents/blob/main/README.md)
27
48
  - [UI5 Web Components - Home Page](https://sap.github.io/ui5-webcomponents)
28
49
  - [UI5 Web Components - Playground and API Reference](https://sap.github.io/ui5-webcomponents/playground/)
29
50
 
30
51
  ## Support
31
- We welcome all comments, suggestions, questions, and bug reports. Please follow our [Support Guidelines](https://github.com/SAP/ui5-webcomponents/blob/master/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/).
52
+ 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/).
32
53
 
33
54
  ## Contribute
34
- Please check our [Contribution Guidelines](https://github.com/SAP/ui5-webcomponents/blob/master/docs/6-contributing/02-conventions-and-guidelines.md).
55
+ Please check our [Contribution Guidelines](https://github.com/SAP/ui5-webcomponents/blob/main/docs/6-contributing/02-conventions-and-guidelines.md).
35
56
 
36
57
  ## License
37
58
  Copyright (c) 2019 SAP SE or an SAP affiliate company. All rights reserved.
38
- 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/master/LICENSE.txt) file.
59
+ 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.