@sap-ux/deploy-config-sub-generator 0.0.17 → 0.0.18
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/generators/app/prompting.js +1 -2
- package/generators/app/utils.js +3 -4
- package/generators/prompts/deploy-target.js +2 -2
- package/generators/prompts/sub-gen.js +1 -2
- package/generators/utils/config.js +1 -2
- package/generators/utils/environment.js +3 -4
- package/generators/utils/i18n.js +2 -3
- package/generators/utils/targets.js +1 -2
- package/package.json +4 -5
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.promptDeployConfigQuestions =
|
|
3
|
+
exports.promptDeployConfigQuestions = promptDeployConfigQuestions;
|
|
4
4
|
const prompts_1 = require("../prompts");
|
|
5
5
|
/**
|
|
6
6
|
* Determines the target deployment and runs all prompting if required.
|
|
@@ -43,5 +43,4 @@ async function promptDeployConfigQuestions(fs, options, prompt, { launchDeployCo
|
|
|
43
43
|
const target = supportedTargets.find((t) => t.name === answers?.targetName)?.name;
|
|
44
44
|
return { target, answers };
|
|
45
45
|
}
|
|
46
|
-
exports.promptDeployConfigQuestions = promptDeployConfigQuestions;
|
|
47
46
|
//# sourceMappingURL=prompting.js.map
|
package/generators/app/utils.js
CHANGED
|
@@ -1,6 +1,8 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.
|
|
3
|
+
exports.parseTarget = parseTarget;
|
|
4
|
+
exports.getYUIDetails = getYUIDetails;
|
|
5
|
+
exports.registerNamespaces = registerNamespaces;
|
|
4
6
|
const path_1 = require("path");
|
|
5
7
|
/**
|
|
6
8
|
* Parses the target from the CLI args or the options.
|
|
@@ -22,7 +24,6 @@ function parseTarget(args, opts) {
|
|
|
22
24
|
}
|
|
23
25
|
return result;
|
|
24
26
|
}
|
|
25
|
-
exports.parseTarget = parseTarget;
|
|
26
27
|
/**
|
|
27
28
|
* Returns the details for the YUI prompt.
|
|
28
29
|
*
|
|
@@ -37,7 +38,6 @@ function getYUIDetails(appRootPath) {
|
|
|
37
38
|
}
|
|
38
39
|
];
|
|
39
40
|
}
|
|
40
|
-
exports.getYUIDetails = getYUIDetails;
|
|
41
41
|
/**
|
|
42
42
|
* Registers all the root generator's namespaces i.e the subgenerators.
|
|
43
43
|
*
|
|
@@ -51,5 +51,4 @@ function registerNamespaces(rootGenerator, generatorNamespace, isPackageRegister
|
|
|
51
51
|
lookup({ packagePatterns: [rootGenerator] });
|
|
52
52
|
}
|
|
53
53
|
}
|
|
54
|
-
exports.registerNamespaces = registerNamespaces;
|
|
55
54
|
//# sourceMappingURL=utils.js.map
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.
|
|
3
|
+
exports.promptNames = void 0;
|
|
4
|
+
exports.getDeployTargetQuestion = getDeployTargetQuestion;
|
|
4
5
|
const utils_1 = require("../utils");
|
|
5
6
|
const inquirer_common_1 = require("@sap-ux/inquirer-common");
|
|
6
7
|
var promptNames;
|
|
@@ -34,5 +35,4 @@ function getDeployTargetQuestion(supportedTargets, projectRoot, extensionPromptO
|
|
|
34
35
|
? (0, inquirer_common_1.extendWithOptions)(deployTargetPrompts, extensionPromptOpts)
|
|
35
36
|
: deployTargetPrompts;
|
|
36
37
|
}
|
|
37
|
-
exports.getDeployTargetQuestion = getDeployTargetQuestion;
|
|
38
38
|
//# sourceMappingURL=deploy-target.js.map
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.getSubGenPrompts =
|
|
3
|
+
exports.getSubGenPrompts = getSubGenPrompts;
|
|
4
4
|
const inquirer_common_1 = require("@sap-ux/inquirer-common");
|
|
5
5
|
const path_1 = require("path");
|
|
6
6
|
const utils_1 = require("../utils");
|
|
@@ -60,7 +60,6 @@ async function getSubGenPrompts(fs, options, { launchDeployConfigAsSubGenerator,
|
|
|
60
60
|
});
|
|
61
61
|
return { questions, abapAnswers: abapAnswers };
|
|
62
62
|
}
|
|
63
|
-
exports.getSubGenPrompts = getSubGenPrompts;
|
|
64
63
|
/**
|
|
65
64
|
* Merges all prompts for deployment configuration.
|
|
66
65
|
*
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.getBackendConfig =
|
|
3
|
+
exports.getBackendConfig = getBackendConfig;
|
|
4
4
|
const path_1 = require("path");
|
|
5
5
|
const abap_deploy_config_sub_generator_1 = require("@sap-ux/abap-deploy-config-sub-generator");
|
|
6
6
|
const ui5_config_1 = require("@sap-ux/ui5-config");
|
|
@@ -37,5 +37,4 @@ async function getBackendConfig(fs, options, launchStandaloneFromYui, projectRoo
|
|
|
37
37
|
}
|
|
38
38
|
return { backendConfig, isLibrary };
|
|
39
39
|
}
|
|
40
|
-
exports.getBackendConfig = getBackendConfig;
|
|
41
40
|
//# sourceMappingURL=config.js.map
|
|
@@ -1,6 +1,8 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.
|
|
3
|
+
exports.isMTAInstalled = isMTAInstalled;
|
|
4
|
+
exports.getEnvApiHubConfig = getEnvApiHubConfig;
|
|
5
|
+
exports.getApiHubOptions = getApiHubOptions;
|
|
4
6
|
// Legacy package, dependent on external dependencies for async operations and no 'type: module' defined in package.json
|
|
5
7
|
const hasbin = require("hasbin");
|
|
6
8
|
const cf_deploy_config_sub_generator_1 = require("@sap-ux/cf-deploy-config-sub-generator");
|
|
@@ -22,7 +24,6 @@ function isMTAInstalled(choice, projectPath) {
|
|
|
22
24
|
}
|
|
23
25
|
return true;
|
|
24
26
|
}
|
|
25
|
-
exports.isMTAInstalled = isMTAInstalled;
|
|
26
27
|
/**
|
|
27
28
|
* Get the Api Hub Enterprise Key value from the node env if available.
|
|
28
29
|
*
|
|
@@ -39,7 +40,6 @@ function getEnvApiHubConfig() {
|
|
|
39
40
|
}
|
|
40
41
|
: undefined;
|
|
41
42
|
}
|
|
42
|
-
exports.getEnvApiHubConfig = getEnvApiHubConfig;
|
|
43
43
|
/**
|
|
44
44
|
* Returns the destination name for API Hub Enterprise.
|
|
45
45
|
*
|
|
@@ -63,5 +63,4 @@ async function getApiHubOptions(memFs, { appPath, servicePath }, apiHubConfig) {
|
|
|
63
63
|
}
|
|
64
64
|
return { destinationName, servicePath };
|
|
65
65
|
}
|
|
66
|
-
exports.getApiHubOptions = getApiHubOptions;
|
|
67
66
|
//# sourceMappingURL=environment.js.map
|
package/generators/utils/i18n.js
CHANGED
|
@@ -3,7 +3,8 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
|
3
3
|
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
4
4
|
};
|
|
5
5
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6
|
-
exports.
|
|
6
|
+
exports.initI18n = initI18n;
|
|
7
|
+
exports.t = t;
|
|
7
8
|
const i18next_1 = __importDefault(require("i18next"));
|
|
8
9
|
const deploy_config_sub_generator_i18n_json_1 = __importDefault(require("../translations/deploy-config-sub-generator.i18n.json"));
|
|
9
10
|
const inquirer_common_1 = require("@sap-ux/inquirer-common");
|
|
@@ -15,7 +16,6 @@ async function initI18n() {
|
|
|
15
16
|
await i18next_1.default.init({ lng: 'en', fallbackLng: 'en' }, () => i18next_1.default.addResourceBundle('en', deployConfigSubGen, deploy_config_sub_generator_i18n_json_1.default));
|
|
16
17
|
(0, inquirer_common_1.addi18nResourceBundle)();
|
|
17
18
|
}
|
|
18
|
-
exports.initI18n = initI18n;
|
|
19
19
|
/**
|
|
20
20
|
* Helper function facading the call to i18next. Unless a namespace option is provided the local namespace will be used.
|
|
21
21
|
*
|
|
@@ -29,7 +29,6 @@ function t(key, options) {
|
|
|
29
29
|
}
|
|
30
30
|
return i18next_1.default.t(key, options);
|
|
31
31
|
}
|
|
32
|
-
exports.t = t;
|
|
33
32
|
initI18n().catch(() => {
|
|
34
33
|
// Needed for lint
|
|
35
34
|
});
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.getSupportedTargets =
|
|
3
|
+
exports.getSupportedTargets = getSupportedTargets;
|
|
4
4
|
const abap_deploy_config_sub_generator_1 = require("@sap-ux/abap-deploy-config-sub-generator");
|
|
5
5
|
const project_access_1 = require("@sap-ux/project-access");
|
|
6
6
|
const ui5_config_1 = require("@sap-ux/ui5-config");
|
|
@@ -40,5 +40,4 @@ async function getSupportedTargets(fs, projectPath, isCap = false, hasMtaConfig
|
|
|
40
40
|
return hasMtaConfig ? [constants_1.cfChoice, constants_1.abapChoice] : [constants_1.abapChoice, constants_1.cfChoice];
|
|
41
41
|
}
|
|
42
42
|
}
|
|
43
|
-
exports.getSupportedTargets = getSupportedTargets;
|
|
44
43
|
//# sourceMappingURL=targets.js.map
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@sap-ux/deploy-config-sub-generator",
|
|
3
3
|
"description": "Main generator for configuring ABAP or Cloud Foundry deployment configuration",
|
|
4
|
-
"version": "0.0.
|
|
4
|
+
"version": "0.0.18",
|
|
5
5
|
"repository": {
|
|
6
6
|
"type": "git",
|
|
7
7
|
"url": "https://github.com/SAP/open-ux-tools.git",
|
|
@@ -34,10 +34,10 @@
|
|
|
34
34
|
"@sap-ux/i18n": "0.2.3",
|
|
35
35
|
"@sap-ux/inquirer-common": "0.6.32",
|
|
36
36
|
"@sap-ux/nodejs-utils": "0.1.8",
|
|
37
|
-
"@sap-ux/odata-service-inquirer": "2.2.
|
|
37
|
+
"@sap-ux/odata-service-inquirer": "2.2.27",
|
|
38
38
|
"@sap-ux/project-access": "1.29.18",
|
|
39
|
-
"@sap-ux/
|
|
40
|
-
"@sap-ux/
|
|
39
|
+
"@sap-ux/store": "1.0.0",
|
|
40
|
+
"@sap-ux/ui5-config": "0.26.5"
|
|
41
41
|
},
|
|
42
42
|
"devDependencies": {
|
|
43
43
|
"@jest/types": "29.6.3",
|
|
@@ -54,7 +54,6 @@
|
|
|
54
54
|
"js-yaml": "4.1.0",
|
|
55
55
|
"memfs": "3.4.13",
|
|
56
56
|
"rimraf": "5.0.5",
|
|
57
|
-
"typescript": "5.3.3",
|
|
58
57
|
"unionfs": "4.4.0",
|
|
59
58
|
"yeoman-test": "6.3.0",
|
|
60
59
|
"@sap-ux/cf-deploy-config-inquirer": "0.2.22",
|