@sap-ux/create 0.13.160 → 0.13.162

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
@@ -1,194 +1,325 @@
1
- [![Changelog](https://img.shields.io/badge/changelog-8A2BE2)](https://github.com/SAP/open-ux-tools/blob/main/packages/create/CHANGELOG.md) [![Github repo](https://img.shields.io/badge/github-repo-blue)](https://github.com/SAP/open-ux-tools/tree/main/packages/create)
1
+ [![Changelog](https://img.shields.io/badge/changelog-8A2BE2)](https://github.com/SAP/open-ux-tools/blob/main/packages/create/CHANGELOG.md) [![Github repo](https://img.shields.io/badge/github-repo-blue)](https://github.com/SAP/open-ux-tools/tree/main/packages/create)
2
+ # [`@sap-ux/create`](https://github.com/SAP/open-ux-tools/tree/main/packages/create) CLI Reference
2
3
 
3
- # [`@sap-ux/create`](https://github.com/SAP/open-ux-tools/tree/main/packages/create)
4
- Module which provides command line interface to configure features for SAP UX projects or applications.
4
+ Configure features for SAP Fiori applications and projects (@sap-ux/create version 0.13.161).
5
5
 
6
- ## [Installation](#installation)
6
+ # [Usage](#usage)
7
7
 
8
- ```sh
9
- npm init @sap-ux@latest
10
- # or
11
- npx @sap-ux/create@latest
12
- ```
13
- To avoid downloading and installing the module every time it is used, you might consider installing it globally or add it as `devDependency` to a project. Once installed, you can run it using
8
+ It is recommended to use the cli using `npx` to always get the latest version without the need to install or update it manually. You can run it using:
14
9
 
15
10
  ```sh
16
- # globally installed
17
- sap-ux
18
- # locally
19
- npx sap-ux
11
+ npx -y @sap-ux/create@latest [command] [sub-command] /path/to/project
20
12
  ```
21
- ## [Basic usage](#basic-usage)
13
+
14
+ If you prefer to download the module, you can install it globally or add it as `devDependency` to a project. Once installed, you can run it using
22
15
 
23
16
  ```sh
24
- npx sap-ux [command] [sub-command] /path/to/project
17
+ # install globally
18
+ npm i -g @sap-ux/create@latest
19
+ # or install as devDependency
20
+ npm i -D @sap-ux/create@latest
21
+ # then run
22
+ sap-ux [command] [sub-command] /path/to/project
25
23
  ```
26
- `Note:` If the project path is not provided, the current working directory will be used.
24
+
25
+ `Note:` If the project path is not provided, the current working directory is used.
26
+
27
+ ---
28
+
29
+ # [Commands](#commands)
30
+
31
+ ## [`generate`](#generate)
32
+
33
+ Command group for generating SAP Fiori applications. A subcommand is required.
34
+
35
+ Usage: `npx --yes @sap-ux/create@latest generate [subcommand] [options]`
36
+
37
+ The available subcommands are: `adaptation-project`
38
+
39
+
40
+ --------------------------------
41
+
42
+ ## [`generate adaptation-project`](#generate-adaptation-project)
43
+
44
+ Generate a new SAPUI5 adaptation project with optional prompts and configuration.
45
+
46
+ Example:
47
+
48
+ `npx --yes @sap-ux/create@latest generate adaptation-project`
27
49
 
28
50
  Options:
29
- - `-v | --version` output the module version number
30
- - `-h | --help` display help and options for module
51
+ - `-n, --skip-install` - Skip the `npm install` step.
52
+ - `-s, --simulate` - Simulate only. Do not write or install.
53
+ - `-y, --yes` - Use default values for all prompts.
54
+ - `--id [id]` - The ID of the adaptation project.
55
+ - `--reference [reference]` - The ID of the original application.
56
+ - `--url [url]` - The URL that points to the target system which contains the original application.
57
+ - `--ignoreCertErrors` - Ignore certificate errors when connecting to the target system.
58
+ - `--ft` - Enable SAP Fiori tools for the generated project.
59
+ - `--ts` - Enable TypeScript support for the generated project.
60
+ - `--package [package]` - The ABAP package to be used for deployments.
61
+ - `--transport [transport]` - The ABAP transport to be used for deployments.
31
62
 
32
- ### [Command Options](#command-options)
63
+ --------------------------------
33
64
 
34
- To use an option for a specific command run:
35
- ```sh
36
- npx sap-ux [command] [sub-command] [options]
37
- ```
38
- To see options for a specific command run: `npx sap-ux [command] [sub-command] -h`
65
+ ## [`add`](#add)
39
66
 
40
- Common Options:
41
- - `-h | --help` display help and options for command
42
- - `-v | --verbose` show verbose information
43
- - `-s | --simulate` simulate only do not write config; sets also --verbose
67
+ Command group for adding features to existing SAP Fiori applications. A subcommand is required.
44
68
 
45
- ## [Command Overview](#command-overview)
46
- The `@sap-ux/create` modules provides commands for the following cases:
47
- - `sap-ux add` - allows adding a feature
48
- - `sap-ux change` allows changing a feature
49
- - `sap-ux convert` allows converting an app to a new feature
50
- - `sap-ux remove` allows removing a feature
51
- - `sap-ux generate` allows generating a new project
69
+ Usage: `npx --yes @sap-ux/create@latest add [subcommand] [options]`
52
70
 
71
+ The available subcommands are: `mockserver-config`, `smartlinks-config`, `cds-plugin-ui5`, `inbound-navigation`, `cards-editor`, `model`, `annotations`, `html`, `component-usages`, `deploy-config` and `variants-config`
53
72
 
54
- ## [sap-ux add](#sap-ux-add)
55
- Calling `sap-ux add` allows adding a feature to a project.
56
73
 
74
+ --------------------------------
57
75
 
58
- ### [annotations](#add-annotations)<a id="add-annotations"></a>
59
- Calling `sap-ux add annotations` allows adding an annotation to the OData Source of the base application in an adaptation project.
60
- ```sh
61
- sap-ux add annotations [path]
62
- ```
63
- - `-c | --config` path to project configuration file in YAML format, e.g.: `-c ui5Custom.yaml`
76
+ ## [`add mockserver-config`](#add-mockserver-config)
64
77
 
78
+ Add the necessary configuration for the `@sap-ux/ui5-middleware-fe-mockserver` mockserver module to enable local OData mocking.
65
79
 
66
- ### [cards-editor](#add-cards-editor)<a id="add-cards-editor"></a>
67
- Calling `sap-ux add cards-editor` will add the necessary configuration to an existing yaml file and the script to package.json for cards generation.
68
- It will use the configuration from the yaml file passed by cli or default to ui5.yaml, as provided by the fiori-tools-preview or preview-middleware.
69
- ```sh
70
- sap-ux add cards-editor [path]
71
- ```
72
- - `-c | --config` path to project configuration file in YAML format, e.g.: -c ui5Custom.yaml
73
- `Note:` Adding the card generator configuration is not supported for CAP projects.
74
- -
75
- ### [component-usages](#add-component-usages)<a id="add-component-usages"></a>
76
- Calling `sap-ux add component-usages` adds the component usages to an adaptation project.
77
- ```sh
78
- sap-ux add component-usages [path]
79
- ```
80
+ Example:
80
81
 
82
+ `npx --yes @sap-ux/create@latest add mockserver-config`
81
83
 
82
- ### [cds-plugin-ui5](#add-cds-plugin-ui5)<a id="add-cds-plugin-ui5"></a>
83
- Calling `sap-ux add cds-plugin-ui5` adds the cds-plugin-ui5 and all prerequisites to a CAP project.
84
- ```sh
85
- sap-ux add cds-plugin-ui5 [path]
86
- ```
87
- - `-n | --skip-install` skip npm install step
84
+ Options:
85
+ - `-i, --interactive` - Ask for config options or otherwise, use the default options.
86
+ - `-n, --skip-install` - Skip the `npm install` step.
87
+ - `-s, --simulate` - Simulate only. Do not write or install. Also, sets `--verbose`
88
+ - `-v, --verbose` - Show verbose information.
88
89
 
90
+ --------------------------------
89
91
 
90
- ### [deploy-config](#add-deploy-config)<a id="add-deploy-config"></a>
91
- Calling `sap-ux add deploy-config` will prompt for ABAP deployment configuration details and add/update the project files accordingly.
92
- ```sh
93
- sap-ux add deploy-config [path]
94
- ```
95
- - `-t | --target` target for deployment; ABAP or Cloud Foundry (not yet implemented)
96
- - `-b | --base-file` the base file config file of the project; default: ui5.yaml
97
- - `-d | --deploy-file` the name of the deploy config file to be written; default: ui5-deploy.yaml
92
+ ## [`add smartlinks-config`](#add-smartlinks-config)
98
93
 
94
+ Add a `smartLinks` configuration to a project for cross-app navigation.
99
95
 
100
- ### [html](#add-html)<a id="add-html"></a>
101
- 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`.
102
- ```sh
103
- sap-ux add html [path]
104
- ```
105
- - `-c | --config` path to project configuration file in YAML format, e.g.: `-c ui5Custom.yaml`
96
+ Example:
106
97
 
107
- ### [model](#add-model)<a id="add-model"></a>
108
- Calling `sap-ux add model` allows to add new OData Service and SAPUI5 Model to an existing adaptation project.
109
- ```sh
110
- sap-ux add model [path]
111
- ```
98
+ `npx --yes @sap-ux/create@latest add smartlinks-config`
112
99
 
113
- ### [mockserver-config](#add-mockserver-config)<a id="add-mockserver-config"></a>
114
- Calling `sap-ux add mockserver-config` adds the necessary configuration for mockserver module @sap-ux/ui5-middleware-fe-mockserver.
115
- ```sh
116
- sap-ux add mockserver-config [path]
117
- ```
118
- - `-i | --interactive` ask for config options, otherwise use defaults'
119
- - `-n | --skip-install` skip npm install step
100
+ Options:
101
+ - `-s, --simulate` - Simulate only. Do not write to the config file. Also, sets `--verbose`
102
+ - `-v, --verbose` - Show verbose information.
120
103
 
121
- ### [smartlinks-config](#add-smartlinks-config)<a id="add-smartlinks-config"></a>
122
- Calling `sap-ux add smartlinks-config` adds a smartLinks configuration to a project
123
- ```sh
124
- sap-ux add smartlinks-config [path]
125
- ```
104
+ --------------------------------
126
105
 
127
- ### [add inbound-navigation](#add-inbound-navigation)<a id="add-inbound-navigation"></a>
128
- Calling `sap-ux add inbound-navigation` adds a Fiori Launchpad configuration to a project.
129
- ```sh
130
- sap-ux add inbound-navigation [path]
131
- ```
106
+ ## [`add cds-plugin-ui5`](#add-cds-plugin-ui5)
132
107
 
133
- ### [variants-config](#add-variants-config)<a id="add-variants-config"></a>
134
- Calling `sap-ux add variants-config` will add the necessary configuration to an existing yaml file and the script to package.json for variants creation. It will use the configuration from the yaml file passed by cli or default to `ui5.yaml`, as provided by the `fiori-tools-preview` or `preview-middleware`.
135
- ```sh
136
- sap-ux add variants-config [path]
137
- ```
138
- - `-c | --config` path to project configuration file in YAML format, e.g.: `-c ui5Custom.yaml`
108
+ Add the `cds-plugin-ui5` module and all prerequisites to a CAP project for UI5 server integration.
139
109
 
140
- ## [sap-ux change](#sap-ux-change)
141
- Calling `sap-ux change` allows changing a feature of a project.
110
+ Example:
142
111
 
143
- ### [data-source](#change-data-source)<a id="change-data-source"></a>
144
- Calling `sap-ux change data-source` allows replacing the OData Source of the base application in an adaptation project.
145
- ```sh
146
- sap-ux change data-source [path]
147
- ```
148
- - `-c | --config` path to project configuration file in YAML format, e.g.: `-c ui5Custom.yaml`
112
+ `npx --yes @sap-ux/create@latest add cds-plugin-ui5`
149
113
 
150
- ### [inbound](#change-inbound)<a id="change-inbound"></a>
151
- Calling `sap-ux change inbound` allows replacing the Inbound FLP configurations of the base application in an adaptation project.
152
- ```sh
153
- sap-ux change inbound [path]
154
- ```
114
+ Options:
115
+ - `-n, --skip-install` - Skip the `npm install` step.
116
+ - `-s, --simulate` - Simulate only. Do not write or install. Also, sets `--verbose`
117
+ - `-v, --verbose` - Show verbose information.
155
118
 
156
- ## [sap-ux convert](#sap-ux-convert)
157
- Executing `sap-ux convert` converts an app to a new feature.
119
+ --------------------------------
158
120
 
159
- ### [preview-config](#convert-preview-config)<a id="convert-preview-config"></a>
160
- Executing `sap-ux convert preview-config` in the root folder of an app will convert the respective app to the preview with virtual endpoints. 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`.
161
- ```sh
162
- sap-ux convert preview-config [path]
163
- ```
164
- - `-s true | --simulate true | -s false | --simulate false` enable or disable simulate option without prompt
165
- - `-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
121
+ ## [`add inbound-navigation`](#add-inbound-navigation)
166
122
 
167
- ## [sap-ux remove](#sap-ux-remove)
168
- Calling `sap-ux remove` allows removing a feature from a project.
123
+ Add SAP Fiori launchpad inbound navigation configuration to a project.
169
124
 
170
- ### [mockserver-config](#remove-mockserver-config)<a id="remove-mockserver-config"></a>
171
- Calling `sap-ux remove mockserver-config` removes the configuration for mockserver module @sap-ux/ui5-middleware-fe-mockserver.
172
- ```sh
173
- sap-ux remove mockserver-config [path]
174
- ```
175
- - `-f | --force` do not ask for confirmation when deleting files
125
+ Example:
176
126
 
127
+ `npx --yes @sap-ux/create@latest add inbound-navigation`
177
128
 
178
- ## [sap-ux generate](#sap-ux-generate)
179
- Calling `sap-ux generate` allows generating a new project.
129
+ Options:
130
+ - `-s, --simulate` - Simulate only. Do not write to the config file. Also, sets `--verbose`
131
+ - `-v, --verbose` - Show verbose information.
132
+ - `-c, --config <string>` _(required)_ - Path to the project configuration file in YAML format. _(default: `ui5.yaml`)_
133
+
134
+ --------------------------------
135
+
136
+ ## [`add cards-editor`](#add-cards-editor)
137
+
138
+ Add the necessary configuration to an existing YAML file and the script to the `package.json` file for cards generation. It uses the configuration from the YAML file passed by the CLI or default to `ui5.yaml`, as provided by the `fiori-tools-preview` or `preview-middleware`.
139
+
140
+ Example:
141
+
142
+ `npx --yes @sap-ux/create@latest add cards-editor`
143
+
144
+ Options:
145
+ - `-c, --config <string>` _(required)_ - Path to the project configuration file in YAML format. _(default: `ui5.yaml`)_
146
+ - `-s, --simulate` - Simulate only. Do not write to the config file. Also, sets `--verbose`
147
+ - `-v, --verbose` - Show verbose information.
148
+
149
+ --------------------------------
150
+
151
+ ## [`add model`](#add-model)
152
+
153
+ Add a new OData service and SAPUI5 model to an existing adaptation project.
154
+
155
+ Example:
156
+
157
+ `npx --yes @sap-ux/create@latest add model`
158
+
159
+ Options:
160
+ - `-s, --simulate` - Simulate only. Do not write or install.
161
+
162
+ --------------------------------
163
+
164
+ ## [`add annotations`](#add-annotations)
165
+
166
+ Adds an annotation to the OData Source of the base application in an adaptation project.
167
+
168
+ Example:
169
+
170
+ `npx --yes @sap-ux/create@latest add annotations`
171
+
172
+ Options:
173
+ - `-s, --simulate` - Simulate only. Do not write or install.
174
+ - `-c, --config <string>` _(required)_ - Path to the project configuration file in YAML format. _(default: `ui5.yaml`)_
175
+
176
+ --------------------------------
177
+
178
+ ## [`add html`](#add-html)
179
+
180
+ Add HTML files for local preview and testing to the project. It uses the configuration from the `ui5.yaml` file as default, as provided by the `fiori-tools-preview` or `preview-middleware`.
181
+
182
+ Example:
183
+
184
+ `npx --yes @sap-ux/create@latest add html`
185
+
186
+ Options:
187
+ - `-c, --config <string>` _(required)_ - Path to the project configuration file in YAML format. _(default: `ui5.yaml`)_
188
+ - `-s, --simulate` - Simulate only. Do not write to the config file. Also, sets `--verbose`
189
+ - `-v, --verbose` - Show verbose information.
190
+
191
+ --------------------------------
192
+
193
+ ## [`add component-usages`](#add-component-usages)
194
+
195
+ Add the component usages to an adaptation project.
196
+
197
+ Example:
198
+
199
+ `npx --yes @sap-ux/create@latest add component-usages`
200
+
201
+ Options:
202
+ - `-s, --simulate` - Simulate only. Do not write or install.
203
+
204
+ --------------------------------
205
+
206
+ ## [`add deploy-config`](#add-deploy-config)
207
+
208
+ Prompt for ABAP deployment configuration details and adds and updates the project files accordingly.
209
+
210
+ Example:
211
+
212
+ `npx --yes @sap-ux/create@latest add deploy-config`
213
+
214
+ Options:
215
+ - `-t, --target <string>` _(required)_ - Target for deployment: ABAP or Cloud Foundry (not yet implemented)
216
+ - `-s, --simulate` - Simulate only. Do not write. Also, sets `--verbose`
217
+ - `-v, --verbose` - Show verbose information.
218
+ - `-b, --base-file <string>` _(required)_ - The base config file of the project. _(default: "ui5.yaml")_
219
+ - `-d, --deploy-file <string>` _(required)_ - The name of the deploy config file to be written. _(default: "ui5-deploy.yaml")_
220
+
221
+ --------------------------------
222
+
223
+ ## [`add variants-config`](#add-variants-config)
224
+
225
+ Add the necessary configuration to an existing YAML file and the script to the `package.json` file for variants creation. It uses the configuration from the YAML file passed by the CLI or default to `ui5.yaml`, as provided by the `fiori-tools-preview` or `preview-middleware`.
226
+
227
+ Example:
228
+
229
+ `npx --yes @sap-ux/create@latest add variants-config`
230
+
231
+ Options:
232
+ - `-c, --config <string>` _(required)_ - Path to the project configuration file in YAML format. _(default: `ui5.yaml`)_
233
+ - `-s, --simulate` - Simulate only. Do not write to the config file. Also, sets `--verbose`
234
+ - `-v, --verbose` - Show verbose information.
235
+
236
+ --------------------------------
237
+
238
+ ## [`convert`](#convert)
239
+
240
+ Command group for converting existing SAP Fiori applications. A subcommand is required.
241
+
242
+ Usage: `npx --yes @sap-ux/create@latest convert [subcommand] [options]`
243
+
244
+ The available subcommands are: `preview-config`
245
+
246
+
247
+ --------------------------------
248
+
249
+ ## [`convert preview-config`](#convert-preview-config)
250
+
251
+ Executed in the root folder of an app, it converts the respective app to the preview with virtual endpoints. It uses the configuration from the scripts in the `package.json` file to adjust the UI5 configuration YAML files accordingly. The obsolete JS and TS sources are deleted and the HTML files previously used for the preview are renamed to `*_old.html`.
252
+
253
+ Examples:
254
+
255
+ `npx --yes @sap-ux/create@latest convert preview-config --simulate=false --tests=false`
256
+
257
+ `npx --yes @sap-ux/create@latest convert preview-config`
258
+
259
+ Options:
260
+ - `-s, --simulate <boolean>` _(required)_ - Simulate only. Do not write.
261
+ - `-v, --verbose` - Show verbose information.
262
+ - `-t, --tests <boolean>` _(required)_ - Also, convert test suite and test runners.
263
+
264
+ --------------------------------
265
+
266
+ ## [`remove`](#remove)
267
+
268
+ Command group for removing features from existing SAP Fiori applications. A subcommand is required.
269
+
270
+ Usage: `npx --yes @sap-ux/create@latest remove [subcommand] [options]`
271
+
272
+ The available subcommands are: `mockserver-config`
273
+
274
+
275
+ --------------------------------
276
+
277
+ ## [`remove mockserver-config`](#remove-mockserver-config)
278
+
279
+ Removes the configuration for the `@sap-ux/ui5-middleware-fe-mockserver` mockserver module.
280
+
281
+ Example:
282
+
283
+ `npx --yes @sap-ux/create@latest remove mockserver-config`
284
+
285
+ Options:
286
+ - `-v, --verbose` - Show verbose information.
287
+ - `-f, --force` - Do not ask for confirmation when deleting files.
288
+
289
+ --------------------------------
290
+
291
+ ## [`change`](#change)
292
+
293
+ Command group for changing existing SAP Fiori applications. A subcommand is required.
294
+
295
+ Usage: `npx --yes @sap-ux/create@latest change [subcommand] [options]`
296
+
297
+ The available subcommands are: `data-source` and `inbound`
298
+
299
+ --------------------------------
300
+
301
+ ## [`change data-source`](#change-data-source)
302
+
303
+ Replace the OData Source of the base application in an adaptation project.
304
+
305
+ Example:
306
+
307
+ `npx --yes @sap-ux/create@latest change data-source`
308
+
309
+ Options:
310
+ - `-s, --simulate` - Simulate only. Do not write or install.
311
+ - `-c, --config <string>` _(required)_ - Path to the project configuration file in YAML format. _(default: `ui5.yaml`)_
312
+
313
+ --------------------------------
314
+
315
+ ## [`change inbound`](#change-inbound)
316
+
317
+ Replace the inbound FLP configurations of the base application in an adaptation project.
318
+
319
+ Example:
320
+
321
+ `npx --yes @sap-ux/create@latest change inbound`
322
+
323
+ Options:
324
+ - `-s, --simulate` - Simulate only. Do not write or install.
180
325
 
181
- ### [adaptation-project](#adaptation-project)
182
- Calling `sap-ux generate adaptation-project` allows generating a new adaptation project. Without further parameters the CLI will prompt the required parameters `id`, `reference` and `url`. To run the prompt non-interactively, it is also possible to execute
183
- ```sh
184
- sap-ux generate adaptation-project --id my.adp --reference the.original.app --url http://my.sapsystem.example
185
- ```
186
- - `-n | --skip-install` skip npm install step
187
- - `-y | --yes` use default values for all prompts
188
- - `--id [id]` id of the adaptation project
189
- - `--reference [reference]` id of the original application
190
- - `--url [url]` url pointing to the target system containing the original app
191
- - `--ignoreCertErrors` ignore certificate errors when connecting to the target system
192
- - `--ft` enable the Fiori tools for the generated project
193
- - `--package [package]` ABAP package to be used for deployments
194
- - `--transport [transport]` ABAP transport to be used for deployments
@@ -7,6 +7,7 @@ const odata_service_writer_1 = require("@sap-ux/odata-service-writer");
7
7
  const common_1 = require("../../common");
8
8
  const tracing_1 = require("../../tracing");
9
9
  const validation_1 = require("../../validation/validation");
10
+ const project_access_1 = require("@sap-ux/project-access");
10
11
  let loginAttempts = 3;
11
12
  /**
12
13
  * Add a new sub-command to add annotations to odata service of an adaptation project to the given command.
@@ -15,9 +16,11 @@ let loginAttempts = 3;
15
16
  */
16
17
  function addAnnotationsToOdataCommand(cmd) {
17
18
  cmd.command('annotations [path]')
18
- .description('Add annotations to the OData service of an adaptation project.')
19
- .option('-s, --simulate', 'simulate only do not write or install')
20
- .option('-c, --config <string>', 'Path to project configuration file in YAML format', 'ui5.yaml')
19
+ .description(`Adds an annotation to the OData Source of the base application in an adaptation project.\n
20
+ Example:
21
+ \`npx --yes @sap-ux/create@latest add annotations\``)
22
+ .option('-s, --simulate', 'Simulate only. Do not write or install.')
23
+ .option('-c, --config <string>', 'Path to the project configuration file in YAML format.', project_access_1.FileName.Ui5Yaml)
21
24
  .action(async (path, options) => {
22
25
  await addAnnotationsToOdata(path, !!options.simulate, options.config);
23
26
  });
@@ -12,10 +12,12 @@ const project_access_1 = require("@sap-ux/project-access");
12
12
  */
13
13
  function addCardsEditorConfigCommand(cmd) {
14
14
  cmd.command('cards-editor [path]')
15
- .description('Add a cards editor configuration to a project, enabling card generation.')
16
- .option('-c, --config <string>', 'Path to project configuration file in YAML format', 'ui5.yaml')
17
- .option('-s, --simulate', 'simulate only do not write config; sets also --verbose')
18
- .option('-v, --verbose', 'show verbose information')
15
+ .description(`Add the necessary configuration to an existing YAML file and the script to the \`package.json\` file for cards generation. It uses the configuration from the YAML file passed by the CLI or default to \`ui5.yaml\`, as provided by the \`fiori-tools-preview\` or \`preview-middleware\`.\n
16
+ Example:
17
+ \`npx --yes @sap-ux/create@latest add cards-editor\``)
18
+ .option('-c, --config <string>', 'Path to the project configuration file in YAML format.', project_access_1.FileName.Ui5Yaml)
19
+ .option('-s, --simulate', 'Simulate only. Do not write to the config file. Also, sets `--verbose`')
20
+ .option('-v, --verbose', 'Show verbose information.')
19
21
  .action(async (path, options) => {
20
22
  if (options.verbose === true || options.simulate) {
21
23
  (0, tracing_1.setLogLevelVerbose)();
@@ -12,10 +12,12 @@ const common_1 = require("../../common");
12
12
  */
13
13
  function addAddCdsPluginUi5Command(cmd) {
14
14
  cmd.command('cds-plugin-ui5 [path]')
15
- .description('Add the cds-plugin-ui5 and all prerequisites to a CAP project for UI5 integration.')
16
- .option('-n, --skip-install', 'skip npm install step')
17
- .option('-s, --simulate', 'simulate only, do not write or install; sets also --verbose')
18
- .option('-v, --verbose', 'show verbose information')
15
+ .description(`Add the \`cds-plugin-ui5\` module and all prerequisites to a CAP project for UI5 server integration.\n
16
+ Example:
17
+ \`npx --yes @sap-ux/create@latest add cds-plugin-ui5\``)
18
+ .option('-n, --skip-install', 'Skip the `npm install` step.')
19
+ .option('-s, --simulate', 'Simulate only. Do not write or install. Also, sets `--verbose`')
20
+ .option('-v, --verbose', 'Show verbose information.')
19
21
  .action(async (path, options) => {
20
22
  if (options.verbose === true || options.simulate) {
21
23
  (0, tracing_1.setLogLevelVerbose)();
@@ -13,8 +13,10 @@ const common_1 = require("../../common");
13
13
  */
14
14
  function addComponentUsagesCommand(cmd) {
15
15
  cmd.command('component-usages [path]')
16
- .description('Add component usages to an adaptation project, updating the manifest accordingly.')
17
- .option('-s, --simulate', 'simulate only do not write or install')
16
+ .description(`Add the component usages to an adaptation project.\n
17
+ Example:
18
+ \`npx --yes @sap-ux/create@latest add component-usages\``)
19
+ .option('-s, --simulate', 'Simulate only. Do not write or install.')
18
20
  .action(async (path, options) => {
19
21
  await addComponentUsages(path, !!options.simulate);
20
22
  });
@@ -15,12 +15,14 @@ const common_1 = require("../../common");
15
15
  */
16
16
  function addDeployConfigCommand(cmd) {
17
17
  cmd.command('deploy-config [path]')
18
- .description('Add or update ABAP deployment configuration files for the project.')
19
- .option('-t, --target <string>', 'target for deployment; ABAP or Cloud Foundry (not yet implemented)')
20
- .option('-s, --simulate', 'simulate only do not write; sets also --verbose')
21
- .option('-v, --verbose', 'show verbose information')
22
- .option('-b, --base-file <string>', 'the base file config file of the project; default : ui5.yaml')
23
- .option('-d, --deploy-file <string>', 'the name of the deploy config file to be written; default : ui5-deploy.yaml')
18
+ .description(`Prompt for ABAP deployment configuration details and adds and updates the project files accordingly.\n
19
+ Example:
20
+ \`npx --yes @sap-ux/create@latest add deploy-config\``)
21
+ .option('-t, --target <string>', 'Target for deployment: ABAP or Cloud Foundry (not yet implemented)')
22
+ .option('-s, --simulate', 'Simulate only. Do not write. Also, sets `--verbose`')
23
+ .option('-v, --verbose', 'Show verbose information.')
24
+ .option('-b, --base-file <string>', 'The base config file of the project. _(default: "ui5.yaml")_')
25
+ .option('-d, --deploy-file <string>', 'The name of the deploy config file to be written. _(default: "ui5-deploy.yaml")_')
24
26
  .action(async (path, options) => {
25
27
  if (options.verbose === true || options.simulate) {
26
28
  (0, tracing_1.setLogLevelVerbose)();
@@ -8,6 +8,7 @@ const node_path_1 = require("node:path");
8
8
  const ui5_config_1 = require("@sap-ux/ui5-config");
9
9
  const mem_fs_editor_1 = require("mem-fs-editor");
10
10
  const mem_fs_1 = require("mem-fs");
11
+ const project_access_1 = require("@sap-ux/project-access");
11
12
  /**
12
13
  * Adds a command to add the virtual html files hosted by the preview middleware to the file system.
13
14
  *
@@ -15,10 +16,12 @@ const mem_fs_1 = require("mem-fs");
15
16
  */
16
17
  function addAddHtmlFilesCmd(cmd) {
17
18
  cmd.command('html [path]')
18
- .description('Add HTML files for local preview and testing, using the preview middleware configuration.')
19
- .option('-c, --config <string>', 'Path to project configuration file in YAML format', 'ui5.yaml')
20
- .option('-s, --simulate', 'simulate only do not write config; sets also --verbose')
21
- .option('-v, --verbose', 'show verbose information')
19
+ .description(`Add HTML files for local preview and testing to the project. It uses the configuration from the \`ui5.yaml\` file as default, as provided by the \`fiori-tools-preview\` or \`preview-middleware\`.\n
20
+ Example:
21
+ \`npx --yes @sap-ux/create@latest add html\``)
22
+ .option('-c, --config <string>', 'Path to the project configuration file in YAML format.', project_access_1.FileName.Ui5Yaml)
23
+ .option('-s, --simulate', 'Simulate only. Do not write to the config file. Also, sets `--verbose`')
24
+ .option('-v, --verbose', 'Show verbose information.')
22
25
  .action(async (path, options) => {
23
26
  if (options.verbose === true || options.simulate) {
24
27
  (0, tracing_1.setLogLevelVerbose)();
@@ -15,11 +15,13 @@ const common_1 = require("../../common");
15
15
  */
16
16
  function addAddMockserverConfigCommand(cmd) {
17
17
  cmd.command('mockserver-config [path]')
18
- .description('Add configuration for the mockserver module to enable local OData mocking.')
19
- .option('-i, --interactive', 'ask for config options, otherwise use defaults')
20
- .option('-n, --skip-install', 'skip npm install step')
21
- .option('-s, --simulate', 'simulate only do not write or install; sets also --verbose')
22
- .option('-v, --verbose', 'show verbose information')
18
+ .description(`Add the necessary configuration for the \`@sap-ux/ui5-middleware-fe-mockserver\` mockserver module to enable local OData mocking.\n
19
+ Example:
20
+ \`npx --yes @sap-ux/create@latest add mockserver-config\``)
21
+ .option('-i, --interactive', 'Ask for config options or otherwise, use the default options.')
22
+ .option('-n, --skip-install', 'Skip the `npm install` step.')
23
+ .option('-s, --simulate', 'Simulate only. Do not write or install. Also, sets `--verbose`')
24
+ .option('-v, --verbose', 'Show verbose information.')
23
25
  .action(async (path, options) => {
24
26
  if (options.verbose === true || options.simulate) {
25
27
  (0, tracing_1.setLogLevelVerbose)();
@@ -20,10 +20,12 @@ const tracing_1 = require("../../tracing");
20
20
  */
21
21
  function addInboundNavigationConfigCommand(cmd) {
22
22
  cmd.command('inbound-navigation [path]')
23
- .description('Add Fiori Launchpad inbound navigation configuration to a project.')
24
- .option('-s, --simulate', 'simulate only do not write config; sets also --verbose')
25
- .option('-v, --verbose', 'show verbose information')
26
- .option('-c, --config <string>', 'Path to project configuration file in YAML format', project_access_1.FileName.Ui5Yaml)
23
+ .description(`Add SAP Fiori launchpad inbound navigation configuration to a project.\n
24
+ Example:
25
+ \`npx --yes @sap-ux/create@latest add inbound-navigation\``)
26
+ .option('-s, --simulate', 'Simulate only. Do not write to the config file. Also, sets `--verbose`')
27
+ .option('-v, --verbose', 'Show verbose information.')
28
+ .option('-c, --config <string>', 'Path to the project configuration file in YAML format.', project_access_1.FileName.Ui5Yaml)
27
29
  .action(async (path, options) => {
28
30
  if (options.verbose === true || options.simulate) {
29
31
  (0, tracing_1.setLogLevelVerbose)();
@@ -12,8 +12,10 @@ const validation_1 = require("../../validation/validation");
12
12
  */
13
13
  function addNewModelCommand(cmd) {
14
14
  cmd.command('model [path]')
15
- .description('Add a new OData service and UI5 model to an existing adaptation project.')
16
- .option('-s, --simulate', 'simulate only do not write or install')
15
+ .description(`Add a new OData service and SAPUI5 model to an existing adaptation project.\n
16
+ Example:
17
+ \`npx --yes @sap-ux/create@latest add model\``)
18
+ .option('-s, --simulate', 'Simulate only. Do not write or install.')
17
19
  .action(async (path, options) => {
18
20
  await addNewModel(path, !!options.simulate);
19
21
  });
@@ -11,9 +11,11 @@ const validation_1 = require("../../validation");
11
11
  */
12
12
  function addAddSmartLinksConfigCommand(cmd) {
13
13
  cmd.command('smartlinks-config [path]')
14
- .description('Add a smartLinks configuration to a project for cross-app navigation.')
15
- .option('-s, --simulate', 'simulate only do not write config; sets also --verbose')
16
- .option('-v, --verbose', 'show verbose information')
14
+ .description(`Add a \`smartLinks\` configuration to a project for cross-app navigation.\n
15
+ Example:
16
+ \`npx --yes @sap-ux/create@latest add smartlinks-config\``)
17
+ .option('-s, --simulate', 'Simulate only. Do not write to the config file. Also, sets `--verbose`')
18
+ .option('-v, --verbose', 'Show verbose information.')
17
19
  .action(async (path, options) => {
18
20
  if (options.verbose === true || options.simulate) {
19
21
  (0, tracing_1.setLogLevelVerbose)();
@@ -5,6 +5,7 @@ const tracing_1 = require("../../tracing");
5
5
  const validation_1 = require("../../validation");
6
6
  const app_config_writer_1 = require("@sap-ux/app-config-writer");
7
7
  const node_path_1 = require("node:path");
8
+ const project_access_1 = require("@sap-ux/project-access");
8
9
  /**
9
10
  * Add the "add variants config" command to a passed command.
10
11
  *
@@ -12,10 +13,12 @@ const node_path_1 = require("node:path");
12
13
  */
13
14
  function addAddVariantsConfigCommand(cmd) {
14
15
  cmd.command('variants-config [path]')
15
- .description('Add configuration and scripts for variant management.')
16
- .option('-c, --config <string>', 'Path to project configuration file in YAML format', 'ui5.yaml')
17
- .option('-s, --simulate', 'simulate only do not write config; sets also --verbose')
18
- .option('-v, --verbose', 'show verbose information')
16
+ .description(`Add the necessary configuration to an existing YAML file and the script to the \`package.json\` file for variants creation. It uses the configuration from the YAML file passed by the CLI or default to \`ui5.yaml\`, as provided by the \`fiori-tools-preview\` or \`preview-middleware\`.\n
17
+ Example:
18
+ \`npx --yes @sap-ux/create@latest add variants-config\``)
19
+ .option('-c, --config <string>', 'Path to the project configuration file in YAML format.', project_access_1.FileName.Ui5Yaml)
20
+ .option('-s, --simulate', 'Simulate only. Do not write to the config file. Also, sets `--verbose`')
21
+ .option('-v, --verbose', 'Show verbose information.')
19
22
  .action(async (path, options) => {
20
23
  if (options.verbose === true || options.simulate) {
21
24
  (0, tracing_1.setLogLevelVerbose)();
@@ -4,8 +4,9 @@ exports.addChangeDataSourceCommand = addChangeDataSourceCommand;
4
4
  const adp_tooling_1 = require("@sap-ux/adp-tooling");
5
5
  const tracing_1 = require("../../tracing");
6
6
  const common_1 = require("../../common");
7
- const validation_1 = require("../../validation/validation");
7
+ const validation_1 = require("../../validation");
8
8
  const system_access_1 = require("@sap-ux/system-access");
9
+ const project_access_1 = require("@sap-ux/project-access");
9
10
  let loginAttempts = 3;
10
11
  /**
11
12
  * Add a new sub-command to change the data source of an adaptation project to the given command.
@@ -14,9 +15,11 @@ let loginAttempts = 3;
14
15
  */
15
16
  function addChangeDataSourceCommand(cmd) {
16
17
  cmd.command('data-source [path]')
17
- .description('Change the OData source of the base application in an adaptation project.')
18
- .option('-s, --simulate', 'simulate only do not write or install')
19
- .option('-c, --config <string>', 'Path to project configuration file in YAML format', 'ui5.yaml')
18
+ .description(`Replace the OData Source of the base application in an adaptation project.\n
19
+ Example:
20
+ \`npx --yes @sap-ux/create@latest change data-source\``)
21
+ .option('-s, --simulate', 'Simulate only. Do not write or install.')
22
+ .option('-c, --config <string>', 'Path to the project configuration file in YAML format.', project_access_1.FileName.Ui5Yaml)
20
23
  .action(async (path, options) => {
21
24
  await changeDataSource(path, !!options.simulate, options.config);
22
25
  });
@@ -12,8 +12,10 @@ const validation_1 = require("../../validation");
12
12
  */
13
13
  function addChangeInboundCommand(cmd) {
14
14
  cmd.command('inbound [path]')
15
- .description('Replace the Inbound FLP configurations of the base application in an adaptation project.')
16
- .option('-s, --simulate', 'simulate only do not write or install')
15
+ .description(`Replace the inbound FLP configurations of the base application in an adaptation project.\n
16
+ Example:
17
+ \`npx --yes @sap-ux/create@latest change inbound\``)
18
+ .option('-s, --simulate', 'Simulate only. Do not write or install.')
17
19
  .action(async (path, options) => {
18
20
  await changeInbound(path, !!options.simulate);
19
21
  });
@@ -10,10 +10,13 @@ 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
- .description('Convert an app to use virtual preview endpoints and update configuration files.')
14
- .option('-s, --simulate <boolean>', 'simulate only do not write')
15
- .option('-v, --verbose', 'show verbose information')
16
- .option('-t, --tests <boolean>', 'also convert test suite and test runners')
13
+ .description(`Executed in the root folder of an app, it converts the respective app to the preview with virtual endpoints. It uses the configuration from the scripts in the \`package.json\` file to adjust the UI5 configuration YAML files accordingly. The obsolete JS and TS sources are deleted and the HTML files previously used for the preview are renamed to \`*_old.html\`.\n
14
+ Examples:
15
+ \`npx --yes @sap-ux/create@latest convert preview-config --simulate=false --tests=false\`
16
+ \`npx --yes @sap-ux/create@latest convert preview-config\``)
17
+ .option('-s, --simulate <boolean>', 'Simulate only. Do not write.')
18
+ .option('-v, --verbose', 'Show verbose information.')
19
+ .option('-t, --tests <boolean>', 'Also, convert test suite and test runners.')
17
20
  .action(async (path, options) => {
18
21
  const simulateString = /(?:=)?(true|false)/i.exec(options.simulate)?.[1];
19
22
  const testsString = /(?:=)?(true|false)/i.exec(options.tests)?.[1];
@@ -16,18 +16,20 @@ const node_path_1 = require("node:path");
16
16
  */
17
17
  function addGenerateAdaptationProjectCommand(cmd) {
18
18
  cmd.command('adaptation-project [path]')
19
- .description('Generate a new UI5 adaptation project with optional prompts and configuration.')
20
- .option('-n, --skip-install', 'skip npm install step')
21
- .option('-s, --simulate', 'simulate only do not write or install')
22
- .option('-y, --yes', 'use default values for all prompts')
23
- .option('--id [id]', 'id of the adaptation project')
24
- .option('--reference [reference]', 'id of the original application')
25
- .option('--url [url]', 'url pointing to the target system containing the original app')
26
- .option('--ignoreCertErrors', 'ignore certificate errors when connecting to the target system')
27
- .option('--ft', 'enable the Fiori tools for the generated project')
28
- .option('--ts', 'enable the TypeScript support for the generated project')
29
- .option('--package [package]', 'ABAP package to be used for deployments')
30
- .option('--transport [transport]', 'ABAP transport to be used for deployments')
19
+ .description(`Generate a new SAPUI5 adaptation project with optional prompts and configuration.\n
20
+ Example:
21
+ \`npx --yes @sap-ux/create@latest generate adaptation-project\``)
22
+ .option('-n, --skip-install', 'Skip the `npm install` step.')
23
+ .option('-s, --simulate', 'Simulate only. Do not write or install.')
24
+ .option('-y, --yes', 'Use default values for all prompts.')
25
+ .option('--id [id]', 'The ID of the adaptation project.')
26
+ .option('--reference [reference]', 'The ID of the original application.')
27
+ .option('--url [url]', 'The URL that points to the target system which contains the original application.')
28
+ .option('--ignoreCertErrors', 'Ignore certificate errors when connecting to the target system.')
29
+ .option('--ft', 'Enable SAP Fiori tools for the generated project.')
30
+ .option('--ts', 'Enable TypeScript support for the generated project.')
31
+ .option('--package [package]', 'The ABAP package to be used for deployments.')
32
+ .option('--transport [transport]', 'The ABAP transport to be used for deployments.')
31
33
  .action(async (path, options) => {
32
34
  console.log(`\nThe generation of adaptation projects outside of SAP Business Application Studio is currently ${chalk_1.default.bold('experimental')}.`);
33
35
  console.log('Please report any issues or feedback at https://github.com/SAP/open-ux-tools/issues/new/choose.\n');
package/dist/cli/index.js CHANGED
@@ -46,10 +46,10 @@ function getCommanderProgram() {
46
46
  const logger = (0, tracing_1.getLogger)();
47
47
  const program = new commander_1.Command();
48
48
  const version = getVersion();
49
- program.description(`Configure features for Fiori applications and projects. (${version})`);
49
+ program.description(`Configure features for SAP Fiori applications and projects (@sap-ux/create version ${version}).`);
50
50
  program.addHelpText('after', `\nExample Usage:
51
- 'npx --yes @sap-ux/create@latest add --help' Get available subcommands for the 'add' command.
52
- 'npx --yes @sap-ux/create@latest add html --help' Get available options for the 'add html' command.
51
+ 'npx --yes @sap-ux/create@latest add --help' Get the available subcommands for the 'add' command.
52
+ 'npx --yes @sap-ux/create@latest add html --help' Get the available options for the 'add html' command.
53
53
  'npx --yes @sap-ux/create@latest add html --simulate' Execute the 'add html' command using the 'simulate' option.\n`);
54
54
  program.option('--generateJsonSpec', 'Output the command structure as JSON');
55
55
  program.action((options) => {
@@ -66,28 +66,33 @@ function getCommanderProgram() {
66
66
  program.version(version);
67
67
  // Handler for create-fiori generate <feature> ..
68
68
  const genCommands = (0, generate_1.getGenerateCommands)();
69
- genCommands.description(`Generate adaptation projects.
70
- Available Subcommands: ${getFeatureSummary(genCommands.commands)}\n`);
69
+ genCommands.description(`Command group for generating SAP Fiori applications. A subcommand is required.
70
+ Usage: \`npx --yes @sap-ux/create@latest generate [subcommand] [options]\`
71
+ The available subcommands are: ${getFeatureSummary(genCommands.commands)}\n`);
71
72
  program.addCommand(genCommands);
72
73
  // Handler for create-fiori add <feature> ..
73
74
  const addCommands = (0, add_1.getAddCommands)();
74
- addCommands.description(`Add features to an SAP Fiori app.
75
- Available Subcommands: ${getFeatureSummary(addCommands.commands)}\n`);
75
+ addCommands.description(`Command group for adding features to existing SAP Fiori applications. A subcommand is required.
76
+ Usage: \`npx --yes @sap-ux/create@latest add [subcommand] [options]\`
77
+ The available subcommands are: ${getFeatureSummary(addCommands.commands)}\n`);
76
78
  program.addCommand(addCommands);
77
79
  // Handler for create-fiori convert <feature> ..
78
80
  const convertCommands = (0, convert_1.getConvertCommands)();
79
- convertCommands.description(`Convert existing SAP Fiori applications.
80
- Available Subcommands: ${getFeatureSummary(convertCommands.commands)}\n`);
81
+ convertCommands.description(`Command group for converting existing SAP Fiori applications. A subcommand is required.
82
+ Usage: \`npx --yes @sap-ux/create@latest convert [subcommand] [options]\`
83
+ The available subcommands are: ${getFeatureSummary(convertCommands.commands)}\n`);
81
84
  program.addCommand(convertCommands);
82
85
  // Handler for create-fiori remove <feature> ..
83
86
  const removeCommands = (0, remove_1.getRemoveCommands)();
84
- removeCommands.description(`Remove features from existing SAP Fiori applications.
85
- Available Subcommands: ${getFeatureSummary(removeCommands.commands)}\n`);
87
+ removeCommands.description(`Command group for removing features from existing SAP Fiori applications. A subcommand is required.
88
+ Usage: \`npx --yes @sap-ux/create@latest remove [subcommand] [options]\`
89
+ The available subcommands are: ${getFeatureSummary(removeCommands.commands)}\n`);
86
90
  program.addCommand(removeCommands);
87
91
  // Handler for create-fiori change <feature> ..
88
92
  const changeCommands = (0, change_1.getChangeCommands)();
89
- changeCommands.description(`Change existing adaptation projects.
90
- Available Subcommands: ${getFeatureSummary(changeCommands.commands)}`);
93
+ changeCommands.description(`Command group for changing existing SAP Fiori applications. A subcommand is required.
94
+ Usage: \`npx --yes @sap-ux/create@latest change [subcommand] [options]\`
95
+ The available subcommands are: ${getFeatureSummary(changeCommands.commands)}`);
91
96
  program.addCommand(changeCommands);
92
97
  return program;
93
98
  }
@@ -98,8 +103,8 @@ function getCommanderProgram() {
98
103
  * @returns - Summary of the subcommands
99
104
  */
100
105
  function getFeatureSummary(commands) {
101
- const subCommandNames = commands.map((cmd) => cmd.name());
102
- return subCommandNames.join(', ');
106
+ const subCommandNames = commands.map((cmd) => `\`${cmd.name()}\``);
107
+ return subCommandNames.join(', ').replace(/, ([^,]*)$/, ' and $1');
103
108
  }
104
109
  /**
105
110
  * Parses a commander.Option object into a simpler format for the JSON spec.
@@ -15,9 +15,11 @@ const validation_1 = require("../../validation");
15
15
  */
16
16
  function addRemoveMockserverConfigCommand(cmd) {
17
17
  cmd.command('mockserver-config [path]')
18
- .description('Remove the configuration for the mockserver module from a project.')
19
- .option('-v, --verbose', 'show verbose information')
20
- .option('-f, --force', 'do not ask for confirmation when deleting files')
18
+ .description(`Removes the configuration for the \`@sap-ux/ui5-middleware-fe-mockserver\` mockserver module.\n
19
+ Example:
20
+ \`npx --yes @sap-ux/create@latest remove mockserver-config\``)
21
+ .option('-v, --verbose', 'Show verbose information.')
22
+ .option('-f, --force', 'Do not ask for confirmation when deleting files.')
21
23
  .action(async (path, options) => {
22
24
  if (options.verbose === true) {
23
25
  (0, tracing_1.setLogLevelVerbose)();
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.13.160",
4
+ "version": "0.13.162",
5
5
  "repository": {
6
6
  "type": "git",
7
7
  "url": "https://github.com/SAP/open-ux-tools.git",
@@ -30,19 +30,19 @@
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.6.46",
34
33
  "@sap-ux/abap-deploy-config-writer": "0.2.33",
35
- "@sap-ux/adp-tooling": "0.17.8",
36
34
  "@sap-ux/app-config-writer": "0.6.56",
35
+ "@sap-ux/abap-deploy-config-inquirer": "1.6.46",
37
36
  "@sap-ux/cap-config-writer": "0.12.24",
37
+ "@sap-ux/adp-tooling": "0.18.0",
38
38
  "@sap-ux/logger": "0.7.1",
39
- "@sap-ux/mockserver-config-writer": "0.9.25",
40
39
  "@sap-ux/odata-service-writer": "0.27.29",
41
- "@sap-ux/preview-middleware": "0.23.50",
40
+ "@sap-ux/mockserver-config-writer": "0.9.25",
41
+ "@sap-ux/preview-middleware": "0.23.51",
42
42
  "@sap-ux/project-access": "1.32.8",
43
43
  "@sap-ux/system-access": "0.6.28",
44
44
  "@sap-ux/ui5-config": "0.29.9",
45
- "@sap-ux/flp-config-inquirer": "0.4.58"
45
+ "@sap-ux/flp-config-inquirer": "0.4.59"
46
46
  },
47
47
  "devDependencies": {
48
48
  "@types/diff": "5.0.9",
@@ -54,7 +54,7 @@
54
54
  "@sap-ux/store": "1.3.3"
55
55
  },
56
56
  "scripts": {
57
- "build": "tsc --build",
57
+ "build": "tsc --build && node ./scripts/generate-readme.js",
58
58
  "clean": "rimraf --glob dist coverage *.tsbuildinfo",
59
59
  "format": "prettier --write '**/*.{js,json,ts,yaml,yml}' --ignore-path ../../.prettierignore",
60
60
  "lint": "eslint . --ext .ts",