@ui5/create-webcomponents-package
Advanced tools
Comparing version 1.11.0-rc.0 to 1.11.0-rc.1
@@ -6,2 +6,13 @@ # Change Log | ||
# [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) | ||
### Features | ||
* **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) | ||
# [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) | ||
@@ -8,0 +19,0 @@ |
{ | ||
"name": "@ui5/create-webcomponents-package", | ||
"version": "1.11.0-rc.0", | ||
"version": "1.11.0-rc.1", | ||
"description": "UI5 Web Components: create package", | ||
@@ -14,3 +14,3 @@ "author": "SAP SE (https://www.sap.com)", | ||
"bin": { | ||
"create-webcomponents-package": "index.js" | ||
"create-webcomponents-package": "create-package.js" | ||
}, | ||
@@ -25,5 +25,6 @@ "repository": { | ||
"npm-config-user-agent-parser": "^1.0.0", | ||
"prompts": "^2.4.1" | ||
"prompts": "^2.4.1", | ||
"yargs": "^17.5.1" | ||
}, | ||
"gitHead": "6464abd79265425ce65232ebeee53cf6585e6ec6" | ||
"gitHead": "a76323e09b0190bbb72cbff141bb8093b8d0f4ff" | ||
} |
@@ -9,14 +9,34 @@ ![UI5 icon](https://raw.githubusercontent.com/SAP/ui5-webcomponents/main/docs/images/UI5_logo_wide.png) | ||
## Usage | ||
## Usage with npm | ||
with `npm` | ||
``` | ||
Usage: | ||
- `npm init @ui5/webcomponents-package` (the user will be asked for **name**, **port**, **tag**); | ||
- `npm init @ui5/webcomponents-package <NEW-PACKAGE-NAME>` (the user will be asked for **port** and **tag** only). | ||
# npm 6.x | ||
npm init @ui5/webcomponents-package [OPTIONS] | ||
# npm 7+, an extra double-dash is needed: | ||
npm init @ui5/webcomponents-package -- [OPTIONS] | ||
And with `yarn` | ||
Options: | ||
--name <string> - defines the package name | ||
--tag <string> - defines the tag name of the sample web component that will be created in your new package | ||
--enable-typescript - enables TypeScript support for the package | ||
--skip - skips configuration and generates package with a default value for each parameter that wasn't passed | ||
``` | ||
- `yarn create @ui5/webcomponents-package` | ||
- `yarn create @ui5/webcomponents-package <NEW-PACKAGE-NAME>`. | ||
The script creates a new directory, and fills it with a `package.json` file and all necessary source files, and resources for a new | ||
components package. | ||
## Usage with yarn | ||
``` | ||
Usage: | ||
yarn create @ui5/webcomponents-package [OPTIONS] | ||
Options: | ||
--name <string> - defines the package name | ||
--tag <string> - defines the tag name of the sample web component that will be created in your new package | ||
--enable-typescript - enables TypeScript support for the package | ||
--skip - skips configuration and generates package with a default value for each parameter that wasn't passed | ||
``` | ||
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,0 +43,0 @@ components package. |
const getScripts = require("@ui5/webcomponents-tools/components-package/nps.js"); //eslint-disable-line | ||
const options = { | ||
port: INIT_PACKAGE_VAR_PORT, | ||
port: 8080, | ||
typescript: INIT_PACKAGE_VAR_TYPESCRIPT, | ||
@@ -6,0 +6,0 @@ }; |
33678
388
58
4
+ Addedyargs@^17.5.1
+ Addedansi-regex@5.0.1(transitive)
+ Addedansi-styles@4.3.0(transitive)
+ Addedcliui@8.0.1(transitive)
+ Addedcolor-convert@2.0.1(transitive)
+ Addedcolor-name@1.1.4(transitive)
+ Addedemoji-regex@8.0.0(transitive)
+ Addedescalade@3.2.0(transitive)
+ Addedget-caller-file@2.0.5(transitive)
+ Addedis-fullwidth-code-point@3.0.0(transitive)
+ Addedrequire-directory@2.1.1(transitive)
+ Addedstring-width@4.2.3(transitive)
+ Addedstrip-ansi@6.0.1(transitive)
+ Addedwrap-ansi@7.0.0(transitive)
+ Addedy18n@5.0.8(transitive)
+ Addedyargs@17.7.2(transitive)
+ Addedyargs-parser@21.1.1(transitive)