You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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
Copy file name to clipboardExpand all lines: packages/create-package/README.md
+10-8Lines changed: 10 additions & 8 deletions
Original file line number
Diff line number
Diff line change
@@ -15,10 +15,11 @@ Usage:
15
15
npm init @ui5/webcomponents-package -- [OPTIONS]
16
16
17
17
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
22
23
```
23
24
24
25
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.
30
31
Usage:
31
32
yarn create @ui5/webcomponents-package [OPTIONS]
32
33
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
37
39
```
38
40
39
41
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