@sap-ux/fiori-generator-shared 0.9.11 → 0.10.1

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/dist/index.d.ts CHANGED
@@ -4,10 +4,10 @@ export * from './environment';
4
4
  export * from './system-utils';
5
5
  export * from './telemetry';
6
6
  export * from './logging/logWrapper';
7
+ export * from './types';
7
8
  export { getPackageScripts } from './npm-package-scripts/getPackageScripts';
8
9
  export { getBootstrapResourceUrls } from './ui5/ui5';
9
10
  export { getDefaultTargetFolder, isExtensionInstalled } from './vscode-helpers/vscode-helpers';
10
11
  export { generateReadMe } from './read-me';
11
12
  export { getHostEnvironment } from './environment';
12
- export { YeomanEnvironment, VSCodeInstance, hostEnvironment, HostEnvironmentId, ReadMe } from './types';
13
13
  //# sourceMappingURL=index.d.ts.map
package/dist/index.js CHANGED
@@ -14,13 +14,14 @@ var __exportStar = (this && this.__exportStar) || function(m, exports) {
14
14
  for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
15
15
  };
16
16
  Object.defineProperty(exports, "__esModule", { value: true });
17
- exports.hostEnvironment = exports.getHostEnvironment = exports.generateReadMe = exports.isExtensionInstalled = exports.getDefaultTargetFolder = exports.getBootstrapResourceUrls = exports.getPackageScripts = void 0;
17
+ exports.getHostEnvironment = exports.generateReadMe = exports.isExtensionInstalled = exports.getDefaultTargetFolder = exports.getBootstrapResourceUrls = exports.getPackageScripts = void 0;
18
18
  __exportStar(require("./cap"), exports);
19
19
  __exportStar(require("./constants"), exports);
20
20
  __exportStar(require("./environment"), exports);
21
21
  __exportStar(require("./system-utils"), exports);
22
22
  __exportStar(require("./telemetry"), exports);
23
23
  __exportStar(require("./logging/logWrapper"), exports);
24
+ __exportStar(require("./types"), exports);
24
25
  var getPackageScripts_1 = require("./npm-package-scripts/getPackageScripts");
25
26
  Object.defineProperty(exports, "getPackageScripts", { enumerable: true, get: function () { return getPackageScripts_1.getPackageScripts; } });
26
27
  var ui5_1 = require("./ui5/ui5");
@@ -32,6 +33,4 @@ var read_me_1 = require("./read-me");
32
33
  Object.defineProperty(exports, "generateReadMe", { enumerable: true, get: function () { return read_me_1.generateReadMe; } });
33
34
  var environment_1 = require("./environment");
34
35
  Object.defineProperty(exports, "getHostEnvironment", { enumerable: true, get: function () { return environment_1.getHostEnvironment; } });
35
- var types_1 = require("./types");
36
- Object.defineProperty(exports, "hostEnvironment", { enumerable: true, get: function () { return types_1.hostEnvironment; } });
37
36
  //# sourceMappingURL=index.js.map
@@ -27,9 +27,5 @@ export declare const hostEnvironment: {
27
27
  technical: HostEnvironmentId;
28
28
  };
29
29
  };
30
- export declare enum ApiHubType {
31
- apiHub = "API_HUB",
32
- apiHubEnterprise = "API_HUB_ENTERPRISE"
33
- }
34
30
  export {};
35
31
  //# sourceMappingURL=environment.d.ts.map
@@ -1,6 +1,6 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.ApiHubType = exports.hostEnvironment = void 0;
3
+ exports.hostEnvironment = void 0;
4
4
  exports.hostEnvironment = {
5
5
  vscode: {
6
6
  name: 'Visual Studio Code',
@@ -15,9 +15,4 @@ exports.hostEnvironment = {
15
15
  technical: 'CLI'
16
16
  }
17
17
  };
18
- var ApiHubType;
19
- (function (ApiHubType) {
20
- ApiHubType["apiHub"] = "API_HUB";
21
- ApiHubType["apiHubEnterprise"] = "API_HUB_ENTERPRISE";
22
- })(ApiHubType || (exports.ApiHubType = ApiHubType = {}));
23
18
  //# sourceMappingURL=environment.js.map
@@ -0,0 +1,31 @@
1
+ /**
2
+ * Shared types used by headless generation from multiple modules
3
+ */
4
+ export declare enum DeployTarget {
5
+ CF = "CF",
6
+ ABAP = "ABAP"
7
+ }
8
+ /**
9
+ * Defines the additional external inputs required for deployment configuration file generation
10
+ */
11
+ export interface DeployConfig {
12
+ readonly deployTarget: DeployTarget;
13
+ }
14
+ export interface CFDeployConfig extends DeployConfig {
15
+ readonly deployTarget: DeployTarget.CF;
16
+ readonly destinationName: string;
17
+ /**
18
+ * See {@link Authentication} for possible values
19
+ */
20
+ readonly destinationAuthType?: string;
21
+ readonly addToManagedAppRouter?: boolean;
22
+ readonly addMTADestination?: boolean;
23
+ readonly lcapModeOnly?: boolean;
24
+ readonly cloudServiceName?: string;
25
+ }
26
+ export interface FLPConfig {
27
+ readonly action?: string;
28
+ readonly title?: string;
29
+ readonly semanticObject?: string;
30
+ }
31
+ //# sourceMappingURL=headless.d.ts.map
@@ -0,0 +1,12 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.DeployTarget = void 0;
4
+ /**
5
+ * Shared types used by headless generation from multiple modules
6
+ */
7
+ var DeployTarget;
8
+ (function (DeployTarget) {
9
+ DeployTarget["CF"] = "CF";
10
+ DeployTarget["ABAP"] = "ABAP";
11
+ })(DeployTarget || (exports.DeployTarget = DeployTarget = {}));
12
+ //# sourceMappingURL=headless.js.map
@@ -1,3 +1,4 @@
1
1
  export * from './read-me';
2
2
  export * from './environment';
3
+ export * from './headless';
3
4
  //# sourceMappingURL=index.d.ts.map
@@ -16,4 +16,5 @@ var __exportStar = (this && this.__exportStar) || function(m, exports) {
16
16
  Object.defineProperty(exports, "__esModule", { value: true });
17
17
  __exportStar(require("./read-me"), exports);
18
18
  __exportStar(require("./environment"), exports);
19
+ __exportStar(require("./headless"), exports);
19
20
  //# sourceMappingURL=index.js.map
@@ -20,16 +20,16 @@ export interface ReadMe {
20
20
  appNamespace: string;
21
21
  /** The description of the application. */
22
22
  appDescription: string;
23
- /** The UI5 theme used in the application. */
24
- ui5Theme: string;
25
23
  /** The name of generator used. */
26
24
  generatorName: string;
27
25
  /** The version of the generator used. */
28
26
  generatorVersion: string;
29
- /** The ui5 version used in the application. */
30
- ui5Version: string;
31
27
  /** The floorplan template name used to generate the application. */
32
28
  template: string;
29
+ /** The ui5 version used in the application. */
30
+ ui5Version?: string;
31
+ /** The UI5 theme used in the application. */
32
+ ui5Theme?: string;
33
33
  /** The date when the generator was run. */
34
34
  generationDate?: string;
35
35
  /** The service URL of the application */
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@sap-ux/fiori-generator-shared",
3
3
  "description": "Commonly used shared functionality and types to support the fiori generator.",
4
- "version": "0.9.11",
4
+ "version": "0.10.1",
5
5
  "repository": {
6
6
  "type": "git",
7
7
  "url": "https://github.com/SAP/open-ux-tools.git",
@@ -24,9 +24,9 @@
24
24
  "mem-fs-editor": "9.4.0",
25
25
  "os-name": "4.0.1",
26
26
  "semver": "7.5.4",
27
- "@sap-ux/btp-utils": "1.0.2",
27
+ "@sap-ux/btp-utils": "1.0.3",
28
28
  "@sap-ux/project-access": "1.29.18",
29
- "@sap-ux/telemetry": "0.5.72"
29
+ "@sap-ux/telemetry": "0.5.73"
30
30
  },
31
31
  "devDependencies": {
32
32
  "@types/mem-fs-editor": "7.0.1",
@@ -12,8 +12,8 @@
12
12
  |**Module Name**<br><%= appName %>|
13
13
  |**Application Title**<br><%= appTitle %>|
14
14
  |**Namespace**<br><%= appNamespace %>|
15
- |**UI5 Theme**<br><%= ui5Theme %>|
16
- |**UI5 Version**<br><%= ui5Version %>|
15
+ |**UI5 Theme**<br><%= locals.ui5Theme ? locals.ui5Theme : '' %>|
16
+ |**UI5 Version**<br><%= locals.ui5Version ? locals.ui5Version : '' %>|
17
17
  |**Enable Code Assist Libraries**<br><% if(locals.enableCodeAssist === true) { %><%= "True" %><% } else { %><%= "False" %><% }%>|
18
18
  |**Enable TypeScript**<br><% if(locals.enableTypeScript === true) { %><%= "True" %><% } else { %><%= "False" %><% }%>|
19
19
  |**Add Eslint configuration**<br><% if(locals.enableEslint === true) { %><%= "True, see https://www.npmjs.com/package/eslint-plugin-fiori-custom for the eslint rules." %><% } else { %><%= "False" %><% }%>|<% if (locals.additionalEntries) locals.additionalEntries.forEach(entry => { %>