@sap-ux/launch-config 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.
Files changed (51) hide show
  1. package/LICENSE +201 -0
  2. package/README.md +22 -0
  3. package/dist/index.d.ts +10 -0
  4. package/dist/index.d.ts.map +1 -0
  5. package/dist/index.js +38 -0
  6. package/dist/index.js.map +1 -0
  7. package/dist/launch-config-crud/create.d.ts +12 -0
  8. package/dist/launch-config-crud/create.d.ts.map +1 -0
  9. package/dist/launch-config-crud/create.js +43 -0
  10. package/dist/launch-config-crud/create.js.map +1 -0
  11. package/dist/launch-config-crud/delete.d.ts +11 -0
  12. package/dist/launch-config-crud/delete.d.ts.map +1 -0
  13. package/dist/launch-config-crud/delete.js +30 -0
  14. package/dist/launch-config-crud/delete.js.map +1 -0
  15. package/dist/launch-config-crud/modify.d.ts +12 -0
  16. package/dist/launch-config-crud/modify.d.ts.map +1 -0
  17. package/dist/launch-config-crud/modify.js +152 -0
  18. package/dist/launch-config-crud/modify.js.map +1 -0
  19. package/dist/launch-config-crud/read.d.ts +50 -0
  20. package/dist/launch-config-crud/read.d.ts.map +1 -0
  21. package/dist/launch-config-crud/read.js +149 -0
  22. package/dist/launch-config-crud/read.js.map +1 -0
  23. package/dist/launch-config-crud/update.d.ts +14 -0
  24. package/dist/launch-config-crud/update.d.ts.map +1 -0
  25. package/dist/launch-config-crud/update.js +131 -0
  26. package/dist/launch-config-crud/update.js.map +1 -0
  27. package/dist/launch-config-crud/utils.d.ts +44 -0
  28. package/dist/launch-config-crud/utils.d.ts.map +1 -0
  29. package/dist/launch-config-crud/utils.js +235 -0
  30. package/dist/launch-config-crud/utils.js.map +1 -0
  31. package/dist/launch-config-crud/writer.d.ts +14 -0
  32. package/dist/launch-config-crud/writer.d.ts.map +1 -0
  33. package/dist/launch-config-crud/writer.js +35 -0
  34. package/dist/launch-config-crud/writer.js.map +1 -0
  35. package/dist/project-discovery/project.d.ts +14 -0
  36. package/dist/project-discovery/project.d.ts.map +1 -0
  37. package/dist/project-discovery/project.js +82 -0
  38. package/dist/project-discovery/project.js.map +1 -0
  39. package/dist/types/constants.d.ts +4 -0
  40. package/dist/types/constants.d.ts.map +1 -0
  41. package/dist/types/constants.js +7 -0
  42. package/dist/types/constants.js.map +1 -0
  43. package/dist/types/index.d.ts +3 -0
  44. package/dist/types/index.d.ts.map +1 -0
  45. package/dist/types/index.js +19 -0
  46. package/dist/types/index.js.map +1 -0
  47. package/dist/types/types.d.ts +54 -0
  48. package/dist/types/types.d.ts.map +1 -0
  49. package/dist/types/types.js +10 -0
  50. package/dist/types/types.js.map +1 -0
  51. package/package.json +48 -0
@@ -0,0 +1 @@
1
+ {"version":3,"file":"writer.js","sourceRoot":"","sources":["../../src/launch-config-crud/writer.ts"],"names":[],"mappings":";;;AAAA,mCAAiD;AACjD,iDAAuC;AAEvC,+CAAkD;AAGlD;;;;;;;;;GASG;AACI,KAAK,UAAU,gBAAgB,CAClC,OAA6C,EAC7C,QAAgB,EAChB,QAAkB,EAClB,UAA+B,EAAE,EACjC,EAAW;IAEX,IAAI,CAAC,EAAE,EAAE,CAAC;QACN,EAAE,GAAG,IAAA,sBAAM,EAAC,IAAA,eAAa,GAAE,CAAC,CAAC;IACjC,CAAC;IACD,MAAM,UAAU,GAAG,EAAE,CAAC,IAAI,CAAC,QAAQ,CAAC,CAAC;IACrC,IAAI,CAAC,OAAO,CAAC,iBAAiB,EAAE,CAAC;QAC7B,OAAO,CAAC,iBAAiB,GAAG;YACxB,OAAO,EAAE,CAAC;YACV,YAAY,EAAE,IAAI;SACrB,CAAC;IACN,CAAC;IACD,4BAA4B;IAC5B,MAAM,KAAK,GAAG,IAAA,qBAAM,EAAC,UAAU,EAAE,QAAQ,EAAE,OAAO,EAAE,OAAO,CAAC,CAAC;IAC7D,MAAM,OAAO,GAAG,IAAA,yBAAU,EAAC,UAAU,EAAE,KAAK,CAAC,CAAC;IAC9C,wBAAwB;IACxB,EAAE,CAAC,KAAK,CAAC,QAAQ,EAAE,OAAO,CAAC,CAAC;AAChC,CAAC;AAtBD,4CAsBC"}
@@ -0,0 +1,14 @@
1
+ import { type FioriOptions } from '../types';
2
+ import type { Logger } from '@sap-ux/logger';
3
+ /**
4
+ * Try to find out default values for the configuration for a given project root.
5
+ *
6
+ * @param projectRoot - root of the project, where package.json is.
7
+ * @param options - optional options.
8
+ * @param options.logger - optional, the logger instance.
9
+ * @returns default configuration options.
10
+ */
11
+ export declare function getDefaultLaunchConfigOptionsForProject(projectRoot: string, options?: {
12
+ logger?: Logger;
13
+ }): Promise<FioriOptions>;
14
+ //# sourceMappingURL=project.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"project.d.ts","sourceRoot":"","sources":["../../src/project-discovery/project.ts"],"names":[],"mappings":"AAKA,OAAO,EAAa,KAAK,YAAY,EAAE,MAAM,UAAU,CAAC;AAExD,OAAO,KAAK,EAAE,MAAM,EAAE,MAAM,gBAAgB,CAAC;AAmC7C;;;;;;;GAOG;AACH,wBAAsB,uCAAuC,CACzD,WAAW,EAAE,MAAM,EACnB,OAAO,CAAC,EAAE;IAAE,MAAM,CAAC,EAAE,MAAM,CAAA;CAAE,GAC9B,OAAO,CAAC,YAAY,CAAC,CA+BvB"}
@@ -0,0 +1,82 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.getDefaultLaunchConfigOptionsForProject = void 0;
4
+ const fs_1 = require("fs");
5
+ const path_1 = require("path");
6
+ const project_access_1 = require("@sap-ux/project-access");
7
+ const jsonc_parser_1 = require("jsonc-parser");
8
+ const types_1 = require("../types");
9
+ /**
10
+ * Find out starting HTML file for project using package.json.
11
+ *
12
+ * @param projectRoot - root of the project, where package.json is.
13
+ * @returns file to start launch configuration with.
14
+ */
15
+ async function getStartFileFromPackageFile(projectRoot) {
16
+ const pckJsonPath = (0, path_1.join)(projectRoot, project_access_1.FileName.Package);
17
+ const packageJson = (0, jsonc_parser_1.parse)(await fs_1.promises.readFile(pckJsonPath, { encoding: 'utf8' }));
18
+ const scripts = packageJson.scripts;
19
+ // default html file
20
+ let startHtmlFile = 'test/flpSandbox.html';
21
+ if (scripts) {
22
+ // parse package.json and try to find start file for fiori run command
23
+ Object.entries(scripts).forEach(([key, value]) => {
24
+ const match = value?.match(/fiori run/);
25
+ if (match && key === 'start') {
26
+ const scriptParts = value?.split(' ');
27
+ // search for --open argument
28
+ const openIndex = scriptParts?.indexOf(types_1.Arguments.Open) !== -1
29
+ ? scriptParts?.indexOf(types_1.Arguments.Open)
30
+ : scriptParts.indexOf('-o');
31
+ if (openIndex !== undefined && openIndex !== -1 && scriptParts) {
32
+ startHtmlFile = scriptParts[openIndex + 1];
33
+ }
34
+ }
35
+ });
36
+ }
37
+ // --open could be specified without a value
38
+ return (startHtmlFile ?? '').replace(/["']/g, '');
39
+ }
40
+ /**
41
+ * Try to find out default values for the configuration for a given project root.
42
+ *
43
+ * @param projectRoot - root of the project, where package.json is.
44
+ * @param options - optional options.
45
+ * @param options.logger - optional, the logger instance.
46
+ * @returns default configuration options.
47
+ */
48
+ async function getDefaultLaunchConfigOptionsForProject(projectRoot, options) {
49
+ const logger = options?.logger;
50
+ let name = '';
51
+ let ui5Version = '';
52
+ let startFile;
53
+ let backendConfigs;
54
+ let oDataVersion; // 4.0 or 2.0
55
+ const visible = true;
56
+ try {
57
+ const manifestPath = (0, path_1.join)(projectRoot, project_access_1.DirName.Webapp, project_access_1.FileName.Manifest);
58
+ const manifestContent = (0, jsonc_parser_1.parse)(await fs_1.promises.readFile(manifestPath, { encoding: 'utf8' }));
59
+ oDataVersion = manifestContent['sap.app']?.dataSources?.mainService.settings?.odataVersion;
60
+ name = `Launch Fiori app: ${(0, path_1.basename)(projectRoot)}`;
61
+ ui5Version = 'latest'; // reactivate code to find ui5 version in project-access
62
+ startFile = await getStartFileFromPackageFile(projectRoot);
63
+ const ui5YamlConfig = await (0, project_access_1.readUi5Yaml)(projectRoot, project_access_1.FileName.Ui5Yaml);
64
+ // read backend configurations from ui5.yaml
65
+ backendConfigs =
66
+ ui5YamlConfig.findCustomMiddleware('fiori-tools-proxy')?.configuration.backend;
67
+ }
68
+ catch (error) {
69
+ logger?.error(`Error while getting the default configuration for project '${projectRoot}'`);
70
+ }
71
+ return {
72
+ name,
73
+ projectRoot,
74
+ oDataVersion,
75
+ ui5Version,
76
+ startFile,
77
+ backendConfigs,
78
+ visible
79
+ };
80
+ }
81
+ exports.getDefaultLaunchConfigOptionsForProject = getDefaultLaunchConfigOptionsForProject;
82
+ //# sourceMappingURL=project.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"project.js","sourceRoot":"","sources":["../../src/project-discovery/project.ts"],"names":[],"mappings":";;;AAAA,2BAAoC;AACpC,+BAAsC;AAEtC,2DAAwE;AACxE,+CAAqC;AACrC,oCAAwD;AAIxD;;;;;GAKG;AACH,KAAK,UAAU,2BAA2B,CAAC,WAAmB;IAC1D,MAAM,WAAW,GAAG,IAAA,WAAI,EAAC,WAAW,EAAE,yBAAQ,CAAC,OAAO,CAAC,CAAC;IACxD,MAAM,WAAW,GAAG,IAAA,oBAAK,EAAC,MAAM,aAAE,CAAC,QAAQ,CAAC,WAAW,EAAE,EAAE,QAAQ,EAAE,MAAM,EAAE,CAAC,CAAY,CAAC;IAC3F,MAAM,OAAO,GAAG,WAAW,CAAC,OAAO,CAAC;IACpC,oBAAoB;IACpB,IAAI,aAAa,GAAG,sBAAsB,CAAC;IAC3C,IAAI,OAAO,EAAE,CAAC;QACV,sEAAsE;QACtE,MAAM,CAAC,OAAO,CAAC,OAAO,CAAC,CAAC,OAAO,CAAC,CAAC,CAAC,GAAG,EAAE,KAAK,CAAC,EAAE,EAAE;YAC7C,MAAM,KAAK,GAAG,KAAK,EAAE,KAAK,CAAC,WAAW,CAAC,CAAC;YACxC,IAAI,KAAK,IAAI,GAAG,KAAK,OAAO,EAAE,CAAC;gBAC3B,MAAM,WAAW,GAAG,KAAK,EAAE,KAAK,CAAC,GAAG,CAA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E,YAA4B,CAAC;QAC3G,IAAI,GAAG,qBAAqB,IAAA,eAAQ,EAAC,WAAW,CAAC,EAAE,CAAC;QACpD,UAAU,GAAG,QAAQ,CAAC,CAAC,wDAAwD;QAC/E,SAAS,GAAG,MAAM,2BAA2B,CAAC,WAAW,CAAC,CAAC;QAC3D,MAAM,aAAa,GAAG,MAAM,IAAA,4BAAW,EAAC,WAAW,EAAE,yBAAQ,CAAC,OAAO,CAAC,CAAC;QACvE,4CAA4C;QAC5C,cAAc;YACV,aAAa,CAAC,oBAAoB,CAAwB,mBAAmB,CAAC,EAAE,aAAa,CAAC,OAAO,CAAC;IAC9G,CAAC;IAAC,OAAO,KAAK,EAAE,CAAC;QACb,MAAM,EAAE,KAAK,CAAC,8DAA8D,WAAW,GAAG,CAAC,CAAC;IAChG,CAAC;IACD,OAAO;QACH,IAAI;QACJ,WAAW;QACX,YAAY;QACZ,UAAU;QACV,SAAS;QACT,cAAc;QACd,OAAO;KACV,CAAC;AACN,CAAC;AAlCD,0FAkCC"}
@@ -0,0 +1,4 @@
1
+ export declare const FIORI_TOOLS_LAUNCH_CONFIG_HANDLER_ID = "fiori_tools";
2
+ export declare const LAUNCH_JSON_FILE = "launch.json";
3
+ export declare const RUN_SCRIPT = "run-script";
4
+ //# sourceMappingURL=constants.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"constants.d.ts","sourceRoot":"","sources":["../../src/types/constants.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,oCAAoC,gBAAgB,CAAC;AAClE,eAAO,MAAM,gBAAgB,gBAAgB,CAAC;AAC9C,eAAO,MAAM,UAAU,eAAe,CAAC"}
@@ -0,0 +1,7 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.RUN_SCRIPT = exports.LAUNCH_JSON_FILE = exports.FIORI_TOOLS_LAUNCH_CONFIG_HANDLER_ID = void 0;
4
+ exports.FIORI_TOOLS_LAUNCH_CONFIG_HANDLER_ID = 'fiori_tools';
5
+ exports.LAUNCH_JSON_FILE = 'launch.json';
6
+ exports.RUN_SCRIPT = 'run-script';
7
+ //# sourceMappingURL=constants.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"constants.js","sourceRoot":"","sources":["../../src/types/constants.ts"],"names":[],"mappings":";;;AAAa,QAAA,oCAAoC,GAAG,aAAa,CAAC;AACrD,QAAA,gBAAgB,GAAG,aAAa,CAAC;AACjC,QAAA,UAAU,GAAG,YAAY,CAAC"}
@@ -0,0 +1,3 @@
1
+ export * from './types';
2
+ export * from './constants';
3
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/types/index.ts"],"names":[],"mappings":"AAAA,cAAc,SAAS,CAAC;AACxB,cAAc,aAAa,CAAC"}
@@ -0,0 +1,19 @@
1
+ "use strict";
2
+ var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
3
+ if (k2 === undefined) k2 = k;
4
+ var desc = Object.getOwnPropertyDescriptor(m, k);
5
+ if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
6
+ desc = { enumerable: true, get: function() { return m[k]; } };
7
+ }
8
+ Object.defineProperty(o, k2, desc);
9
+ }) : (function(o, m, k, k2) {
10
+ if (k2 === undefined) k2 = k;
11
+ o[k2] = m[k];
12
+ }));
13
+ var __exportStar = (this && this.__exportStar) || function(m, exports) {
14
+ for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
15
+ };
16
+ Object.defineProperty(exports, "__esModule", { value: true });
17
+ __exportStar(require("./types"), exports);
18
+ __exportStar(require("./constants"), exports);
19
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/types/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,0CAAwB;AACxB,8CAA4B"}
@@ -0,0 +1,54 @@
1
+ import type { ODataVersion } from '@sap-ux/project-access';
2
+ import type { FioriToolsProxyConfigBackend } from '@sap-ux/ui5-config';
3
+ export declare enum Arguments {
4
+ FrameworkVersion = "--framework-version",
5
+ Open = "--open",
6
+ Config = "--config"
7
+ }
8
+ export interface FioriOptions {
9
+ name: string;
10
+ projectRoot: string;
11
+ oDataVersion?: ODataVersion;
12
+ useMockData?: boolean;
13
+ ui5Version?: string;
14
+ ui5VersionUri?: string;
15
+ ui5Local?: boolean;
16
+ ui5LocalVersion?: string;
17
+ startFile?: string;
18
+ backendConfigs?: FioriToolsProxyConfigBackend[];
19
+ urlParameters?: string;
20
+ visible?: boolean;
21
+ }
22
+ export interface LaunchJSON {
23
+ version: string;
24
+ configurations: LaunchConfig[];
25
+ }
26
+ export interface LaunchConfig {
27
+ name: string;
28
+ cwd: string;
29
+ runtimeArgs: string[];
30
+ type: 'node';
31
+ request: 'launch';
32
+ runtimeExecutable: string;
33
+ args?: string[];
34
+ windows: {
35
+ runtimeExecutable: string;
36
+ args?: string[];
37
+ };
38
+ console: 'internalConsole';
39
+ internalConsoleOptions: 'openOnSessionStart';
40
+ outputCapture: 'std';
41
+ env: LaunchConfigEnv;
42
+ }
43
+ export interface LaunchConfigEnv {
44
+ 'run.config': string;
45
+ FIORI_TOOLS_UI5_VERSION?: string;
46
+ FIORI_TOOLS_UI5_URI?: string;
47
+ FIORI_TOOLS_BACKEND_CONFIG?: string;
48
+ FIORI_TOOLS_URL_PARAMS?: string;
49
+ }
50
+ export interface LaunchConfigInfo {
51
+ launchConfigs: LaunchConfig[];
52
+ filePath: string;
53
+ }
54
+ //# sourceMappingURL=types.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../src/types/types.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,wBAAwB,CAAC;AAC3D,OAAO,KAAK,EAAE,4BAA4B,EAAE,MAAM,oBAAoB,CAAC;AAEvE,o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AAC,EAAE,MAAM,CAAC;IAC7B,0BAA0B,CAAC,EAAE,MAAM,CAAC;IACpC,sBAAsB,CAAC,EAAE,MAAM,CAAC;CACnC;AAED,MAAM,WAAW,gBAAgB;IAC7B,aAAa,EAAE,YAAY,EAAE,CAAC;IAC9B,QAAQ,EAAE,MAAM,CAAC;CACpB"}
@@ -0,0 +1,10 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.Arguments = void 0;
4
+ var Arguments;
5
+ (function (Arguments) {
6
+ Arguments["FrameworkVersion"] = "--framework-version";
7
+ Arguments["Open"] = "--open";
8
+ Arguments["Config"] = "--config";
9
+ })(Arguments || (exports.Arguments = Arguments = {}));
10
+ //# sourceMappingURL=types.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"types.js","sourceRoot":"","sources":["../../src/types/types.ts"],"names":[],"mappings":";;;AAGA,IAAY,SAIX;AAJD,WAAY,SAAS;IACjB,qDAAwC,CAAA;IACxC,4BAAe,CAAA;IACf,gCAAmB,CAAA;AACvB,CAAC,EAJW,SAAS,yBAAT,SAAS,QAIpB"}
package/package.json ADDED
@@ -0,0 +1,48 @@
1
+ {
2
+ "name": "@sap-ux/launch-config",
3
+ "version": "0.2.0",
4
+ "description": "SAP Fiori tools launch config administration",
5
+ "repository": {
6
+ "type": "git",
7
+ "url": "https://github.com/SAP/open-ux-tools.git",
8
+ "directory": "packages/launch-config"
9
+ },
10
+ "bugs": {
11
+ "url": "https://github.com/SAP/open-ux-tools/issues?q=is%3Aopen+is%3Aissue+label%3Abug+label%3Alaunch-config"
12
+ },
13
+ "license": "Apache-2.0",
14
+ "private": false,
15
+ "main": "dist/index.js",
16
+ "files": [
17
+ "dist/",
18
+ "LICENSE",
19
+ "package.json"
20
+ ],
21
+ "engines": {
22
+ "node": ">=18.x"
23
+ },
24
+ "dependencies": {
25
+ "jsonc-parser": "3.2.0",
26
+ "mem-fs": "2.1.0",
27
+ "mem-fs-editor": "9.4.0",
28
+ "yargs-parser": "21.1.1",
29
+ "@sap-ux/project-access": "1.25.4",
30
+ "@sap-ux/ui5-config": "0.23.1",
31
+ "@sap-ux/ui5-info": "0.6.0"
32
+ },
33
+ "devDependencies": {
34
+ "@types/mem-fs": "1.1.2",
35
+ "@types/mem-fs-editor": "7.0.1",
36
+ "@types/yargs-parser": "21.0.3",
37
+ "@sap-ux/logger": "0.6.0"
38
+ },
39
+ "scripts": {
40
+ "build": "tsc --build",
41
+ "clean": "rimraf --glob dist coverage *.tsbuildinfo",
42
+ "format": "prettier --write '**/*.{js,json,ts,yaml,yml}' --ignore-path ../../.prettierignore",
43
+ "lint": "eslint . --ext .ts",
44
+ "lint:fix": "eslint . --ext .ts --fix",
45
+ "test": "jest --ci --forceExit --detectOpenHandles --colors",
46
+ "watch": "tsc --watch"
47
+ }
48
+ }