@sap-ux/cf-deploy-config-sub-generator 0.2.2 → 0.2.4
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.
|
@@ -5,7 +5,7 @@ import { loadManifest } from './utils';
|
|
|
5
5
|
import { getCFQuestions } from './questions';
|
|
6
6
|
import type { ApiHubConfig } from '@sap-ux/cf-deploy-config-writer';
|
|
7
7
|
import { CfDeployConfigOptions } from './types';
|
|
8
|
-
import { type CfDeployConfigQuestions, CfDeployConfigAnswers } from '@sap-ux/cf-deploy-config-inquirer';
|
|
8
|
+
import { type CfDeployConfigQuestions, type CfDeployConfigPromptOptions, CfDeployConfigAnswers } from '@sap-ux/cf-deploy-config-inquirer';
|
|
9
9
|
/**
|
|
10
10
|
* Cloud Foundry deployment configuration generator.
|
|
11
11
|
*/
|
|
@@ -87,5 +87,5 @@ export default class extends DeploymentGenerator {
|
|
|
87
87
|
}
|
|
88
88
|
export { getCFQuestions, loadManifest };
|
|
89
89
|
export { API_BUSINESS_HUB_ENTERPRISE_PREFIX, DESTINATION_AUTHTYPE_NOTFOUND };
|
|
90
|
-
export { CfDeployConfigOptions, CfDeployConfigAnswers, CfDeployConfigQuestions, ApiHubConfig, ApiHubType };
|
|
90
|
+
export { CfDeployConfigOptions, CfDeployConfigAnswers, CfDeployConfigQuestions, CfDeployConfigPromptOptions, ApiHubConfig, ApiHubType };
|
|
91
91
|
//# sourceMappingURL=index.d.ts.map
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { type CfDeployConfigQuestions } from '@sap-ux/cf-deploy-config-inquirer';
|
|
1
|
+
import { type CfDeployConfigQuestions, type CfDeployConfigPromptOptions } from '@sap-ux/cf-deploy-config-inquirer';
|
|
2
2
|
import type { ApiHubConfig } from '@sap-ux/cf-deploy-config-writer';
|
|
3
3
|
import type { Question } from 'inquirer';
|
|
4
4
|
/**
|
|
@@ -11,15 +11,17 @@ import type { Question } from 'inquirer';
|
|
|
11
11
|
* @param options.isCap - whether the project is a CAP project.
|
|
12
12
|
* @param options.addOverwrite - whether to add the overwrite prompt.
|
|
13
13
|
* @param options.apiHubConfig - the API Hub configuration.
|
|
14
|
+
* @param options.promptOptions - additional prompt options.
|
|
14
15
|
* @returns the cf deploy config questions.
|
|
15
16
|
*/
|
|
16
|
-
export declare function getCFQuestions({ projectRoot, isAbapDirectServiceBinding, cfDestination, isCap, addOverwrite, apiHubConfig }: {
|
|
17
|
+
export declare function getCFQuestions({ projectRoot, isAbapDirectServiceBinding, cfDestination, isCap, addOverwrite, apiHubConfig, promptOptions }: {
|
|
17
18
|
projectRoot: string;
|
|
18
19
|
isAbapDirectServiceBinding: boolean;
|
|
19
20
|
cfDestination: string;
|
|
20
21
|
isCap: boolean;
|
|
21
22
|
addOverwrite: boolean;
|
|
22
23
|
apiHubConfig?: ApiHubConfig;
|
|
24
|
+
promptOptions?: CfDeployConfigPromptOptions;
|
|
23
25
|
}): Promise<CfDeployConfigQuestions[]>;
|
|
24
26
|
/**
|
|
25
27
|
* Generate CF Approuter questions for CAP project with an existing HTML5 app and missing MTA configuration.
|
|
@@ -20,9 +20,10 @@ const inquirer_common_1 = require("@sap-ux/inquirer-common");
|
|
|
20
20
|
* @param options.isCap - whether the project is a CAP project.
|
|
21
21
|
* @param options.addOverwrite - whether to add the overwrite prompt.
|
|
22
22
|
* @param options.apiHubConfig - the API Hub configuration.
|
|
23
|
+
* @param options.promptOptions - additional prompt options.
|
|
23
24
|
* @returns the cf deploy config questions.
|
|
24
25
|
*/
|
|
25
|
-
async function getCFQuestions({ projectRoot, isAbapDirectServiceBinding, cfDestination, isCap, addOverwrite, apiHubConfig }) {
|
|
26
|
+
async function getCFQuestions({ projectRoot, isAbapDirectServiceBinding, cfDestination, isCap, addOverwrite, apiHubConfig, promptOptions }) {
|
|
26
27
|
const isBAS = (0, btp_utils_1.isAppStudio)();
|
|
27
28
|
const mtaYamlExists = !!(await (0, project_access_1.getMtaPath)(projectRoot));
|
|
28
29
|
const cfChoices = await (0, utils_1.getCFChoices)({
|
|
@@ -33,6 +34,7 @@ async function getCFQuestions({ projectRoot, isAbapDirectServiceBinding, cfDesti
|
|
|
33
34
|
apiHubConfigType: apiHubConfig?.apiHubType
|
|
34
35
|
});
|
|
35
36
|
const options = {
|
|
37
|
+
...promptOptions,
|
|
36
38
|
[cf_deploy_config_inquirer_1.promptNames.destinationName]: {
|
|
37
39
|
defaultValue: (0, utils_1.destinationQuestionDefaultOption)(isAbapDirectServiceBinding, isBAS, cfDestination),
|
|
38
40
|
hint: !!isAbapDirectServiceBinding,
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import type { AppWizard } from '@sap-devx/yeoman-ui-types';
|
|
2
|
-
import {
|
|
2
|
+
import type { CfDeployConfigPromptOptions, CfDeployConfigAnswers } from '@sap-ux/cf-deploy-config-inquirer';
|
|
3
3
|
import type { ApiHubConfig } from '@sap-ux/cf-deploy-config-writer';
|
|
4
4
|
import type { TelemetryData } from '@sap-ux/fiori-generator-shared';
|
|
5
5
|
export interface CfDeployConfigOptions extends CfDeployConfigAnswers {
|
|
@@ -87,5 +87,9 @@ export interface CfDeployConfigOptions extends CfDeployConfigAnswers {
|
|
|
87
87
|
* Option to invoke the getConfirmMtaContinue prompt
|
|
88
88
|
*/
|
|
89
89
|
addCapMtaContinue?: boolean;
|
|
90
|
+
/**
|
|
91
|
+
* Prompts options for the CF deploy config inquirer
|
|
92
|
+
*/
|
|
93
|
+
promptOptions?: CfDeployConfigPromptOptions;
|
|
90
94
|
}
|
|
91
95
|
//# sourceMappingURL=types.d.ts.map
|
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.2.
|
|
4
|
+
"version": "0.2.4",
|
|
5
5
|
"repository": {
|
|
6
6
|
"type": "git",
|
|
7
7
|
"url": "https://github.com/SAP/open-ux-tools.git",
|
|
@@ -24,13 +24,13 @@
|
|
|
24
24
|
"i18next": "23.5.1",
|
|
25
25
|
"yeoman-generator": "5.10.0",
|
|
26
26
|
"@sap-ux/btp-utils": "1.1.0",
|
|
27
|
-
"@sap-ux/cf-deploy-config-writer": "0.3.
|
|
28
|
-
"@sap-ux/cf-deploy-config-inquirer": "0.3.
|
|
29
|
-
"@sap-ux/deploy-config-generator-shared": "0.1.
|
|
27
|
+
"@sap-ux/cf-deploy-config-writer": "0.3.2",
|
|
28
|
+
"@sap-ux/cf-deploy-config-inquirer": "0.3.4",
|
|
29
|
+
"@sap-ux/deploy-config-generator-shared": "0.1.3",
|
|
30
30
|
"@sap-ux/feature-toggle": "0.3.0",
|
|
31
|
-
"@sap-ux/fiori-generator-shared": "0.12.
|
|
32
|
-
"@sap-ux/inquirer-common": "0.7.
|
|
33
|
-
"@sap-ux/project-access": "1.30.
|
|
31
|
+
"@sap-ux/fiori-generator-shared": "0.12.3",
|
|
32
|
+
"@sap-ux/inquirer-common": "0.7.4",
|
|
33
|
+
"@sap-ux/project-access": "1.30.2"
|
|
34
34
|
},
|
|
35
35
|
"devDependencies": {
|
|
36
36
|
"@types/hasbin": "1.2.2",
|