@sap-ux/deploy-config-sub-generator 0.3.46 → 0.3.48
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.d.ts +4 -5
- package/generators/app/index.js +10 -5
- package/generators/app/prompting.d.ts +4 -5
- package/generators/app/prompting.js +3 -3
- package/generators/prompts/deploy-target.d.ts +1 -7
- package/generators/prompts/deploy-target.js +3 -14
- package/generators/prompts/sub-gen.d.ts +4 -5
- package/generators/prompts/sub-gen.js +9 -9
- package/generators/types/index.d.ts +6 -6
- package/generators/utils/constants.d.ts +3 -0
- package/generators/utils/constants.js +5 -1
- package/package.json +7 -7
|
@@ -1,11 +1,10 @@
|
|
|
1
1
|
import { DeploymentGenerator } from '@sap-ux/deploy-config-generator-shared';
|
|
2
|
+
import { promptNames } from '../utils';
|
|
2
3
|
import { AppWizard, Prompts } from '@sap-devx/yeoman-ui-types';
|
|
3
|
-
import { promptNames } from '../prompts/deploy-target';
|
|
4
4
|
import type { Answers } from 'inquirer';
|
|
5
|
-
import type { DeployConfigGenerator, DeployConfigOptions } from '../types';
|
|
5
|
+
import type { DeployConfigGenerator, DeployConfigOptions, DeployConfigSubGenPromptOptions } from '../types';
|
|
6
6
|
import type { FioriToolsProxyConfigBackend } from '@sap-ux/ui5-config';
|
|
7
7
|
import type { VSCodeInstance } from '@sap-ux/fiori-generator-shared';
|
|
8
|
-
import type { CommonPromptOptions } from '@sap-ux/inquirer-common';
|
|
9
8
|
import type { ApiHubConfig } from '@sap-ux/cf-deploy-config-sub-generator';
|
|
10
9
|
/**
|
|
11
10
|
* The main deployment configuration generator.
|
|
@@ -17,7 +16,7 @@ export default class extends DeploymentGenerator implements DeployConfigGenerato
|
|
|
17
16
|
readonly launchStandaloneFromYui: boolean;
|
|
18
17
|
readonly apiHubConfig: ApiHubConfig;
|
|
19
18
|
launchDeployConfigAsSubGenerator: boolean;
|
|
20
|
-
|
|
19
|
+
promptOptions?: DeployConfigSubGenPromptOptions;
|
|
21
20
|
vscode: VSCodeInstance;
|
|
22
21
|
cfDestination: string;
|
|
23
22
|
mtaPath?: string;
|
|
@@ -53,5 +52,5 @@ export default class extends DeploymentGenerator implements DeployConfigGenerato
|
|
|
53
52
|
private _composeWithSubGenerator;
|
|
54
53
|
}
|
|
55
54
|
export { promptNames };
|
|
56
|
-
export type { DeployConfigOptions };
|
|
55
|
+
export type { DeployConfigOptions, DeployConfigSubGenPromptOptions };
|
|
57
56
|
//# sourceMappingURL=index.d.ts.map
|
package/generators/app/index.js
CHANGED
|
@@ -10,10 +10,10 @@ const project_access_1 = require("@sap-ux/project-access");
|
|
|
10
10
|
const deploy_config_generator_shared_1 = require("@sap-ux/deploy-config-generator-shared");
|
|
11
11
|
const utils_1 = require("./utils");
|
|
12
12
|
const utils_2 = require("../utils");
|
|
13
|
+
Object.defineProperty(exports, "promptNames", { enumerable: true, get: function () { return utils_2.promptNames; } });
|
|
13
14
|
const yeoman_ui_types_1 = require("@sap-devx/yeoman-ui-types");
|
|
14
15
|
const prompting_1 = require("./prompting");
|
|
15
|
-
const
|
|
16
|
-
Object.defineProperty(exports, "promptNames", { enumerable: true, get: function () { return deploy_target_1.promptNames; } });
|
|
16
|
+
const deployConfigSubGenNamespace = '@sap-ux/deploy-config-sub-generator';
|
|
17
17
|
/**
|
|
18
18
|
* The main deployment configuration generator.
|
|
19
19
|
*/
|
|
@@ -24,7 +24,7 @@ class default_1 extends deploy_config_generator_shared_1.DeploymentGenerator {
|
|
|
24
24
|
launchStandaloneFromYui;
|
|
25
25
|
apiHubConfig;
|
|
26
26
|
launchDeployConfigAsSubGenerator;
|
|
27
|
-
|
|
27
|
+
promptOptions;
|
|
28
28
|
vscode;
|
|
29
29
|
cfDestination;
|
|
30
30
|
mtaPath;
|
|
@@ -45,6 +45,7 @@ class default_1 extends deploy_config_generator_shared_1.DeploymentGenerator {
|
|
|
45
45
|
this.appWizard = opts.appWizard ?? yeoman_ui_types_1.AppWizard.create(opts);
|
|
46
46
|
this.genNamespace = opts.namespace;
|
|
47
47
|
this.launchDeployConfigAsSubGenerator = opts.launchDeployConfigAsSubGenerator ?? false;
|
|
48
|
+
this.promptOptions = opts?.subGenPromptOptions;
|
|
48
49
|
this.target = (0, utils_1.parseTarget)(args, opts);
|
|
49
50
|
this.vscode = opts.vscode;
|
|
50
51
|
(0, utils_1.registerNamespaces)(this.rootGeneratorName(), this.genNamespace, this.env.isPackageRegistered.bind(this.env), this.env.lookup.bind(this.env));
|
|
@@ -84,7 +85,11 @@ class default_1 extends deploy_config_generator_shared_1.DeploymentGenerator {
|
|
|
84
85
|
*/
|
|
85
86
|
async initializing() {
|
|
86
87
|
await super.initializing();
|
|
87
|
-
|
|
88
|
+
const promptOptions = await (0, deploy_config_generator_shared_1.getExtensionGenPromptOpts)(this.env.create.bind(this.env), deployConfigSubGenNamespace, this.vscode);
|
|
89
|
+
this.promptOptions = {
|
|
90
|
+
...promptOptions,
|
|
91
|
+
...this.promptOptions
|
|
92
|
+
};
|
|
88
93
|
const capRoot = await (0, project_access_1.findCapProjectRoot)(this.options.appRootPath);
|
|
89
94
|
this.isCap = !!capRoot;
|
|
90
95
|
this.mtaPath = (await (0, project_access_1.getMtaPath)(this.options.appRootPath))?.mtaPath;
|
|
@@ -123,7 +128,7 @@ class default_1 extends deploy_config_generator_shared_1.DeploymentGenerator {
|
|
|
123
128
|
const { target, answers } = await (0, prompting_1.promptDeployConfigQuestions)(this.fs, this.options, this.prompt.bind(this), {
|
|
124
129
|
launchDeployConfigAsSubGenerator: this.launchDeployConfigAsSubGenerator,
|
|
125
130
|
launchStandaloneFromYui: this.launchStandaloneFromYui,
|
|
126
|
-
|
|
131
|
+
promptOptions: this.promptOptions,
|
|
127
132
|
supportedTargets,
|
|
128
133
|
backendConfig: this.backendConfig,
|
|
129
134
|
cfDestination: this.cfDestination,
|
|
@@ -1,7 +1,6 @@
|
|
|
1
|
-
import type { CommonPromptOptions } from '@sap-ux/inquirer-common';
|
|
2
1
|
import type { AbapDeployConfigAnswersInternal } from '@sap-ux/abap-deploy-config-sub-generator';
|
|
3
2
|
import type { ApiHubConfig, CfDeployConfigAnswers } from '@sap-ux/cf-deploy-config-sub-generator';
|
|
4
|
-
import type { Target, DeployConfigOptions } from '../types';
|
|
3
|
+
import type { Target, DeployConfigOptions, DeployConfigSubGenPromptOptions } from '../types';
|
|
5
4
|
import type { FioriToolsProxyConfigBackend } from '@sap-ux/ui5-config';
|
|
6
5
|
import type { Editor } from 'mem-fs-editor';
|
|
7
6
|
import type { GeneratorOptions } from 'yeoman-generator';
|
|
@@ -14,7 +13,7 @@ import type { GeneratorOptions } from 'yeoman-generator';
|
|
|
14
13
|
* @param promptOpts - options for prompting
|
|
15
14
|
* @param promptOpts.launchDeployConfigAsSubGenerator - whether the generator is launched as a sub generator
|
|
16
15
|
* @param promptOpts.launchStandaloneFromYui - whether the generator is launched standalone from YUI
|
|
17
|
-
* @param promptOpts.
|
|
16
|
+
* @param promptOpts.promptOptions - extension prompt options
|
|
18
17
|
* @param promptOpts.supportedTargets - supported deployment targets
|
|
19
18
|
* @param promptOpts.backendConfig - backend configuration
|
|
20
19
|
* @param promptOpts.cfDestination - CF destination
|
|
@@ -24,10 +23,10 @@ import type { GeneratorOptions } from 'yeoman-generator';
|
|
|
24
23
|
* @param targetDeployment - target deployment
|
|
25
24
|
* @returns - target deployment CF | ABAP and answers
|
|
26
25
|
*/
|
|
27
|
-
export declare function promptDeployConfigQuestions(fs: Editor, options: DeployConfigOptions, prompt: GeneratorOptions['prompt'], { launchDeployConfigAsSubGenerator, launchStandaloneFromYui,
|
|
26
|
+
export declare function promptDeployConfigQuestions(fs: Editor, options: DeployConfigOptions, prompt: GeneratorOptions['prompt'], { launchDeployConfigAsSubGenerator, launchStandaloneFromYui, promptOptions, supportedTargets, backendConfig, cfDestination, isCap, apiHubConfig, isLibrary }: {
|
|
28
27
|
launchDeployConfigAsSubGenerator: boolean;
|
|
29
28
|
launchStandaloneFromYui: boolean;
|
|
30
|
-
|
|
29
|
+
promptOptions?: DeployConfigSubGenPromptOptions;
|
|
31
30
|
supportedTargets: Target[];
|
|
32
31
|
backendConfig: FioriToolsProxyConfigBackend;
|
|
33
32
|
cfDestination: string;
|
|
@@ -11,7 +11,7 @@ const prompts_1 = require("../prompts");
|
|
|
11
11
|
* @param promptOpts - options for prompting
|
|
12
12
|
* @param promptOpts.launchDeployConfigAsSubGenerator - whether the generator is launched as a sub generator
|
|
13
13
|
* @param promptOpts.launchStandaloneFromYui - whether the generator is launched standalone from YUI
|
|
14
|
-
* @param promptOpts.
|
|
14
|
+
* @param promptOpts.promptOptions - extension prompt options
|
|
15
15
|
* @param promptOpts.supportedTargets - supported deployment targets
|
|
16
16
|
* @param promptOpts.backendConfig - backend configuration
|
|
17
17
|
* @param promptOpts.cfDestination - CF destination
|
|
@@ -21,13 +21,13 @@ const prompts_1 = require("../prompts");
|
|
|
21
21
|
* @param targetDeployment - target deployment
|
|
22
22
|
* @returns - target deployment CF | ABAP and answers
|
|
23
23
|
*/
|
|
24
|
-
async function promptDeployConfigQuestions(fs, options, prompt, { launchDeployConfigAsSubGenerator, launchStandaloneFromYui,
|
|
24
|
+
async function promptDeployConfigQuestions(fs, options, prompt, { launchDeployConfigAsSubGenerator, launchStandaloneFromYui, promptOptions, supportedTargets, backendConfig, cfDestination, isCap, apiHubConfig, isLibrary }, targetDeployment) {
|
|
25
25
|
let answers = {};
|
|
26
26
|
if (launchDeployConfigAsSubGenerator) {
|
|
27
27
|
const { questions, abapAnswers } = await (0, prompts_1.getSubGenPrompts)(fs, options, {
|
|
28
28
|
launchDeployConfigAsSubGenerator,
|
|
29
29
|
launchStandaloneFromYui,
|
|
30
|
-
|
|
30
|
+
promptOptions,
|
|
31
31
|
supportedTargets,
|
|
32
32
|
backendConfig,
|
|
33
33
|
cfDestination,
|
|
@@ -1,17 +1,11 @@
|
|
|
1
1
|
import type { Target } from '../types';
|
|
2
2
|
import type { Question } from 'inquirer';
|
|
3
|
-
import type { CommonPromptOptions } from '@sap-ux/inquirer-common';
|
|
4
|
-
export declare enum promptNames {
|
|
5
|
-
targetName = "targetName"
|
|
6
|
-
}
|
|
7
3
|
/**
|
|
8
4
|
* Returns the deployment target question.
|
|
9
5
|
*
|
|
10
6
|
* @param supportedTargets - supported targets
|
|
11
7
|
* @param projectRoot - path to the project
|
|
12
|
-
* @param extensionPromptOpts - extension prompt options
|
|
13
|
-
* @param launchStandaloneFromYui - whether the generator is launched standalone from YUI
|
|
14
8
|
* @returns - the deployment target question
|
|
15
9
|
*/
|
|
16
|
-
export declare function getDeployTargetQuestion(supportedTargets: Target[], projectRoot: string
|
|
10
|
+
export declare function getDeployTargetQuestion(supportedTargets: Target[], projectRoot: string): Question[];
|
|
17
11
|
//# sourceMappingURL=deploy-target.d.ts.map
|
|
@@ -1,27 +1,19 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.promptNames = void 0;
|
|
4
3
|
exports.getDeployTargetQuestion = getDeployTargetQuestion;
|
|
5
4
|
const utils_1 = require("../utils");
|
|
6
|
-
const inquirer_common_1 = require("@sap-ux/inquirer-common");
|
|
7
|
-
var promptNames;
|
|
8
|
-
(function (promptNames) {
|
|
9
|
-
promptNames["targetName"] = "targetName";
|
|
10
|
-
})(promptNames || (exports.promptNames = promptNames = {}));
|
|
11
5
|
/**
|
|
12
6
|
* Returns the deployment target question.
|
|
13
7
|
*
|
|
14
8
|
* @param supportedTargets - supported targets
|
|
15
9
|
* @param projectRoot - path to the project
|
|
16
|
-
* @param extensionPromptOpts - extension prompt options
|
|
17
|
-
* @param launchStandaloneFromYui - whether the generator is launched standalone from YUI
|
|
18
10
|
* @returns - the deployment target question
|
|
19
11
|
*/
|
|
20
|
-
function getDeployTargetQuestion(supportedTargets, projectRoot
|
|
21
|
-
|
|
12
|
+
function getDeployTargetQuestion(supportedTargets, projectRoot) {
|
|
13
|
+
return [
|
|
22
14
|
{
|
|
23
15
|
type: 'list',
|
|
24
|
-
name: promptNames.targetName,
|
|
16
|
+
name: utils_1.promptNames.targetName,
|
|
25
17
|
guiOptions: {
|
|
26
18
|
breadcrumb: (0, utils_1.t)('prompts.deployTarget.breadcrumb')
|
|
27
19
|
},
|
|
@@ -31,8 +23,5 @@ function getDeployTargetQuestion(supportedTargets, projectRoot, extensionPromptO
|
|
|
31
23
|
choices: supportedTargets.map((target) => ({ name: target.description, value: target.name }))
|
|
32
24
|
}
|
|
33
25
|
];
|
|
34
|
-
return extensionPromptOpts && launchStandaloneFromYui
|
|
35
|
-
? (0, inquirer_common_1.extendWithOptions)(deployTargetPrompts, extensionPromptOpts)
|
|
36
|
-
: deployTargetPrompts;
|
|
37
26
|
}
|
|
38
27
|
//# sourceMappingURL=deploy-target.js.map
|
|
@@ -2,9 +2,8 @@ import type { FioriToolsProxyConfigBackend } from '@sap-ux/ui5-config';
|
|
|
2
2
|
import type { Editor } from 'mem-fs-editor';
|
|
3
3
|
import type { ApiHubConfig } from '@sap-ux/cf-deploy-config-sub-generator';
|
|
4
4
|
import type { AbapDeployConfigAnswersInternal } from '@sap-ux/abap-deploy-config-sub-generator';
|
|
5
|
-
import type { CommonPromptOptions, PromptDefaultValue } from '@sap-ux/inquirer-common';
|
|
6
5
|
import type { Question } from 'inquirer';
|
|
7
|
-
import type { DeployConfigOptions, Target } from '../types';
|
|
6
|
+
import type { DeployConfigOptions, DeployConfigSubGenPromptOptions, Target } from '../types';
|
|
8
7
|
/**
|
|
9
8
|
* Retrieves the combined sub generator prompts.
|
|
10
9
|
*
|
|
@@ -13,7 +12,7 @@ import type { DeployConfigOptions, Target } from '../types';
|
|
|
13
12
|
* @param promptOpts - options for prompts
|
|
14
13
|
* @param promptOpts.launchDeployConfigAsSubGenerator - whether the generator is launched as a sub generator
|
|
15
14
|
* @param promptOpts.launchStandaloneFromYui - whether the generator is launched standalone from YUI
|
|
16
|
-
* @param promptOpts.
|
|
15
|
+
* @param promptOpts.promptOptions - sub gen prompt options
|
|
17
16
|
* @param promptOpts.supportedTargets - supported deployment targets
|
|
18
17
|
* @param promptOpts.backendConfig - backend configuration
|
|
19
18
|
* @param promptOpts.cfDestination - CF destination
|
|
@@ -23,10 +22,10 @@ import type { DeployConfigOptions, Target } from '../types';
|
|
|
23
22
|
* @param targetDeployment - target deployment
|
|
24
23
|
* @returns - deployment configuration answers
|
|
25
24
|
*/
|
|
26
|
-
export declare function getSubGenPrompts(fs: Editor, options: DeployConfigOptions, { launchDeployConfigAsSubGenerator, launchStandaloneFromYui,
|
|
25
|
+
export declare function getSubGenPrompts(fs: Editor, options: DeployConfigOptions, { launchDeployConfigAsSubGenerator, launchStandaloneFromYui, promptOptions, supportedTargets, backendConfig, cfDestination, isCap, apiHubConfig, isLibrary }: {
|
|
27
26
|
launchDeployConfigAsSubGenerator: boolean;
|
|
28
27
|
launchStandaloneFromYui: boolean;
|
|
29
|
-
|
|
28
|
+
promptOptions?: DeployConfigSubGenPromptOptions;
|
|
30
29
|
supportedTargets: Target[];
|
|
31
30
|
backendConfig: FioriToolsProxyConfigBackend;
|
|
32
31
|
cfDestination: string;
|
|
@@ -17,7 +17,7 @@ const deploy_target_1 = require("./deploy-target");
|
|
|
17
17
|
* @param promptOpts - options for prompts
|
|
18
18
|
* @param promptOpts.launchDeployConfigAsSubGenerator - whether the generator is launched as a sub generator
|
|
19
19
|
* @param promptOpts.launchStandaloneFromYui - whether the generator is launched standalone from YUI
|
|
20
|
-
* @param promptOpts.
|
|
20
|
+
* @param promptOpts.promptOptions - sub gen prompt options
|
|
21
21
|
* @param promptOpts.supportedTargets - supported deployment targets
|
|
22
22
|
* @param promptOpts.backendConfig - backend configuration
|
|
23
23
|
* @param promptOpts.cfDestination - CF destination
|
|
@@ -27,7 +27,7 @@ const deploy_target_1 = require("./deploy-target");
|
|
|
27
27
|
* @param targetDeployment - target deployment
|
|
28
28
|
* @returns - deployment configuration answers
|
|
29
29
|
*/
|
|
30
|
-
async function getSubGenPrompts(fs, options, { launchDeployConfigAsSubGenerator, launchStandaloneFromYui,
|
|
30
|
+
async function getSubGenPrompts(fs, options, { launchDeployConfigAsSubGenerator, launchStandaloneFromYui, promptOptions, supportedTargets, backendConfig, cfDestination, isCap, apiHubConfig, isLibrary }, targetDeployment) {
|
|
31
31
|
deploy_config_generator_shared_1.DeploymentGenerator.logger?.debug((0, utils_1.t)('debug.loadingPrompts'));
|
|
32
32
|
const configExists = fs.exists((0, path_1.join)(options.appRootPath, options.config || project_access_1.FileName.UI5DeployYaml));
|
|
33
33
|
const showOverwrite = (0, deploy_config_generator_shared_1.showOverwriteQuestion)(configExists, launchDeployConfigAsSubGenerator, launchStandaloneFromYui, options.overwrite);
|
|
@@ -67,8 +67,7 @@ async function getSubGenPrompts(fs, options, { launchDeployConfigAsSubGenerator,
|
|
|
67
67
|
supportedTargets,
|
|
68
68
|
abapPrompts,
|
|
69
69
|
cfPrompts,
|
|
70
|
-
|
|
71
|
-
launchStandaloneFromYui
|
|
70
|
+
promptOptions
|
|
72
71
|
});
|
|
73
72
|
}
|
|
74
73
|
else {
|
|
@@ -84,14 +83,15 @@ async function getSubGenPrompts(fs, options, { launchDeployConfigAsSubGenerator,
|
|
|
84
83
|
* @param opts.supportedTargets - the support deployment targets
|
|
85
84
|
* @param opts.abapPrompts - abap specific prompts
|
|
86
85
|
* @param opts.cfPrompts - cf specific prompts
|
|
87
|
-
* @param opts.
|
|
88
|
-
* @param opts.launchStandaloneFromYui - whether the generator is launched standalone from YUI
|
|
86
|
+
* @param opts.promptOptions - sub gen prompt options
|
|
89
87
|
* @returns - all the different prompts combined
|
|
90
88
|
*/
|
|
91
|
-
function combineAllPrompts(projectRoot, { supportedTargets, abapPrompts, cfPrompts,
|
|
92
|
-
const questions = (0, deploy_target_1.getDeployTargetQuestion)(supportedTargets, projectRoot
|
|
89
|
+
function combineAllPrompts(projectRoot, { supportedTargets, abapPrompts, cfPrompts, promptOptions }) {
|
|
90
|
+
const questions = (0, deploy_target_1.getDeployTargetQuestion)(supportedTargets, projectRoot);
|
|
93
91
|
questions.push(...(0, inquirer_common_1.withCondition)(abapPrompts, (answers) => answers.targetName === deploy_config_generator_shared_1.TargetName.ABAP));
|
|
94
92
|
questions.push(...(0, inquirer_common_1.withCondition)(cfPrompts, (answers) => answers.targetName === deploy_config_generator_shared_1.TargetName.CF));
|
|
95
|
-
return
|
|
93
|
+
return promptOptions
|
|
94
|
+
? (0, inquirer_common_1.extendWithOptions)(questions, promptOptions)
|
|
95
|
+
: questions;
|
|
96
96
|
}
|
|
97
97
|
//# sourceMappingURL=sub-gen.js.map
|
|
@@ -5,9 +5,13 @@ import type { ApiHubConfig } from '@sap-ux/cf-deploy-config-writer';
|
|
|
5
5
|
import type { LogWrapper, VSCodeInstance } from '@sap-ux/fiori-generator-shared';
|
|
6
6
|
import type { OdataServiceAnswers } from '@sap-ux/odata-service-inquirer';
|
|
7
7
|
import type { FioriToolsProxyConfigBackend } from '@sap-ux/ui5-config';
|
|
8
|
-
import type { CommonPromptOptions } from '@sap-ux/inquirer-common';
|
|
9
8
|
import type { AbapDeployConfigPromptOptions } from '@sap-ux/abap-deploy-config-sub-generator';
|
|
10
9
|
import type { CfDeployConfigPromptOptions } from '@sap-ux/cf-deploy-config-sub-generator';
|
|
10
|
+
import type { CommonPromptOptions } from '@sap-ux/inquirer-common';
|
|
11
|
+
import type { promptNames } from '../utils';
|
|
12
|
+
export type DeployConfigSubGenPromptOptions = {
|
|
13
|
+
[promptNames.targetName]: CommonPromptOptions;
|
|
14
|
+
} | AbapDeployConfigPromptOptions | CfDeployConfigPromptOptions;
|
|
11
15
|
export interface DeployConfigOptions extends Generator.GeneratorOptions {
|
|
12
16
|
/**
|
|
13
17
|
* The target deployment
|
|
@@ -70,7 +74,7 @@ export interface DeployConfigOptions extends Generator.GeneratorOptions {
|
|
|
70
74
|
/**
|
|
71
75
|
* Deployment configuration prompt options for sub generators
|
|
72
76
|
*/
|
|
73
|
-
subGenPromptOptions?:
|
|
77
|
+
subGenPromptOptions?: DeployConfigSubGenPromptOptions;
|
|
74
78
|
}
|
|
75
79
|
/**
|
|
76
80
|
* The deployment target (CF or ABAP)
|
|
@@ -91,10 +95,6 @@ export interface DeployConfigGenerator {
|
|
|
91
95
|
* Instance of vscode
|
|
92
96
|
*/
|
|
93
97
|
vscode: VSCodeInstance;
|
|
94
|
-
/**
|
|
95
|
-
* Options loaded from extension generators
|
|
96
|
-
*/
|
|
97
|
-
extensionPromptOpts?: Record<string, CommonPromptOptions>;
|
|
98
98
|
/**
|
|
99
99
|
* The generator namespace that will be used for calling subgens
|
|
100
100
|
*/
|
|
@@ -3,4 +3,7 @@ export declare const generatorNamespace: (bundledRootGeneratorName: string, subG
|
|
|
3
3
|
export declare const generatorTitle = "Deployment Configuration Generator";
|
|
4
4
|
export declare const abapChoice: Target;
|
|
5
5
|
export declare const cfChoice: Target;
|
|
6
|
+
export declare enum promptNames {
|
|
7
|
+
targetName = "targetName"
|
|
8
|
+
}
|
|
6
9
|
//# sourceMappingURL=constants.d.ts.map
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.cfChoice = exports.abapChoice = exports.generatorTitle = exports.generatorNamespace = void 0;
|
|
3
|
+
exports.promptNames = exports.cfChoice = exports.abapChoice = exports.generatorTitle = exports.generatorNamespace = void 0;
|
|
4
4
|
// When deployment generator is bundled the namespacing is relative to the root generator
|
|
5
5
|
const deploy_config_generator_shared_1 = require("@sap-ux/deploy-config-generator-shared");
|
|
6
6
|
const generatorNamespace = (bundledRootGeneratorName, subGenName) => `${bundledRootGeneratorName}_${subGenName}`;
|
|
@@ -8,4 +8,8 @@ exports.generatorNamespace = generatorNamespace;
|
|
|
8
8
|
exports.generatorTitle = 'Deployment Configuration Generator';
|
|
9
9
|
exports.abapChoice = { name: deploy_config_generator_shared_1.TargetName.ABAP, description: 'ABAP' };
|
|
10
10
|
exports.cfChoice = { name: deploy_config_generator_shared_1.TargetName.CF, description: 'Cloud Foundry' };
|
|
11
|
+
var promptNames;
|
|
12
|
+
(function (promptNames) {
|
|
13
|
+
promptNames["targetName"] = "targetName";
|
|
14
|
+
})(promptNames || (exports.promptNames = promptNames = {}));
|
|
11
15
|
//# sourceMappingURL=constants.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.3.
|
|
4
|
+
"version": "0.3.48",
|
|
5
5
|
"repository": {
|
|
6
6
|
"type": "git",
|
|
7
7
|
"url": "https://github.com/SAP/open-ux-tools.git",
|
|
@@ -25,12 +25,12 @@
|
|
|
25
25
|
"i18next": "25.3.0",
|
|
26
26
|
"yeoman-generator": "5.10.0",
|
|
27
27
|
"@sap-ux/btp-utils": "1.1.0",
|
|
28
|
-
"@sap-ux/cf-deploy-config-sub-generator": "0.2.
|
|
28
|
+
"@sap-ux/cf-deploy-config-sub-generator": "0.2.39",
|
|
29
|
+
"@sap-ux/abap-deploy-config-sub-generator": "0.1.44",
|
|
29
30
|
"@sap-ux/deploy-config-generator-shared": "0.1.22",
|
|
30
31
|
"@sap-ux/fiori-generator-shared": "0.13.3",
|
|
31
|
-
"@sap-ux/abap-deploy-config-sub-generator": "0.1.42",
|
|
32
32
|
"@sap-ux/inquirer-common": "0.7.27",
|
|
33
|
-
"@sap-ux/odata-service-inquirer": "2.5.
|
|
33
|
+
"@sap-ux/odata-service-inquirer": "2.5.23",
|
|
34
34
|
"@sap-ux/project-access": "1.30.7",
|
|
35
35
|
"@sap-ux/store": "1.1.2",
|
|
36
36
|
"@sap-ux/ui5-config": "0.29.0"
|
|
@@ -50,8 +50,8 @@
|
|
|
50
50
|
"rimraf": "5.0.5",
|
|
51
51
|
"unionfs": "4.4.0",
|
|
52
52
|
"yeoman-test": "6.3.0",
|
|
53
|
-
"@sap-ux/abap-deploy-config-inquirer": "1.
|
|
54
|
-
"@sap-ux/cf-deploy-config-inquirer": "0.
|
|
53
|
+
"@sap-ux/abap-deploy-config-inquirer": "1.5.1",
|
|
54
|
+
"@sap-ux/cf-deploy-config-inquirer": "0.4.0",
|
|
55
55
|
"@sap-ux/cf-deploy-config-writer": "0.3.16",
|
|
56
56
|
"@sap-ux/jest-file-matchers": "0.2.4"
|
|
57
57
|
},
|
|
@@ -64,7 +64,7 @@
|
|
|
64
64
|
"watch": "tsc --watch",
|
|
65
65
|
"lint": "eslint . --ext .ts",
|
|
66
66
|
"lint:fix": "eslint . --ext .ts --fix",
|
|
67
|
-
"test": "jest --ci --forceExit --detectOpenHandles --colors
|
|
67
|
+
"test": "jest --ci --forceExit --detectOpenHandles --colors",
|
|
68
68
|
"test-u": "jest --ci --forceExit --detectOpenHandles --colors -u",
|
|
69
69
|
"link": "pnpm link --global",
|
|
70
70
|
"unlink": "pnpm unlink --global"
|