@sap-ux/fiori-app-sub-generator 0.0.19 → 0.0.20

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.
@@ -265,11 +265,12 @@ function getBaseAppConfig({ project, service, floorplan, entityRelatedConfig, vi
265
265
  eslint: project.enableEslint,
266
266
  typescript: project.enableTypeScript,
267
267
  sapux: project.sapux,
268
- loadReuseLibs: !service.capService,
268
+ loadReuseLibs: !service.capService && !project.enableVirtualEndpoints,
269
269
  // Striclty speaking we should not need to guard here. If a template is not supported for OPA test generation then nothing should be generated.
270
270
  addTests: canGenerateTests(template.type),
271
271
  generateIndex: generateIndexHtml,
272
- addAnnotations: entityRelatedConfig?.addFEOPAnnotations || entityRelatedConfig?.addLineItemAnnotations
272
+ addAnnotations: entityRelatedConfig?.addFEOPAnnotations || entityRelatedConfig?.addLineItemAnnotations,
273
+ useVirtualPreviewEndpoints: project.enableVirtualEndpoints
273
274
  },
274
275
  template: template
275
276
  };
@@ -13,6 +13,7 @@ export interface Project {
13
13
  namespace?: string;
14
14
  title: string;
15
15
  description: string;
16
+ enableVirtualEndpoints?: boolean;
16
17
  ui5Theme: string;
17
18
  ui5Version: string;
18
19
  ui5FrameworkUrl?: string;
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@sap-ux/fiori-app-sub-generator",
3
3
  "description": "A yeoman (sub) generator that can generate Fiori applications. Not for standalone use.",
4
- "version": "0.0.19",
4
+ "version": "0.0.20",
5
5
  "repository": {
6
6
  "type": "git",
7
7
  "url": "https://github.com/SAP/open-ux-tools.git",
@@ -29,9 +29,9 @@
29
29
  "mem-fs-editor": "9.4.0",
30
30
  "uuid": "11.0.5",
31
31
  "yeoman-generator": "5.10.0",
32
- "@sap-ux/annotation-generator": "0.3.27",
33
32
  "@sap-ux/axios-extension": "1.20.0",
34
33
  "@sap-ux/btp-utils": "1.0.3",
34
+ "@sap-ux/annotation-generator": "0.3.27",
35
35
  "@sap-ux/cap-config-writer": "0.9.28",
36
36
  "@sap-ux/feature-toggle": "0.2.3",
37
37
  "@sap-ux/fiori-elements-writer": "2.3.2",
@@ -42,9 +42,9 @@
42
42
  "@sap-ux/odata-service-inquirer": "2.3.3",
43
43
  "@sap-ux/odata-service-writer": "0.26.16",
44
44
  "@sap-ux/project-access": "1.29.21",
45
- "@sap-ux/store": "1.0.0",
46
45
  "@sap-ux/telemetry": "0.5.77",
47
- "@sap-ux/ui5-application-inquirer": "0.11.9",
46
+ "@sap-ux/store": "1.0.0",
47
+ "@sap-ux/ui5-application-inquirer": "0.12.0",
48
48
  "@sap-ux/ui5-info": "0.9.1"
49
49
  },
50
50
  "devDependencies": {