@sap-ux/generator-adp 0.7.28 → 0.7.29
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
|
@@ -180,9 +180,7 @@ class default_1 extends yeoman_generator_1.default {
|
|
|
180
180
|
}
|
|
181
181
|
async initializing() {
|
|
182
182
|
// Force the generator to overwrite existing files without additional prompting
|
|
183
|
-
|
|
184
|
-
this.env.conflicter.force = this.options.force ?? true;
|
|
185
|
-
}
|
|
183
|
+
(0, fiori_generator_shared_1.setYeomanEnvConflicterForce)(this.env, this.options.force);
|
|
186
184
|
await (0, i18n_1.initI18n)();
|
|
187
185
|
this.isCli = (0, fiori_generator_shared_1.isCli)();
|
|
188
186
|
this.layer = (0, layer_1.getFlexLayer)();
|
|
@@ -254,7 +252,7 @@ class default_1 extends yeoman_generator_1.default {
|
|
|
254
252
|
this.logger.info(`Project Attributes: ${JSON.stringify(this.attributeAnswers, null, 2)}`);
|
|
255
253
|
if (this.attributeAnswers.addDeployConfig) {
|
|
256
254
|
const system = await this.systemLookup.getSystemByName(this.configAnswers.system);
|
|
257
|
-
(0, subgenHelpers_1.addDeployGen)({
|
|
255
|
+
await (0, subgenHelpers_1.addDeployGen)({
|
|
258
256
|
projectName: this.attributeAnswers.projectName,
|
|
259
257
|
projectPath: this.attributeAnswers.targetFolder,
|
|
260
258
|
connectedSystem: this.configAnswers.system,
|
|
@@ -262,7 +260,7 @@ class default_1 extends yeoman_generator_1.default {
|
|
|
262
260
|
}, this.composeWith.bind(this), this.logger, this.appWizard);
|
|
263
261
|
}
|
|
264
262
|
if (this.attributeAnswers?.addFlpConfig) {
|
|
265
|
-
(0, subgenHelpers_1.addFlpGen)({
|
|
263
|
+
await (0, subgenHelpers_1.addFlpGen)({
|
|
266
264
|
vscode: this.vscode,
|
|
267
265
|
projectRootPath: this._getProjectPath(),
|
|
268
266
|
inbounds: this.prompter.baseAppInbounds,
|
|
@@ -41,7 +41,7 @@ interface DeployGenOptions {
|
|
|
41
41
|
* @param {ToolsLogger} logger - Logger instance for tracking operations and errors.
|
|
42
42
|
* @param {AppWizard} appWizard - AppWizard instance for interacting with the UI (optional).
|
|
43
43
|
*/
|
|
44
|
-
export declare function addFlpGen({ projectRootPath, vscode, inbounds, layer, prompts }: FlpGenProps, composeWith: Generator['composeWith'], logger: ToolsLogger, appWizard: AppWizard): void
|
|
44
|
+
export declare function addFlpGen({ projectRootPath, vscode, inbounds, layer, prompts }: FlpGenProps, composeWith: Generator['composeWith'], logger: ToolsLogger, appWizard: AppWizard): Promise<void>;
|
|
45
45
|
/**
|
|
46
46
|
* Composes the Fiori deploy-config sub-generator using `composeWith`. This sub-generator configures
|
|
47
47
|
* deployment for Fiori applications, such as to ABAP or Cloud Foundry environments.
|
|
@@ -55,7 +55,7 @@ export declare function addFlpGen({ projectRootPath, vscode, inbounds, layer, pr
|
|
|
55
55
|
* @param {ToolsLogger} logger - Logger for info and error output
|
|
56
56
|
* @param {AppWizard} appWizard - Optional AppWizard instance for displaying UI messages
|
|
57
57
|
*/
|
|
58
|
-
export declare function addDeployGen({ projectName, projectPath, connectedSystem, system }: DeployGenOptions, composeWith: Generator['composeWith'], logger: ToolsLogger, appWizard: AppWizard): void
|
|
58
|
+
export declare function addDeployGen({ projectName, projectPath, connectedSystem, system }: DeployGenOptions, composeWith: Generator['composeWith'], logger: ToolsLogger, appWizard: AppWizard): Promise<void>;
|
|
59
59
|
/**
|
|
60
60
|
* Composes the extension project sub-generator if the base app is unsupported.
|
|
61
61
|
*
|
|
@@ -24,12 +24,12 @@ const PACKAGE_ADDITIONAL_VALIDATION = {
|
|
|
24
24
|
* @param {ToolsLogger} logger - Logger instance for tracking operations and errors.
|
|
25
25
|
* @param {AppWizard} appWizard - AppWizard instance for interacting with the UI (optional).
|
|
26
26
|
*/
|
|
27
|
-
function addFlpGen({ projectRootPath, vscode, inbounds, layer, prompts }, composeWith, logger, appWizard) {
|
|
27
|
+
async function addFlpGen({ projectRootPath, vscode, inbounds, layer, prompts }, composeWith, logger, appWizard) {
|
|
28
28
|
try {
|
|
29
29
|
/**
|
|
30
30
|
* We are using this namespace for now because '@sap/fiori:adp-flp-config' is not yet bundled in '@sap/generator-fiori'.
|
|
31
31
|
*/
|
|
32
|
-
composeWith('@sap/fiori:adp-flp-config', {
|
|
32
|
+
await composeWith('@sap/fiori:adp-flp-config', {
|
|
33
33
|
launchAsSubGen: true,
|
|
34
34
|
vscode,
|
|
35
35
|
inbounds,
|
|
@@ -58,7 +58,7 @@ function addFlpGen({ projectRootPath, vscode, inbounds, layer, prompts }, compos
|
|
|
58
58
|
* @param {ToolsLogger} logger - Logger for info and error output
|
|
59
59
|
* @param {AppWizard} appWizard - Optional AppWizard instance for displaying UI messages
|
|
60
60
|
*/
|
|
61
|
-
function addDeployGen({ projectName, projectPath, connectedSystem, system }, composeWith, logger, appWizard) {
|
|
61
|
+
async function addDeployGen({ projectName, projectPath, connectedSystem, system }, composeWith, logger, appWizard) {
|
|
62
62
|
try {
|
|
63
63
|
const subGenPromptOptions = {
|
|
64
64
|
ui5AbapRepo: { hideIfOnPremise: true },
|
|
@@ -86,7 +86,7 @@ function addDeployGen({ projectName, projectPath, connectedSystem, system }, com
|
|
|
86
86
|
...(system?.Client && { appGenClient: system.Client }),
|
|
87
87
|
...(system?.Url && { appGenServiceHost: system.Url })
|
|
88
88
|
};
|
|
89
|
-
composeWith('@sap/fiori:deploy-config', generatorOptions);
|
|
89
|
+
await composeWith('@sap/fiori:deploy-config', generatorOptions);
|
|
90
90
|
logger.info(`'@sap/fiori:deploy-config' was called.`);
|
|
91
91
|
}
|
|
92
92
|
catch (e) {
|
|
@@ -108,7 +108,7 @@ function addDeployGen({ projectName, projectPath, connectedSystem, system }, com
|
|
|
108
108
|
async function addExtProjectGen({ configAnswers, attributeAnswers, systemLookup }, composeWith, logger, appWizard) {
|
|
109
109
|
try {
|
|
110
110
|
const data = await (0, extension_project_1.getExtensionProjectData)(configAnswers, attributeAnswers, systemLookup);
|
|
111
|
-
composeWith('@bas-dev/extensibility-sub', {
|
|
111
|
+
await composeWith('@bas-dev/extensibility-sub', {
|
|
112
112
|
arguments: [JSON.stringify(data)],
|
|
113
113
|
appWizard
|
|
114
114
|
});
|
package/package.json
CHANGED
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
"displayName": "SAPUI5 Adaptation Project",
|
|
4
4
|
"homepage": "https://help.sap.com/viewer/584e0bcbfd4a4aff91c815cefa0bce2d/Cloud/en-US/ada9567b767941aba8d49fdb4fdedea7.html",
|
|
5
5
|
"description": "Adaptation project allows you to create an app variant for an existing SAP Fiori elements-based or SAPUI5 freestyle application, without changing the original application.",
|
|
6
|
-
"version": "0.7.
|
|
6
|
+
"version": "0.7.29",
|
|
7
7
|
"repository": {
|
|
8
8
|
"type": "git",
|
|
9
9
|
"url": "https://github.com/SAP/open-ux-tools.git",
|
|
@@ -30,17 +30,17 @@
|
|
|
30
30
|
"i18next": "25.3.0",
|
|
31
31
|
"yeoman-generator": "5.10.0",
|
|
32
32
|
"uuid": "10.0.0",
|
|
33
|
-
"@sap-ux/adp-tooling": "0.18.
|
|
33
|
+
"@sap-ux/adp-tooling": "0.18.29",
|
|
34
34
|
"@sap-ux/axios-extension": "1.25.3",
|
|
35
35
|
"@sap-ux/btp-utils": "1.1.6",
|
|
36
36
|
"@sap-ux/feature-toggle": "0.3.5",
|
|
37
|
-
"@sap-ux/inquirer-common": "0.10.
|
|
37
|
+
"@sap-ux/inquirer-common": "0.10.4",
|
|
38
38
|
"@sap-ux/logger": "0.8.0",
|
|
39
39
|
"@sap-ux/project-access": "1.33.0",
|
|
40
40
|
"@sap-ux/store": "1.4.2",
|
|
41
41
|
"@sap-ux/system-access": "0.6.37",
|
|
42
42
|
"@sap-ux/project-input-validator": "0.6.40",
|
|
43
|
-
"@sap-ux/fiori-generator-shared": "0.13.
|
|
43
|
+
"@sap-ux/fiori-generator-shared": "0.13.47",
|
|
44
44
|
"@sap-ux/odata-service-writer": "0.29.2",
|
|
45
45
|
"@sap-ux/telemetry": "0.6.50"
|
|
46
46
|
},
|
|
@@ -57,7 +57,7 @@
|
|
|
57
57
|
"fs-extra": "10.0.0",
|
|
58
58
|
"rimraf": "6.0.1",
|
|
59
59
|
"yeoman-test": "6.3.0",
|
|
60
|
-
"@sap-ux/deploy-config-sub-generator": "0.5.
|
|
60
|
+
"@sap-ux/deploy-config-sub-generator": "0.5.28"
|
|
61
61
|
},
|
|
62
62
|
"engines": {
|
|
63
63
|
"node": ">=20.x"
|