@sap-ux/create 0.6.0 → 0.6.1
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 +1 -1
- package/dist/cli/add/html.d.ts +1 -1
- package/dist/cli/add/html.js +3 -3
- package/dist/cli/add/index.js +1 -1
- package/package.json +4 -4
package/README.md
CHANGED
|
@@ -22,7 +22,7 @@ npx sap-ux
|
|
|
22
22
|
Calling `sap-ux add` allows adding a feature to a project.
|
|
23
23
|
|
|
24
24
|
### html
|
|
25
|
-
Calling `sap-ux add html` will add html files for local preview and testing to the project. It will use the configuration from the `
|
|
25
|
+
Calling `sap-ux add html` will add html files for local preview and testing to the project. It will use the configuration from the `ui5.yaml` as default, as provided by the `fiori-tools-preview` or `preview-middleware` e.g.:
|
|
26
26
|
```sh
|
|
27
27
|
sap-ux change add html ui5-test.yaml
|
|
28
28
|
```
|
package/dist/cli/add/html.d.ts
CHANGED
|
@@ -4,5 +4,5 @@ import type { Command } from 'commander';
|
|
|
4
4
|
*
|
|
5
5
|
* @param cmd - commander command for adding navigation inbounds config command
|
|
6
6
|
*/
|
|
7
|
-
export declare function
|
|
7
|
+
export declare function addAddHtmlFilesCmd(cmd: Command): void;
|
|
8
8
|
//# sourceMappingURL=html.d.ts.map
|
package/dist/cli/add/html.js
CHANGED
|
@@ -9,7 +9,7 @@ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, ge
|
|
|
9
9
|
});
|
|
10
10
|
};
|
|
11
11
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
12
|
-
exports.
|
|
12
|
+
exports.addAddHtmlFilesCmd = void 0;
|
|
13
13
|
const tracing_1 = require("../../tracing");
|
|
14
14
|
const validation_1 = require("../../validation");
|
|
15
15
|
const preview_middleware_1 = require("@sap-ux/preview-middleware");
|
|
@@ -22,7 +22,7 @@ const mem_fs_1 = require("mem-fs");
|
|
|
22
22
|
*
|
|
23
23
|
* @param cmd - commander command for adding navigation inbounds config command
|
|
24
24
|
*/
|
|
25
|
-
function
|
|
25
|
+
function addAddHtmlFilesCmd(cmd) {
|
|
26
26
|
cmd.command('html [path]')
|
|
27
27
|
.option('-c, --config <string>', 'Path to project configuration file in YAML format', 'ui5.yaml')
|
|
28
28
|
.option('-s, --simulate', 'simulate only do not write config; sets also --verbose')
|
|
@@ -34,7 +34,7 @@ function addLocalHtmlFiles(cmd) {
|
|
|
34
34
|
yield addHtmlFiles(path || process.cwd(), !!options.simulate, options.config);
|
|
35
35
|
}));
|
|
36
36
|
}
|
|
37
|
-
exports.
|
|
37
|
+
exports.addAddHtmlFilesCmd = addAddHtmlFilesCmd;
|
|
38
38
|
/**
|
|
39
39
|
* Adds the virtual html files hosted by the preview middleware to the file system.
|
|
40
40
|
*
|
package/dist/cli/add/index.js
CHANGED
|
@@ -26,7 +26,7 @@ function getAddCommands() {
|
|
|
26
26
|
// create-fiori add cards-editor
|
|
27
27
|
(0, cards_editor_1.addCardsEditorConfigCommand)(addCommands);
|
|
28
28
|
// create-fiori add html
|
|
29
|
-
(0, html_1.
|
|
29
|
+
(0, html_1.addAddHtmlFilesCmd)(addCommands);
|
|
30
30
|
return addCommands;
|
|
31
31
|
}
|
|
32
32
|
exports.getAddCommands = getAddCommands;
|
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.6.
|
|
4
|
+
"version": "0.6.1",
|
|
5
5
|
"repository": {
|
|
6
6
|
"type": "git",
|
|
7
7
|
"url": "https://github.com/SAP/open-ux-tools.git",
|
|
@@ -37,10 +37,10 @@
|
|
|
37
37
|
"@sap-ux/inquirer-common": "0.3.1",
|
|
38
38
|
"@sap-ux/logger": "0.5.1",
|
|
39
39
|
"@sap-ux/mockserver-config-writer": "0.5.8",
|
|
40
|
-
"@sap-ux/preview-middleware": "0.
|
|
40
|
+
"@sap-ux/preview-middleware": "0.15.0",
|
|
41
|
+
"@sap-ux/system-access": "0.4.5",
|
|
41
42
|
"@sap-ux/project-access": "1.22.3",
|
|
42
|
-
"@sap-ux/ui5-config": "0.22.10"
|
|
43
|
-
"@sap-ux/system-access": "0.4.5"
|
|
43
|
+
"@sap-ux/ui5-config": "0.22.10"
|
|
44
44
|
},
|
|
45
45
|
"devDependencies": {
|
|
46
46
|
"@types/diff": "5.0.9",
|