@sap-ux/cf-deploy-config-sub-generator 0.1.33 → 0.1.34
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/index.js
CHANGED
|
@@ -279,7 +279,7 @@ class default_1 extends deploy_config_generator_shared_1.DeploymentGenerator {
|
|
|
279
279
|
}
|
|
280
280
|
}
|
|
281
281
|
catch (error) {
|
|
282
|
-
(0, deploy_config_generator_shared_1.handleErrorMessage)(this.appWizard, { errorMsg: (0, utils_1.t)('cfGen.error.install', { error }) });
|
|
282
|
+
(0, deploy_config_generator_shared_1.handleErrorMessage)(this.appWizard, { errorMsg: (0, utils_1.t)('cfGen.error.install', { error: error.message }) });
|
|
283
283
|
}
|
|
284
284
|
}
|
|
285
285
|
else {
|
|
@@ -300,7 +300,8 @@ class default_1 extends deploy_config_generator_shared_1.DeploymentGenerator {
|
|
|
300
300
|
}
|
|
301
301
|
async end() {
|
|
302
302
|
try {
|
|
303
|
-
if (this.options.launchStandaloneFromYui &&
|
|
303
|
+
if ((this.options.launchStandaloneFromYui || !this.launchDeployConfigAsSubGenerator) &&
|
|
304
|
+
!this.abort &&
|
|
304
305
|
(0, fiori_generator_shared_1.isExtensionInstalled)(this.vscode, fiori_generator_shared_1.YUI_EXTENSION_ID, fiori_generator_shared_1.YUI_MIN_VER_FILES_GENERATED_MSG)) {
|
|
305
306
|
this.appWizard?.showInformation((0, utils_1.t)('cfGen.info.filesGenerated'), yeoman_ui_types_1.MessageType.notification);
|
|
306
307
|
}
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.
|
|
3
|
+
exports.getCFQuestions = getCFQuestions;
|
|
4
|
+
exports.getCAPMTAQuestions = getCAPMTAQuestions;
|
|
4
5
|
const btp_utils_1 = require("@sap-ux/btp-utils");
|
|
5
6
|
const deploy_config_generator_shared_1 = require("@sap-ux/deploy-config-generator-shared");
|
|
6
7
|
const project_access_1 = require("@sap-ux/project-access");
|
|
@@ -45,7 +46,6 @@ async function getCFQuestions({ projectRoot, isAbapDirectServiceBinding, cfDesti
|
|
|
45
46
|
deploy_config_generator_shared_1.DeploymentGenerator.logger?.debug((0, utils_2.t)('cfGen.debug.promptOptions', { options: JSON.stringify(options) }));
|
|
46
47
|
return (0, cf_deploy_config_inquirer_1.getPrompts)(options);
|
|
47
48
|
}
|
|
48
|
-
exports.getCFQuestions = getCFQuestions;
|
|
49
49
|
/**
|
|
50
50
|
* Retrieve the CF Approuter questions, certain prompts are restricted to support CAP project.
|
|
51
51
|
*
|
|
@@ -82,5 +82,4 @@ async function getCAPMTAQuestions({ projectRoot }) {
|
|
|
82
82
|
questions.unshift(...(0, deploy_config_generator_shared_1.getConfirmMtaContinuePrompt)());
|
|
83
83
|
return questions;
|
|
84
84
|
}
|
|
85
|
-
exports.getCAPMTAQuestions = getCAPMTAQuestions;
|
|
86
85
|
//# sourceMappingURL=questions.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.getCFChoices = getCFChoices;
|
|
4
|
+
exports.destinationQuestionDefaultOption = destinationQuestionDefaultOption;
|
|
5
|
+
exports.loadManifest = loadManifest;
|
|
4
6
|
const btp_utils_1 = require("@sap-ux/btp-utils");
|
|
5
7
|
const project_access_1 = require("@sap-ux/project-access");
|
|
6
8
|
const deploy_config_generator_shared_1 = require("@sap-ux/deploy-config-generator-shared");
|
|
@@ -43,7 +45,6 @@ async function getCFChoices({ projectRoot, isAbapDirectServiceBinding, cfDestina
|
|
|
43
45
|
}
|
|
44
46
|
return choices;
|
|
45
47
|
}
|
|
46
|
-
exports.getCFChoices = getCFChoices;
|
|
47
48
|
/**
|
|
48
49
|
* Generate a systems choice list.
|
|
49
50
|
*
|
|
@@ -119,7 +120,6 @@ function destinationQuestionDefaultOption(isAbapDirectServiceBinding, isBAS, cfD
|
|
|
119
120
|
}
|
|
120
121
|
return defaultDestination;
|
|
121
122
|
}
|
|
122
|
-
exports.destinationQuestionDefaultOption = destinationQuestionDefaultOption;
|
|
123
123
|
/**
|
|
124
124
|
* Load the manifest file from the project.
|
|
125
125
|
*
|
|
@@ -138,5 +138,4 @@ async function loadManifest(fs, appPath) {
|
|
|
138
138
|
}
|
|
139
139
|
return manifest;
|
|
140
140
|
}
|
|
141
|
-
exports.loadManifest = loadManifest;
|
|
142
141
|
//# sourceMappingURL=utils.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 cf_deploy_config_sub_generator_i18n_json_1 = __importDefault(require("../translations/cf-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', cfAppRouterGenNs, cf_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
|
});
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@sap-ux/cf-deploy-config-sub-generator",
|
|
3
3
|
"description": "Generators for configuring Cloud Foundry deployment configuration",
|
|
4
|
-
"version": "0.1.
|
|
4
|
+
"version": "0.1.34",
|
|
5
5
|
"repository": {
|
|
6
6
|
"type": "git",
|
|
7
7
|
"url": "https://github.com/SAP/open-ux-tools.git",
|
|
@@ -48,7 +48,6 @@
|
|
|
48
48
|
"js-yaml": "4.1.0",
|
|
49
49
|
"memfs": "3.4.13",
|
|
50
50
|
"rimraf": "5.0.5",
|
|
51
|
-
"typescript": "5.3.3",
|
|
52
51
|
"unionfs": "4.4.0",
|
|
53
52
|
"yeoman-test": "6.3.0",
|
|
54
53
|
"@sap-ux/logger": "0.6.0"
|