@sap-ux/create 0.11.13 → 0.11.15
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 +5 -3
- package/package.json +4 -4
package/README.md
CHANGED
|
@@ -155,8 +155,9 @@ Executing `sap-ux convert` converts an app to a new feature.
|
|
|
155
155
|
### preview
|
|
156
156
|
Executing `sap-ux convert preview-config` in the root folder of an app will convert the respective app to the preview with virtual files. It will use the configuration from the scripts in the `package.json` file to adjust the UI5 configuration YAML files accordingly. The obsolete JS and TS sources will be deleted and the HTML files previously used for the preview will be renamed to `*_old.html`.
|
|
157
157
|
```sh
|
|
158
|
-
sap-ux convert preview [path]
|
|
158
|
+
sap-ux convert preview-config [path]
|
|
159
159
|
```
|
|
160
|
+
- `-t | --tests` include test suite and test runners in the conversion to virtual files
|
|
160
161
|
|
|
161
162
|
## sap-ux remove
|
|
162
163
|
Calling `sap-ux remove` allows removing a feature from a project.
|
|
@@ -12,11 +12,12 @@ function addConvertPreviewCommand(cmd) {
|
|
|
12
12
|
cmd.command('preview-config [path]')
|
|
13
13
|
.option('-s, --simulate', 'simulate only do not write or install')
|
|
14
14
|
.option('-v, --verbose', 'show verbose information')
|
|
15
|
+
.option('-t, --tests', 'also convert test suite and test runners')
|
|
15
16
|
.action(async (path, options) => {
|
|
16
17
|
if (options.verbose === true || options.simulate) {
|
|
17
18
|
(0, tracing_1.setLogLevelVerbose)();
|
|
18
19
|
}
|
|
19
|
-
await convertPreview(path, !!options.simulate);
|
|
20
|
+
await convertPreview(path, !!options.simulate, !!options.tests);
|
|
20
21
|
});
|
|
21
22
|
}
|
|
22
23
|
/**
|
|
@@ -24,15 +25,16 @@ function addConvertPreviewCommand(cmd) {
|
|
|
24
25
|
*
|
|
25
26
|
* @param {string} basePath - The path to the adaptation project.
|
|
26
27
|
* @param {boolean} simulate - If set to true, then no files will be written to the filesystem.
|
|
28
|
+
* @param {boolean} convertTests - If set to true, then test suite and test runners fill be included in the conversion.
|
|
27
29
|
*/
|
|
28
|
-
async function convertPreview(basePath, simulate) {
|
|
30
|
+
async function convertPreview(basePath, simulate, convertTests) {
|
|
29
31
|
const logger = (0, tracing_1.getLogger)();
|
|
30
32
|
if (!basePath) {
|
|
31
33
|
basePath = process.cwd();
|
|
32
34
|
}
|
|
33
35
|
logger.debug(`Called convert preview for path '${basePath}'. The simulate path is '${simulate}'.`);
|
|
34
36
|
try {
|
|
35
|
-
const fs = await (0, app_config_writer_1.convertToVirtualPreview)(basePath, logger);
|
|
37
|
+
const fs = await (0, app_config_writer_1.convertToVirtualPreview)(basePath, { convertTests, logger });
|
|
36
38
|
if (!simulate) {
|
|
37
39
|
fs.commit(() => logger.info(`The changes for preview conversion have been written.`));
|
|
38
40
|
}
|
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.15",
|
|
5
5
|
"repository": {
|
|
6
6
|
"type": "git",
|
|
7
7
|
"url": "https://github.com/SAP/open-ux-tools.git",
|
|
@@ -33,13 +33,13 @@
|
|
|
33
33
|
"@sap-ux/abap-deploy-config-inquirer": "1.1.16",
|
|
34
34
|
"@sap-ux/abap-deploy-config-writer": "0.0.71",
|
|
35
35
|
"@sap-ux/adp-tooling": "0.12.101",
|
|
36
|
-
"@sap-ux/app-config-writer": "0.5.
|
|
36
|
+
"@sap-ux/app-config-writer": "0.5.10",
|
|
37
37
|
"@sap-ux/cap-config-writer": "0.7.68",
|
|
38
38
|
"@sap-ux/cards-editor-config-writer": "0.4.8",
|
|
39
39
|
"@sap-ux/logger": "0.6.0",
|
|
40
40
|
"@sap-ux/mockserver-config-writer": "0.7.0",
|
|
41
|
-
"@sap-ux/odata-service-writer": "0.25.
|
|
42
|
-
"@sap-ux/preview-middleware": "0.16.
|
|
41
|
+
"@sap-ux/odata-service-writer": "0.25.1",
|
|
42
|
+
"@sap-ux/preview-middleware": "0.16.158",
|
|
43
43
|
"@sap-ux/project-access": "1.28.10",
|
|
44
44
|
"@sap-ux/system-access": "0.5.24",
|
|
45
45
|
"@sap-ux/ui5-config": "0.26.0",
|