@sap-ux/repo-app-import-sub-generator 0.1.5 → 0.2.0
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 +1 -0
- package/generators/app/index.js +12 -5
- package/package.json +9 -9
package/generators/app/index.js
CHANGED
|
@@ -46,6 +46,7 @@ class default_1 extends yeoman_generator_1.default {
|
|
|
46
46
|
options;
|
|
47
47
|
projectPath;
|
|
48
48
|
extractedProjectPath;
|
|
49
|
+
debugOptions;
|
|
49
50
|
setPromptsCallback;
|
|
50
51
|
/**
|
|
51
52
|
* Constructor for Downloading App.
|
|
@@ -189,6 +190,7 @@ class default_1 extends yeoman_generator_1.default {
|
|
|
189
190
|
isAppStudio: (0, btp_utils_1.isAppStudio)(),
|
|
190
191
|
odataVersion: config.service.version === odata_service_inquirer_1.OdataVersion.v2 ? '2.0' : '4.0'
|
|
191
192
|
};
|
|
193
|
+
this.debugOptions = debugOptions;
|
|
192
194
|
const fioriOptions = {
|
|
193
195
|
name: config.app.id,
|
|
194
196
|
projectRoot: this.projectPath,
|
|
@@ -253,11 +255,16 @@ class default_1 extends yeoman_generator_1.default {
|
|
|
253
255
|
* the app generation process.
|
|
254
256
|
*/
|
|
255
257
|
if (this.vscode) {
|
|
256
|
-
const
|
|
257
|
-
|
|
258
|
-
|
|
259
|
-
|
|
260
|
-
|
|
258
|
+
const rootFolder = this.projectPath;
|
|
259
|
+
// Create workspace folder URI
|
|
260
|
+
const { workspaceFolderUri } = (0, launch_config_1.handleWorkspaceConfig)(rootFolder, this.debugOptions);
|
|
261
|
+
const updateWorkspaceFolders = workspaceFolderUri
|
|
262
|
+
? {
|
|
263
|
+
uri: workspaceFolderUri,
|
|
264
|
+
projectName: (0, path_1.basename)(rootFolder),
|
|
265
|
+
vscode: this.debugOptions.vscode
|
|
266
|
+
}
|
|
267
|
+
: undefined;
|
|
261
268
|
(0, launch_config_1.updateWorkspaceFoldersIfNeeded)(updateWorkspaceFolders);
|
|
262
269
|
}
|
|
263
270
|
if (this.options.data?.postGenCommand) {
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@sap-ux/repo-app-import-sub-generator",
|
|
3
3
|
"description": "Generator to download LROP Fiori applications deployed from an ABAP repository.",
|
|
4
|
-
"version": "0.
|
|
4
|
+
"version": "0.2.0",
|
|
5
5
|
"repository": {
|
|
6
6
|
"type": "git",
|
|
7
7
|
"url": "https://github.com/SAP/open-ux-tools.git",
|
|
@@ -24,22 +24,22 @@
|
|
|
24
24
|
"i18next": "23.5.1",
|
|
25
25
|
"inquirer": "8.2.6",
|
|
26
26
|
"yeoman-generator": "5.10.0",
|
|
27
|
-
"@sap-ux/feature-toggle": "0.2.3",
|
|
28
|
-
"@sap-ux/inquirer-common": "0.6.36",
|
|
29
27
|
"@sap-ux/fiori-generator-shared": "0.10.2",
|
|
28
|
+
"@sap-ux/inquirer-common": "0.6.36",
|
|
29
|
+
"@sap-ux/feature-toggle": "0.2.3",
|
|
30
30
|
"@sap-ux/project-access": "1.29.18",
|
|
31
31
|
"@sap-ux/odata-service-inquirer": "2.2.36",
|
|
32
|
-
"@sap-ux/logger": "0.6.0",
|
|
33
32
|
"@sap-ux/fiori-elements-writer": "2.1.40",
|
|
34
|
-
"@sap-ux/
|
|
35
|
-
"@sap-ux/launch-config": "0.
|
|
36
|
-
"@sap-ux/
|
|
33
|
+
"@sap-ux/logger": "0.6.0",
|
|
34
|
+
"@sap-ux/launch-config": "0.9.0",
|
|
35
|
+
"@sap-ux/abap-deploy-config-writer": "0.0.103",
|
|
37
36
|
"@sap-ux/btp-utils": "1.0.3",
|
|
37
|
+
"@sap-ux/fiori-tools-settings": "0.1.0",
|
|
38
38
|
"@sap-ux/ui5-info": "0.9.1",
|
|
39
|
-
"@sap-ux/abap-deploy-config-writer": "0.0.103",
|
|
40
39
|
"@sap-ux/axios-extension": "1.20.0",
|
|
40
|
+
"@sap-ux/store": "1.0.0",
|
|
41
41
|
"@sap-ux/guided-answers-helper": "0.2.2",
|
|
42
|
-
"@sap-ux/
|
|
42
|
+
"@sap-ux/project-input-validator": "0.5.1"
|
|
43
43
|
},
|
|
44
44
|
"devDependencies": {
|
|
45
45
|
"@jest/types": "29.6.3",
|