Skip to content

Commit 2c91d4b

Browse files
authored
chore: add option to create package with cypress configuration (SAP#11299)
Added a new `test-setup` flag to the create package script. This flag supports two options `--test-setup <"cypress" | "manual">` - When set to `cypress`, the generated package will include a predefined Cypress configuration to enable component testing. - When set to `manual`, no test configuration will be included, allowing it to be configured separately. Related to: SAP#10055
1 parent 4d972c8 commit 2c91d4b

22 files changed

+399
-188
lines changed

packages/create-package/README.md

Lines changed: 10 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -15,10 +15,11 @@ Usage:
1515
npm init @ui5/webcomponents-package -- [OPTIONS]
1616
1717
Options:
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. The tag will be derived from the component name if not provided.
21-
--skip - skips configuration and generates package with a default value for each parameter that wasn't passed
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+
--test-setup <"cypress" | "manual"> - defines whether the predefined test setup should be added or it will be configured manually.
22+
--skip - skips configuration and generates package with a default value for each parameter that wasn't passed
2223
```
2324

2425
The script creates a new directory, and fills it with a `package.json` file and all necessary source files, and resources for a new
@@ -30,10 +31,11 @@ components package.
3031
Usage:
3132
yarn create @ui5/webcomponents-package [OPTIONS]
3233
Options:
33-
--name <string> - defines the package name
34-
--component-name <string> - defines the component class name that will be created in your new package
35-
--tag <string> - defines the tag name of the sample web component that will be created in your new package
36-
--skip - skips configuration and generates package with a default value for each parameter that wasn't passed
34+
--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+
--test-setup <"cypress" | "manual"> - defines whether the predefined test setup should be added or it will be configured manually.
38+
--skip - skips configuration and generates package with a default value for each parameter that wasn't passed
3739
```
3840

3941
The script creates a new directory, and fills it with a `package.json` file and all necessary source files, and resources for a new

0 commit comments

Comments
 (0)