@sap-ux/deploy-tooling 0.7.1 → 0.8.0
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 -0
- package/dist/base/deploy.js +11 -1
- package/dist/cli/index.js +2 -2
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -101,6 +101,8 @@ Options:
|
|
|
101
101
|
--username ABAP Service username
|
|
102
102
|
--password ABAP Service password
|
|
103
103
|
--transport <transport-request> Transport number to record the change in the ABAP system
|
|
104
|
+
--create-transport Create a transport request during deployment
|
|
105
|
+
--package <abap-package> Package name for deploy target ABAP system (only required when --create-transport is used)
|
|
104
106
|
--name <bsp-name> Project name of the app
|
|
105
107
|
--no-strict-ssl Deactivate SSL certificate validation, enabled by default
|
|
106
108
|
--test Run in test mode. ABAP backend reports undeployment errors without actually undeploying (use --no-test to deactivate it).
|
package/dist/base/deploy.js
CHANGED
|
@@ -222,7 +222,13 @@ function handle401Error(command, provider, config, logger, archive) {
|
|
|
222
222
|
const service = getUi5AbapRepositoryService(provider, config, logger);
|
|
223
223
|
const credentials = yield (0, prompt_1.promptCredentials)((_a = service.defaults.auth) === null || _a === void 0 ? void 0 : _a.username);
|
|
224
224
|
if (Object.keys(credentials).length) {
|
|
225
|
-
|
|
225
|
+
if (config.target.serviceKey) {
|
|
226
|
+
config.target.serviceKey.uaa.username = credentials.username;
|
|
227
|
+
config.target.serviceKey.uaa.password = credentials.password;
|
|
228
|
+
}
|
|
229
|
+
else {
|
|
230
|
+
service.defaults.auth = credentials;
|
|
231
|
+
}
|
|
226
232
|
yield deploymentCommands[command](provider, config, logger, archive);
|
|
227
233
|
return true;
|
|
228
234
|
}
|
|
@@ -378,6 +384,10 @@ exports.deploy = deploy;
|
|
|
378
384
|
function tryUndeploy(provider, config, logger) {
|
|
379
385
|
return __awaiter(this, void 0, void 0, function* () {
|
|
380
386
|
try {
|
|
387
|
+
if (config.createTransport) {
|
|
388
|
+
config.app.transport = yield createTransportRequest(config, logger, provider);
|
|
389
|
+
config.createTransport = false;
|
|
390
|
+
}
|
|
381
391
|
const service = getUi5AbapRepositoryService(provider, config, logger);
|
|
382
392
|
yield service.undeploy({ bsp: config.app, testMode: config.test });
|
|
383
393
|
if (config.test === true) {
|
package/dist/cli/index.js
CHANGED
|
@@ -38,7 +38,9 @@ function createCommand(name) {
|
|
|
38
38
|
.addOption(new commander_1.Option('--service <service-path>', 'Target SAPUI5 Repository OData Service'))
|
|
39
39
|
.addOption(new commander_1.Option('--cloud-service-key <file-location>', 'JSON file location with the ABAP cloud service key.').conflicts('destination'))
|
|
40
40
|
.addOption(new commander_1.Option('--cloud-service-env', 'Read ABAP cloud service properties from environment variables or .env file').conflicts(['cloudServiceKey', 'destination']))
|
|
41
|
+
.option('--package <abap-package>', 'Package name for deploy target ABAP system')
|
|
41
42
|
.option('--transport <transport-request>', 'Transport number to record the change in the ABAP system')
|
|
43
|
+
.addOption(new commander_1.Option('--create-transport', 'Create transport request during deployment').conflicts(['transport']))
|
|
42
44
|
.addOption(new commander_1.Option('--username <username>', 'ABAP System username').conflicts([
|
|
43
45
|
'cloudServiceKey',
|
|
44
46
|
'cloudServiceEnv',
|
|
@@ -56,9 +58,7 @@ function createCommand(name) {
|
|
|
56
58
|
if (name === 'deploy') {
|
|
57
59
|
// additional parameters for deployment
|
|
58
60
|
command
|
|
59
|
-
.option('--package <abap-package>', 'Package name for deploy target ABAP system')
|
|
60
61
|
.option('--description <description>', 'Project description of the app')
|
|
61
|
-
.addOption(new commander_1.Option('--create-transport', 'Create transport request during deployment').conflicts(['transport']))
|
|
62
62
|
// SafeMode: Example: If the deployment would overwrite a repository that contains an app with a different sap.app/id and SafeMode is true, HTTP status code 412 (Precondition Failed) with further information would be returned.
|
|
63
63
|
.option('--safe', 'Prevents accidentally breaking deployments.')
|
|
64
64
|
.option('--keep', 'Keep a copy of the deployed archive in the project folder.');
|
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.
|
|
12
|
+
"version": "0.8.0",
|
|
13
13
|
"license": "Apache-2.0",
|
|
14
14
|
"author": "@SAP/ux-tools-team",
|
|
15
15
|
"main": "dist/index.js",
|