@sap-ux/deploy-tooling 0.14.27 → 0.14.29
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 +112 -10
- package/package.json +3 -3
package/README.md
CHANGED
|
@@ -1,13 +1,60 @@
|
|
|
1
1
|
# `@sap-ux/deploy-tooling`
|
|
2
2
|
|
|
3
|
-
|
|
3
|
+
`@sap-ux/deploy-tooling` exposes the capabilities of custom tasks to deploy and undeploy SAP Fiori projects against ABAP servers.
|
|
4
4
|
|
|
5
|
-
|
|
5
|
+
### Pre-requisites
|
|
6
6
|
|
|
7
|
-
|
|
7
|
+
- SAP component SAP_UI 7.53 or higher is installed in your SAP system
|
|
8
|
+
- Service needs to be enabled and accessible from your development environment, [how to check this](https://help.sap.com/docs/SAP_NETWEAVER_AS_ABAP_752/68bf513362174d54b58cddec28794093/bb2bfe50645c741ae10000000a423f68.html?version=7.52.5)
|
|
9
|
+
- For operations on a SAPUI5 ABAP repository, you need the `S_DEVELOP` authorization, [how to check this](https://sapui5.hana.ondemand.com/sdk/#/topic/91f3ecc06f4d1014b6dd926db0e91070)
|
|
10
|
+
|
|
11
|
+
## CLI
|
|
12
|
+
The module also exposes two commands `deploy` and `undeploy`.
|
|
13
|
+
|
|
14
|
+
## Install
|
|
15
|
+
|
|
16
|
+
```bash
|
|
17
|
+
`npm install @sap-ux/deploy-tooling --save-dev`
|
|
18
|
+
# or
|
|
19
|
+
yarn add @sap-ux/deploy-tooling --dev
|
|
20
|
+
```
|
|
21
|
+
|
|
22
|
+
# Verify local installation
|
|
23
|
+
```
|
|
24
|
+
npx deploy -h
|
|
25
|
+
# or
|
|
26
|
+
./node_modules/.bin/deploy -h
|
|
27
|
+
```
|
|
28
|
+
|
|
29
|
+
## Usage
|
|
30
|
+
|
|
31
|
+
```bash
|
|
32
|
+
deploy [options]
|
|
33
|
+
# or
|
|
34
|
+
undeploy [options]
|
|
35
|
+
```
|
|
36
|
+
|
|
37
|
+
By default, YAML configuration is read from `ui5-deploy.yaml`, found in the root of your project when the `deploy` | `undeploy` commands are executed.
|
|
38
|
+
|
|
39
|
+
To change the default configuration location, run;
|
|
40
|
+
|
|
41
|
+
Deploy
|
|
42
|
+
```bash
|
|
43
|
+
deploy -c myproject/my-deploy-config.yaml
|
|
44
|
+
# or
|
|
45
|
+
deploy --config myproject/my-deploy-config.yaml
|
|
46
|
+
```
|
|
47
|
+
|
|
48
|
+
Undeploy
|
|
49
|
+
```bash
|
|
50
|
+
undeploy -c myproject/my-undeploy-config.yaml
|
|
51
|
+
# or
|
|
52
|
+
undeploy --config myproject/my-undeploy-config.yaml
|
|
53
|
+
```
|
|
8
54
|
|
|
9
55
|
#### Minimal Configuration
|
|
10
|
-
|
|
56
|
+
|
|
57
|
+
This is the minimal custom task configuration for deployment using package `$TMP`, without the change being recorded in a transport request.
|
|
11
58
|
|
|
12
59
|
```yaml
|
|
13
60
|
- name: abap-deploy-task
|
|
@@ -17,6 +64,8 @@ This is the minimal configuration for deployment to `$TMP` without the change be
|
|
|
17
64
|
package: $TMP
|
|
18
65
|
target:
|
|
19
66
|
url: https://target.example
|
|
67
|
+
exclude:
|
|
68
|
+
- /test/
|
|
20
69
|
```
|
|
21
70
|
|
|
22
71
|
#### Configuration with logging enabled
|
|
@@ -29,7 +78,7 @@ Verbose = 3,
|
|
|
29
78
|
Debug = 4,
|
|
30
79
|
Silly = 5
|
|
31
80
|
```
|
|
32
|
-
Configuration example:
|
|
81
|
+
Custom task YAML Configuration example:
|
|
33
82
|
```yaml
|
|
34
83
|
- name: abap-deploy-task
|
|
35
84
|
configuration:
|
|
@@ -39,12 +88,25 @@ Configuration example:
|
|
|
39
88
|
package: $TMP
|
|
40
89
|
target:
|
|
41
90
|
url: https://target.example
|
|
91
|
+
exclude:
|
|
92
|
+
- /test/
|
|
42
93
|
```
|
|
94
|
+
Or setting `verbose: true` will set the log level to `Silly`:
|
|
43
95
|
|
|
44
|
-
|
|
45
|
-
|
|
96
|
+
```yaml
|
|
97
|
+
- name: abap-deploy-task
|
|
98
|
+
configuration:
|
|
99
|
+
verbose: true
|
|
100
|
+
app:
|
|
101
|
+
name: Z_TEST
|
|
102
|
+
package: $TMP
|
|
103
|
+
target:
|
|
104
|
+
url: https://target.example
|
|
105
|
+
exclude:
|
|
106
|
+
- /test/
|
|
107
|
+
```
|
|
46
108
|
|
|
47
|
-
###
|
|
109
|
+
### Deploy
|
|
48
110
|
The `deploy` command executes the same functionality as the `abap-deploy` UI5 task independent of the `ui5 build` execution. This allows to separate the build and the deployment process e.g. for CI/CD or to provide configurations as CLI args instead of having them defined in the `ui5.yaml` - nevertheless, the `ui5.yaml` is always required as a basis for the configuration.
|
|
49
111
|
|
|
50
112
|
```
|
|
@@ -80,7 +142,47 @@ Options:
|
|
|
80
142
|
-h, --help display help for command
|
|
81
143
|
```
|
|
82
144
|
|
|
83
|
-
|
|
145
|
+
#### Deploy Examples
|
|
146
|
+
|
|
147
|
+
Example 1 - Deploy to an ABAP Cloud system with strict SSL disabled
|
|
148
|
+
|
|
149
|
+
```bash
|
|
150
|
+
deploy --url <target-abap-system> --cloud true --name <app-name> --description '<app-description>' --package <package-name> --transport <transport-request> --no-strict-ssl
|
|
151
|
+
```
|
|
152
|
+
Using YAML configuration;
|
|
153
|
+
```YAML
|
|
154
|
+
# yaml-language-server: $schema=https://sap.github.io/ui5-tooling/schema/ui5.yaml.json
|
|
155
|
+
|
|
156
|
+
specVersion: "3.1"
|
|
157
|
+
metadata:
|
|
158
|
+
name: my.namespace.myappname
|
|
159
|
+
type: application
|
|
160
|
+
builder:
|
|
161
|
+
resources:
|
|
162
|
+
excludes:
|
|
163
|
+
- /test/**
|
|
164
|
+
- /localService/**
|
|
165
|
+
customTasks:
|
|
166
|
+
- name: abap-deploy-task
|
|
167
|
+
afterTask: generateCachebusterInfo
|
|
168
|
+
configuration:
|
|
169
|
+
target:
|
|
170
|
+
url: <target-abap-system>
|
|
171
|
+
cloud: true
|
|
172
|
+
app:
|
|
173
|
+
name: <app-name>
|
|
174
|
+
description: <app-description>
|
|
175
|
+
package: <package-name>
|
|
176
|
+
transport: <transport-request>
|
|
177
|
+
exclude:
|
|
178
|
+
- /test/
|
|
179
|
+
```
|
|
180
|
+
Deploy CLI command;
|
|
181
|
+
```bash
|
|
182
|
+
deploy -c ui5-deploy.yaml --no-strict-ssl
|
|
183
|
+
```
|
|
184
|
+
|
|
185
|
+
### Undeploy
|
|
84
186
|
The `undeploy` command allows undeploying a previously deployed application. This functionality is only available as CLI command and not as ui5 task.
|
|
85
187
|
|
|
86
188
|
```
|
|
@@ -108,4 +210,4 @@ Options:
|
|
|
108
210
|
--test Run in test mode. ABAP backend reports undeployment errors without actually undeploying (use --no-test to deactivate it).
|
|
109
211
|
-v, --version version of the deploy tooling
|
|
110
212
|
-h, --help display help for command
|
|
111
|
-
```
|
|
213
|
+
```
|
package/package.json
CHANGED
|
@@ -9,7 +9,7 @@
|
|
|
9
9
|
"bugs": {
|
|
10
10
|
"url": "https://github.com/SAP/open-ux-tools/issues?q=is%3Aopen+is%3Aissue+label%3Abug+label%3Adeploy-tooling"
|
|
11
11
|
},
|
|
12
|
-
"version": "0.14.
|
|
12
|
+
"version": "0.14.29",
|
|
13
13
|
"license": "Apache-2.0",
|
|
14
14
|
"author": "@SAP/ux-tools-team",
|
|
15
15
|
"main": "dist/index.js",
|
|
@@ -32,10 +32,10 @@
|
|
|
32
32
|
"prompts": "2.4.2",
|
|
33
33
|
"adm-zip": "0.5.10",
|
|
34
34
|
"chalk": "4.1.2",
|
|
35
|
-
"@sap-ux/axios-extension": "1.12.
|
|
35
|
+
"@sap-ux/axios-extension": "1.12.6",
|
|
36
36
|
"@sap-ux/btp-utils": "0.14.4",
|
|
37
37
|
"@sap-ux/logger": "0.5.1",
|
|
38
|
-
"@sap-ux/system-access": "0.3.
|
|
38
|
+
"@sap-ux/system-access": "0.3.32",
|
|
39
39
|
"@sap-ux/ui5-config": "0.22.5",
|
|
40
40
|
"@sap-ux/project-input-validator": "0.2.3"
|
|
41
41
|
},
|