@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 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 `preview-middleware` from the `ui5.yaml` as default but also allows pointing to a different yaml e.g.:
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
  ```
@@ -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 addLocalHtmlFiles(cmd: Command): void;
7
+ export declare function addAddHtmlFilesCmd(cmd: Command): void;
8
8
  //# sourceMappingURL=html.d.ts.map
@@ -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.addLocalHtmlFiles = void 0;
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 addLocalHtmlFiles(cmd) {
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.addLocalHtmlFiles = addLocalHtmlFiles;
37
+ exports.addAddHtmlFilesCmd = addAddHtmlFilesCmd;
38
38
  /**
39
39
  * Adds the virtual html files hosted by the preview middleware to the file system.
40
40
  *
@@ -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.addLocalHtmlFiles)(addCommands);
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.0",
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.14.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",