@sap-ux/create 0.11.75 → 0.11.77
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/README.md +2 -1
- package/dist/cli/convert/preview.js +7 -3
- package/package.json +12 -12
package/README.md
CHANGED
|
@@ -157,7 +157,8 @@ Executing `sap-ux convert preview-config` in the root folder of an app will conv
|
|
|
157
157
|
```sh
|
|
158
158
|
sap-ux convert preview-config [path]
|
|
159
159
|
```
|
|
160
|
-
- `-
|
|
160
|
+
- `-s true | --simulate true | -s false | --simulate false` enable or disable simulate option without prompt
|
|
161
|
+
- `-t true | --tests true | -t false | --tests false` enable or disable option to include test suite and test runners in the conversion to virtual files without prompt
|
|
161
162
|
|
|
162
163
|
## [sap-ux remove](#sap-ux-remove)
|
|
163
164
|
Calling `sap-ux remove` allows removing a feature from a project.
|
|
@@ -10,11 +10,15 @@ const app_config_writer_1 = require("@sap-ux/app-config-writer");
|
|
|
10
10
|
*/
|
|
11
11
|
function addConvertPreviewCommand(cmd) {
|
|
12
12
|
cmd.command('preview-config [path]')
|
|
13
|
-
.option('-s, --simulate', 'simulate only do not write')
|
|
13
|
+
.option('-s, --simulate <boolean>', 'simulate only do not write')
|
|
14
14
|
.option('-v, --verbose', 'show verbose information')
|
|
15
|
-
.option('-t, --tests', 'also convert test suite and test runners')
|
|
15
|
+
.option('-t, --tests <boolean>', 'also convert test suite and test runners')
|
|
16
16
|
.action(async (path, options) => {
|
|
17
|
-
|
|
17
|
+
const simulateString = /(?:=)?(true|false)/i.exec(options.simulate)?.[1];
|
|
18
|
+
const testsString = /(?:=)?(true|false)/i.exec(options.tests)?.[1];
|
|
19
|
+
const simulate = simulateString ? simulateString.toLowerCase() === 'true' : undefined;
|
|
20
|
+
const tests = testsString ? testsString.toLowerCase() === 'true' : undefined;
|
|
21
|
+
await convertPreview(path, simulate, tests, options.verbose);
|
|
18
22
|
});
|
|
19
23
|
}
|
|
20
24
|
/**
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@sap-ux/create",
|
|
3
3
|
"description": "SAP Fiori tools module to add or remove features",
|
|
4
|
-
"version": "0.11.
|
|
4
|
+
"version": "0.11.77",
|
|
5
5
|
"repository": {
|
|
6
6
|
"type": "git",
|
|
7
7
|
"url": "https://github.com/SAP/open-ux-tools.git",
|
|
@@ -30,20 +30,20 @@
|
|
|
30
30
|
"mem-fs": "2.1.0",
|
|
31
31
|
"mem-fs-editor": "9.4.0",
|
|
32
32
|
"prompts": "2.4.2",
|
|
33
|
-
"@sap-ux/abap-deploy-config-inquirer": "1.2.
|
|
34
|
-
"@sap-ux/abap-deploy-config-writer": "0.0.
|
|
35
|
-
"@sap-ux/adp-tooling": "0.12.
|
|
36
|
-
"@sap-ux/app-config-writer": "0.5.
|
|
37
|
-
"@sap-ux/cap-config-writer": "0.9.
|
|
38
|
-
"@sap-ux/mockserver-config-writer": "0.7.3",
|
|
33
|
+
"@sap-ux/abap-deploy-config-inquirer": "1.2.14",
|
|
34
|
+
"@sap-ux/abap-deploy-config-writer": "0.0.87",
|
|
35
|
+
"@sap-ux/adp-tooling": "0.12.128",
|
|
36
|
+
"@sap-ux/app-config-writer": "0.5.30",
|
|
37
|
+
"@sap-ux/cap-config-writer": "0.9.8",
|
|
39
38
|
"@sap-ux/cards-editor-config-writer": "0.4.10",
|
|
40
|
-
"@sap-ux/odata-service-writer": "0.25.9",
|
|
41
39
|
"@sap-ux/logger": "0.6.0",
|
|
42
|
-
"@sap-ux/
|
|
43
|
-
"@sap-ux/
|
|
40
|
+
"@sap-ux/mockserver-config-writer": "0.7.3",
|
|
41
|
+
"@sap-ux/odata-service-writer": "0.25.10",
|
|
42
|
+
"@sap-ux/preview-middleware": "0.17.30",
|
|
43
|
+
"@sap-ux/project-access": "1.29.7",
|
|
44
44
|
"@sap-ux/system-access": "0.5.30",
|
|
45
45
|
"@sap-ux/ui5-config": "0.26.2",
|
|
46
|
-
"@sap-ux/flp-config-inquirer": "0.2.
|
|
46
|
+
"@sap-ux/flp-config-inquirer": "0.2.34"
|
|
47
47
|
},
|
|
48
48
|
"devDependencies": {
|
|
49
49
|
"@types/diff": "5.0.9",
|
|
@@ -51,7 +51,7 @@
|
|
|
51
51
|
"@types/mem-fs": "1.1.2",
|
|
52
52
|
"@types/mem-fs-editor": "7.0.1",
|
|
53
53
|
"@types/prompts": "2.4.4",
|
|
54
|
-
"@sap-ux/inquirer-common": "0.6.
|
|
54
|
+
"@sap-ux/inquirer-common": "0.6.16",
|
|
55
55
|
"@sap-ux/store": "1.0.0"
|
|
56
56
|
},
|
|
57
57
|
"scripts": {
|