@sap-ux/fiori-elements-writer 1.1.23 → 1.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.
@@ -2,6 +2,7 @@
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.getPackageJsonTasks = void 0;
4
4
  const i18n_1 = require("./i18n");
5
+ const fiori_generator_shared_1 = require("@sap-ux/fiori-generator-shared");
5
6
  /**
6
7
  * Get an object reflecting the scripts that need to be added to the package.json.
7
8
  *
@@ -51,6 +52,9 @@ function getPackageJsonTasks({ localOnly, addMock = true, addTest = false, sapCl
51
52
  if (addTest) {
52
53
  scripts['int-test'] = 'fiori run --config ./ui5-mock.yaml --open "test/integration/opaTests.qunit.html"';
53
54
  }
55
+ scripts['start-variants-management'] = localOnly
56
+ ? `echo \\"${(0, i18n_1.t)('info.mockOnlyWarning')}\\"`
57
+ : (0, fiori_generator_shared_1.getVariantPreviewAppScript)(sapClient);
54
58
  return scripts;
55
59
  }
56
60
  exports.getPackageJsonTasks = getPackageJsonTasks;
package/dist/types.d.ts CHANGED
@@ -106,5 +106,6 @@ export interface PackageJsonScripts {
106
106
  'start-noflp'?: string;
107
107
  'start-mock'?: string;
108
108
  'int-test'?: string;
109
+ 'start-variants-management'?: string;
109
110
  }
110
111
  //# sourceMappingURL=types.d.ts.map
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@sap-ux/fiori-elements-writer",
3
3
  "description": "SAP Fiori elements application writer",
4
- "version": "1.1.23",
4
+ "version": "1.2.0",
5
5
  "repository": {
6
6
  "type": "git",
7
7
  "url": "https://github.com/SAP/open-ux-tools.git",
@@ -27,12 +27,12 @@
27
27
  "mem-fs-editor": "9.4.0",
28
28
  "read-pkg-up": "7.0.1",
29
29
  "semver": "7.5.4",
30
- "@sap-ux/odata-service-writer": "0.22.5",
31
- "@sap-ux/ui5-application-writer": "1.1.6",
32
- "@sap-ux/fe-fpm-writer": "0.31.1",
33
- "@sap-ux/ui5-config": "0.24.1",
30
+ "@sap-ux/odata-service-writer": "0.23.0",
31
+ "@sap-ux/ui5-application-writer": "1.2.0",
32
+ "@sap-ux/fe-fpm-writer": "0.31.3",
33
+ "@sap-ux/ui5-config": "0.25.0",
34
34
  "@sap-ux/ui5-test-writer": "0.4.1",
35
- "@sap-ux/fiori-generator-shared": "0.3.21"
35
+ "@sap-ux/fiori-generator-shared": "0.4.0"
36
36
  },
37
37
  "devDependencies": {
38
38
  "@types/ejs": "3.1.2",