@eclipse-glsp/cli 2.3.0 → 2.4.0-next.177

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 (49) hide show
  1. package/package.json +3 -3
  2. package/lib/commands/checkout.d.ts +0 -27
  3. package/lib/commands/checkout.d.ts.map +0 -1
  4. package/lib/commands/checkout.js +0 -41
  5. package/lib/commands/checkout.js.map +0 -1
  6. package/lib/commands/repo/clone.d.ts +0 -28
  7. package/lib/commands/repo/clone.d.ts.map +0 -1
  8. package/lib/commands/repo/clone.js +0 -113
  9. package/lib/commands/repo/clone.js.map +0 -1
  10. package/lib/commands/repo/clone.spec.d.ts +0 -17
  11. package/lib/commands/repo/clone.spec.d.ts.map +0 -1
  12. package/lib/commands/repo/clone.spec.js +0 -126
  13. package/lib/commands/repo/clone.spec.js.map +0 -1
  14. package/lib/commands/repo/common.d.ts +0 -23
  15. package/lib/commands/repo/common.d.ts.map +0 -1
  16. package/lib/commands/repo/common.js +0 -18
  17. package/lib/commands/repo/common.js.map +0 -1
  18. package/lib/commands/repo/config.d.ts +0 -18
  19. package/lib/commands/repo/config.d.ts.map +0 -1
  20. package/lib/commands/repo/config.js +0 -28
  21. package/lib/commands/repo/config.js.map +0 -1
  22. package/lib/commands/repo/repo.d.ts +0 -17
  23. package/lib/commands/repo/repo.d.ts.map +0 -1
  24. package/lib/commands/repo/repo.js +0 -25
  25. package/lib/commands/repo/repo.js.map +0 -1
  26. package/lib/common/glsp-component.d.ts +0 -27
  27. package/lib/common/glsp-component.d.ts.map +0 -1
  28. package/lib/common/glsp-component.js +0 -13
  29. package/lib/common/glsp-component.js.map +0 -1
  30. package/lib/common/glsp-repo.d.ts +0 -44
  31. package/lib/common/glsp-repo.d.ts.map +0 -1
  32. package/lib/common/glsp-repo.js +0 -135
  33. package/lib/common/glsp-repo.js.map +0 -1
  34. package/lib/common/glsp-repo.spec.d.ts +0 -17
  35. package/lib/common/glsp-repo.spec.d.ts.map +0 -1
  36. package/lib/common/glsp-repo.spec.js +0 -130
  37. package/lib/common/glsp-repo.spec.js.map +0 -1
  38. package/lib/foo.spec.d.ts +0 -17
  39. package/lib/foo.spec.d.ts.map +0 -1
  40. package/lib/foo.spec.js +0 -23
  41. package/lib/foo.spec.js.map +0 -1
  42. package/lib/index.d.ts +0 -18
  43. package/lib/index.d.ts.map +0 -1
  44. package/lib/index.js +0 -18
  45. package/lib/index.js.map +0 -1
  46. package/lib/util/test-util.spec.d.ts +0 -2
  47. package/lib/util/test-util.spec.d.ts.map +0 -1
  48. package/lib/util/test-util.spec.js +0 -44
  49. package/lib/util/test-util.spec.js.map +0 -1
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@eclipse-glsp/cli",
3
- "version": "2.3.0",
3
+ "version": "2.4.0-next.177+2ae2c2f",
4
4
  "description": "CLI Tooling & scripts for GLSP components",
5
5
  "keywords": [
6
6
  "eclipse",
@@ -50,7 +50,7 @@
50
50
  "shelljs": "^0.8.5"
51
51
  },
52
52
  "devDependencies": {
53
- "@eclipse-glsp/config": "2.3.0",
53
+ "@eclipse-glsp/config": "2.4.0-next.177+2ae2c2f",
54
54
  "@types/glob": "^8.1.0",
55
55
  "@types/node-fetch": "^2.6.6",
56
56
  "@types/readline-sync": "^1.4.5",
@@ -60,5 +60,5 @@
60
60
  "publishConfig": {
61
61
  "access": "public"
62
62
  },
63
- "gitHead": "e431246446f7b2a97b8737655fd1ae79869e64ff"
63
+ "gitHead": "2ae2c2f0e27e1ffedd1a53a6331b0c7279bfb13b"
64
64
  }
@@ -1,27 +0,0 @@
1
- import { GlspComponent } from '../common/glsp-component';
2
- export interface CheckoutOptions {
3
- }
4
- export interface ComponentConfig {
5
- repo?: string;
6
- directory?: string;
7
- }
8
- export declare const LinkType: {
9
- readonly NONE: "none";
10
- readonly YARN_LINK: "yarnLink";
11
- readonly RESOLUTIONS: "resolutions";
12
- };
13
- export type LinkType = (typeof LinkType)[keyof Omit<typeof LinkType, 'parse'>];
14
- export interface SetupConfig extends Partial<SetupCmdOptions> {
15
- config: Record<GlspComponent, ComponentConfig>;
16
- }
17
- export interface SetupCmdOptions {
18
- config: Record<GlspComponent, ComponentConfig>;
19
- baseDir: string;
20
- force: boolean;
21
- linkType: LinkType;
22
- build: boolean;
23
- verbose: boolean;
24
- }
25
- export declare const SetupCommand: import("commander").Command;
26
- export declare function setupComponents(options: SetupCmdOptions): void;
27
- //# sourceMappingURL=checkout.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"checkout.d.ts","sourceRoot":"","sources":["../../src/commands/checkout.ts"],"names":[],"mappings":"AAgBA,OAAO,EAAE,aAAa,EAAE,MAAM,0BAA0B,CAAC;AAIzD,MAAM,WAAW,eAAe;CAAG;AAEnC,MAAM,WAAW,eAAe;IAC5B,IAAI,CAAC,EAAE,MAAM,CAAC;IACd,SAAS,CAAC,EAAE,MAAM,CAAC;CACtB;AAED,eAAO,MAAM,QAAQ;;;;CAIX,CAAC;AACX,MAAM,MAAM,QAAQ,GAAG,CAAC,OAAO,QAAQ,CAAC,CAAC,MAAM,IAAI,CAAC,OAAO,QAAQ,EAAE,OAAO,CAAC,CAAC,CAAC;AAE/E,MAAM,WAAW,WAAY,SAAQ,OAAO,CAAC,eAAe,CAAC;IACzD,MAAM,EAAE,MAAM,CAAC,aAAa,EAAE,eAAe,CAAC,CAAC;CAClD;AAED,MAAM,WAAW,eAAe;IAC5B,MAAM,EAAE,MAAM,CAAC,aAAa,EAAE,eAAe,CAAC,CAAC;IAC/C,OAAO,EAAE,MAAM,CAAC;IAChB,KAAK,EAAE,OAAO,CAAC;IACf,QAAQ,EAAE,QAAQ,CAAC;IACnB,KAAK,EAAE,OAAO,CAAC;IACf,OAAO,EAAE,OAAO,CAAC;CACpB;AAED,eAAO,MAAM,YAAY,6BASG,CAAC;AAE7B,wBAAgB,eAAe,CAAC,OAAO,EAAE,eAAe,GAAG,IAAI,CAE9D"}
@@ -1,41 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.SetupCommand = exports.LinkType = void 0;
4
- exports.setupComponents = setupComponents;
5
- /********************************************************************************
6
- * Copyright (c) 2024 EclipseSource and others.
7
- *
8
- * This program and the accompanying materials are made available under the
9
- * terms of the Eclipse Public License v. 2.0 which is available at
10
- * http://www.eclipse.org/legal/epl-2.0.
11
- *
12
- * This Source Code may also be made available under the following Secondary
13
- * Licenses when the conditions for such availability set forth in the Eclipse
14
- * Public License v. 2.0 are satisfied: GNU General Public License, version 2
15
- * with the GNU Classpath Exception which is available at
16
- * https://www.gnu.org/software/classpath/license.html.
17
- *
18
- * SPDX-License-Identifier: EPL-2.0 OR GPL-2.0 WITH Classpath-exception-2.0
19
- ********************************************************************************/
20
- const commander_1 = require("commander");
21
- const command_util_1 = require("../util/command-util");
22
- const validation_util_1 = require("../util/validation-util");
23
- exports.LinkType = {
24
- NONE: 'none',
25
- YARN_LINK: 'yarnLink',
26
- RESOLUTIONS: 'resolutions'
27
- };
28
- exports.SetupCommand = (0, command_util_1.baseCommand)() //
29
- .name('setup')
30
- .description('Setup GLSP components (repositories)')
31
- .option('-d, --baseDir <baseDir>', 'The base directory to setup the components in', validation_util_1.validateDirectory, process.cwd())
32
- .option('-c, --config', 'Name of the built-in configuration or path to the setup configuration file')
33
- .option('-f, --force', 'Enable force mode', false)
34
- .addOption(new commander_1.Option('-l, --linkType <linkType>', 'The link type to use').default(exports.LinkType.NONE).choices(Object.values(exports.LinkType)))
35
- .option('-b, --build', 'Build the components after setup', true)
36
- .option('-v, --verbose', 'Enable verbose mode', false)
37
- .action(setupComponents);
38
- function setupComponents(options) {
39
- console.log('Setting up components...', options);
40
- }
41
- //# sourceMappingURL=checkout.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"checkout.js","sourceRoot":"","sources":["../../src/commands/checkout.ts"],"names":[],"mappings":";;;AA0DA,0CAEC;AA5DD;;;;;;;;;;;;;;kFAckF;AAClF,yCAAmC;AAEnC,uDAAmD;AACnD,6DAA4D;AAS/C,QAAA,QAAQ,GAAG;IACpB,IAAI,EAAE,MAAM;IACZ,SAAS,EAAE,UAAU;IACrB,WAAW,EAAE,aAAa;CACpB,CAAC;AAgBE,QAAA,YAAY,GAAG,IAAA,0BAAW,GAAE,CAAC,EAAE;KACvC,IAAI,CAAC,OAAO,CAAC;KACb,WAAW,CAAC,sCAAsC,CAAC;KACnD,MAAM,CAAC,yBAAyB,EAAE,+CAA+C,EAAE,mCAAiB,EAAE,OAAO,CAAC,GAAG,EAAE,CAAC;KACpH,MAAM,CAAC,cAAc,EAAE,4EAA4E,CAAC;KACpG,MAAM,CAAC,aAAa,EAAE,mBAAmB,EAAE,KAAK,CAAC;KACjD,SAAS,CAAC,IAAI,kBAAM,CAAC,2BAA2B,EAAE,sBAAsB,CAAC,CAAC,OAAO,CAAC,gBAAQ,CAAC,IAAI,CAAC,CAAC,OAAO,CAAC,MAAM,CAAC,MAAM,CAAC,gBAAQ,CAAC,CAAC,CAAC;KAClI,MAAM,CAAC,aAAa,EAAE,kCAAkC,EAAE,IAAI,CAAC;KAC/D,MAAM,CAAC,eAAe,EAAE,qBAAqB,EAAE,KAAK,CAAC;KACrD,MAAM,CAAC,eAAe,CAAC,CAAC;AAE7B,SAAgB,eAAe,CAAC,OAAwB;IACpD,OAAO,CAAC,GAAG,CAAC,0BAA0B,EAAE,OAAO,CAAC,CAAC;AACrD,CAAC"}
@@ -1,28 +0,0 @@
1
- /********************************************************************************
2
- * Copyright (c) 2024 EclipseSource and others.
3
- *
4
- * This program and the accompanying materials are made available under the
5
- * terms of the Eclipse Public License v. 2.0 which is available at
6
- * http://www.eclipse.org/legal/epl-2.0.
7
- *
8
- * This Source Code may also be made available under the following Secondary
9
- * Licenses when the conditions for such availability set forth in the Eclipse
10
- * Public License v. 2.0 are satisfied: GNU General Public License, version 2
11
- * with the GNU Classpath Exception which is available at
12
- * https://www.gnu.org/software/classpath/license.html.
13
- *
14
- * SPDX-License-Identifier: EPL-2.0 OR GPL-2.0 WITH Classpath-exception-2.0
15
- ********************************************************************************/
16
- import { LinkType, RepoConfig } from '../../common/glsp-repo';
17
- export interface CloneCmdOptions {
18
- config?: string;
19
- baseDir: string;
20
- force: boolean;
21
- build: boolean;
22
- linkType: LinkType;
23
- verbose: boolean;
24
- }
25
- export declare const CloneCommand: import("commander").Command;
26
- export declare function cloneRepos(options: CloneCmdOptions): Promise<void>;
27
- export declare function parseRepoConfig(options: CloneCmdOptions): Promise<RepoConfig>;
28
- //# sourceMappingURL=clone.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"clone.d.ts","sourceRoot":"","sources":["../../../src/commands/repo/clone.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;kFAckF;AAIlF,OAAO,EAAoC,QAAQ,EAAE,UAAU,EAAsB,MAAM,wBAAwB,CAAC;AAGpH,MAAM,WAAW,eAAe;IAC5B,MAAM,CAAC,EAAE,MAAM,CAAC;IAChB,OAAO,EAAE,MAAM,CAAC;IAChB,KAAK,EAAE,OAAO,CAAC;IACf,KAAK,EAAE,OAAO,CAAC;IACf,QAAQ,EAAE,QAAQ,CAAC;IACnB,OAAO,EAAE,OAAO,CAAC;CACpB;AAED,eAAO,MAAM,YAAY,6BAWF,CAAC;AAExB,wBAAsB,UAAU,CAAC,OAAO,EAAE,eAAe,GAAG,OAAO,CAAC,IAAI,CAAC,CAIxE;AAED,wBAAsB,eAAe,CAAC,OAAO,EAAE,eAAe,GAAG,OAAO,CAAC,UAAU,CAAC,CAoDnF"}
@@ -1,113 +0,0 @@
1
- "use strict";
2
- /********************************************************************************
3
- * Copyright (c) 2024 EclipseSource and others.
4
- *
5
- * This program and the accompanying materials are made available under the
6
- * terms of the Eclipse Public License v. 2.0 which is available at
7
- * http://www.eclipse.org/legal/epl-2.0.
8
- *
9
- * This Source Code may also be made available under the following Secondary
10
- * Licenses when the conditions for such availability set forth in the Eclipse
11
- * Public License v. 2.0 are satisfied: GNU General Public License, version 2
12
- * with the GNU Classpath Exception which is available at
13
- * https://www.gnu.org/software/classpath/license.html.
14
- *
15
- * SPDX-License-Identifier: EPL-2.0 OR GPL-2.0 WITH Classpath-exception-2.0
16
- ********************************************************************************/
17
- var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
18
- if (k2 === undefined) k2 = k;
19
- var desc = Object.getOwnPropertyDescriptor(m, k);
20
- if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
21
- desc = { enumerable: true, get: function() { return m[k]; } };
22
- }
23
- Object.defineProperty(o, k2, desc);
24
- }) : (function(o, m, k, k2) {
25
- if (k2 === undefined) k2 = k;
26
- o[k2] = m[k];
27
- }));
28
- var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
29
- Object.defineProperty(o, "default", { enumerable: true, value: v });
30
- }) : function(o, v) {
31
- o["default"] = v;
32
- });
33
- var __importStar = (this && this.__importStar) || function (mod) {
34
- if (mod && mod.__esModule) return mod;
35
- var result = {};
36
- if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);
37
- __setModuleDefault(result, mod);
38
- return result;
39
- };
40
- Object.defineProperty(exports, "__esModule", { value: true });
41
- exports.CloneCommand = void 0;
42
- exports.cloneRepos = cloneRepos;
43
- exports.parseRepoConfig = parseRepoConfig;
44
- const commander_1 = require("commander");
45
- const fs = __importStar(require("fs"));
46
- const glsp_repo_1 = require("../../common/glsp-repo");
47
- const command_util_1 = require("../../util/command-util");
48
- const validation_util_1 = require("../../util/validation-util");
49
- exports.CloneCommand = (0, command_util_1.baseCommand)() //
50
- .name('clone')
51
- .description('Clone GLSP repositories')
52
- .option('-c, --config <config>', 'Optional path to a repo configuration file that should be used.', validation_util_1.validateFile)
53
- .option('-d, --baseDir <baseDir>', 'The base directory to clone the components in', validation_util_1.validateDirectory, process.cwd())
54
- .option('-f, --force', 'Enable force mode', false)
55
- .option('-b, --build', 'Build the components after setup', false)
56
- .addOption(new commander_1.Option('-l, --linkType <linkType>', 'The link type to use').default('none').choices(glsp_repo_1.LinkType).argParser(validation_util_1.validateLinkType))
57
- .option('-v, --verbose', 'Enable verbose mode', false)
58
- .action(cloneRepos);
59
- async function cloneRepos(options) {
60
- console.log('Cloning repositories...', options);
61
- const repoConfig = await parseRepoConfig(options);
62
- console.log('Resolved repo config:', repoConfig);
63
- }
64
- async function parseRepoConfig(options) {
65
- var _a, _b, _c;
66
- let configFile = options.config;
67
- if (!configFile) {
68
- const findUp = await import('find-up');
69
- configFile = await findUp.findUp(['.reporc', '.reporc.json', '.reporc.js'], { cwd: options.baseDir });
70
- }
71
- if (!configFile) {
72
- throw new commander_1.CommanderError(1, 'invalidConfig', 'No `reporc` file found in the upwards hierarchy of the base directory.\n' +
73
- 'Please add a valid `reporc` file or specify the configuration using the `-c | --config` option.');
74
- }
75
- let repoConfig;
76
- if (configFile.endsWith('.js')) {
77
- repoConfig = require(configFile);
78
- }
79
- else {
80
- try {
81
- repoConfig = JSON.parse(fs.readFileSync(configFile, 'utf8'));
82
- }
83
- catch (err) {
84
- const cmdError = new commander_1.CommanderError(1, 'invalidConfig', 'The content of the configuration file is not valid JSON');
85
- if (err instanceof Error) {
86
- cmdError.nestedError = err.name;
87
- }
88
- throw cmdError;
89
- }
90
- }
91
- const validationErrors = (0, glsp_repo_1.validateRepoConfig)(repoConfig);
92
- if (validationErrors.length > 0) {
93
- throw new commander_1.CommanderError(1, 'invalidConfig', 'The configuration file contains validation errors:\n' + validationErrors.join('\n'));
94
- }
95
- const resolvedConfig = {
96
- baseDir: (_a = repoConfig.baseDir) !== null && _a !== void 0 ? _a : options.baseDir,
97
- force: (_b = repoConfig.force) !== null && _b !== void 0 ? _b : options.force,
98
- build: (_c = repoConfig.build) !== null && _c !== void 0 ? _c : options.build,
99
- linkType: options.linkType
100
- };
101
- glsp_repo_1.GlspRepoType.forEach(repoType => {
102
- if (repoType in repoConfig) {
103
- if (typeof repoConfig[repoType] === 'boolean') {
104
- resolvedConfig[repoType] = repoConfig[repoType] ? glsp_repo_1.GLSP_REPO_DEFAULTS[repoType] : false;
105
- }
106
- else {
107
- resolvedConfig[repoType] = { ...glsp_repo_1.GLSP_REPO_DEFAULTS[repoType], ...repoConfig[repoType] };
108
- }
109
- }
110
- });
111
- return resolvedConfig;
112
- }
113
- //# sourceMappingURL=clone.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"clone.js","sourceRoot":"","sources":["../../../src/commands/repo/clone.ts"],"names":[],"mappings":";AAAA;;;;;;;;;;;;;;kFAckF;;;;;;;;;;;;;;;;;;;;;;;;;;AA6BlF,gCAIC;AAED,0CAoDC;AArFD,yCAAmD;AACnD,uCAAyB;AACzB,sDAAoH;AACpH,0DAAsD;AACtD,gEAA+F;AAUlF,QAAA,YAAY,GAAG,IAAA,0BAAW,GAAE,CAAC,EAAE;KACvC,IAAI,CAAC,OAAO,CAAC;KACb,WAAW,CAAC,yBAAyB,CAAC;KACtC,MAAM,CAAC,uBAAuB,EAAE,iEAAiE,EAAE,8BAAY,CAAC;KAChH,MAAM,CAAC,yBAAyB,EAAE,+CAA+C,EAAE,mCAAiB,EAAE,OAAO,CAAC,GAAG,EAAE,CAAC;KACpH,MAAM,CAAC,aAAa,EAAE,mBAAmB,EAAE,KAAK,CAAC;KACjD,MAAM,CAAC,aAAa,EAAE,kCAAkC,EAAE,KAAK,CAAC;KAChE,SAAS,CACN,IAAI,kBAAM,CAAC,2BAA2B,EAAE,sBAAsB,CAAC,CAAC,OAAO,CAAC,MAAM,CAAC,CAAC,OAAO,CAAC,oBAAQ,CAAC,CAAC,SAAS,CAAC,kCAAgB,CAAC,CAChI;KACA,MAAM,CAAC,eAAe,EAAE,qBAAqB,EAAE,KAAK,CAAC;KACrD,MAAM,CAAC,UAAU,CAAC,CAAC;AAEjB,KAAK,UAAU,UAAU,CAAC,OAAwB;IACrD,OAAO,CAAC,GAAG,CAAC,yBAAyB,EAAE,OAAO,CAAC,CAAC;IAChD,MAAM,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ACxD,IAAI,gBAAgB,CAAC,MAAM,GAAG,CAAC,EAAE,CAAC;QAC9B,MAAM,IAAI,0BAAc,CAAC,CAAC,EAAE,eAAe,EAAE,sDAAsD,GAAG,gBAAgB,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC,CAAC;IACvI,CAAC;IAED,MAAM,cAAc,GAAe;QAC/B,OAAO,EAAE,MAAA,UAAU,CAAC,OAAO,mCAAI,OAAO,CAAC,OAAO;QAC9C,KAAK,EAAE,MAAA,UAAU,CAAC,KAAK,mCAAI,OAAO,CAAC,KAAK;QACxC,KAAK,EAAE,MAAA,UAAU,CAAC,KAAK,mCAAI,OAAO,CAAC,KAAK;QACxC,QAAQ,EAAE,OAAO,CAAC,QAAQ;KAC7B,CAAC;IAEF,wBAAY,CAAC,OAAO,CAAC,QAAQ,CAAC,EAAE;QAC5B,IAAI,QAAQ,IAAI,UAAU,EAAE,CAAC;YACzB,IAAI,OAAO,UAAU,CAAC,QAAQ,CAAC,KAAK,SAAS,EAAE,CAAC;gBAC5C,cAAc,CAAC,QAAQ,CAAC,GAAG,UAAU,CAAC,QAAQ,CAAC,CAAC,CAAC,CAAC,8BAAkB,CAAC,QAAQ,CAAC,CAAC,CAAC,CAAC,KAAK,CAAC;YAC3F,CAAC;iBAAM,CAAC;gBACJ,cAAc,CAAC,QAAQ,CAAC,GAAG,EAAE,GAAG,8BAAkB,CAAC,QAAQ,CAAC,EAAE,GAAG,UAAU,CAAC,QAAQ,CAAC,EAAE,CAAC;YAC5F,CAAC;QACL,CAAC;IACL,CAAC,CAAC,CAAC;IAEH,OAAO,cAAc,CAAC;AAC1B,CAAC"}
@@ -1,17 +0,0 @@
1
- /********************************************************************************
2
- * Copyright (c) 2024 EclipseSource and others.
3
- *
4
- * This program and the accompanying materials are made available under the
5
- * terms of the Eclipse Public License v. 2.0 which is available at
6
- * http://www.eclipse.org/legal/epl-2.0.
7
- *
8
- * This Source Code may also be made available under the following Secondary
9
- * Licenses when the conditions for such availability set forth in the Eclipse
10
- * Public License v. 2.0 are satisfied: GNU General Public License, version 2
11
- * with the GNU Classpath Exception which is available at
12
- * https://www.gnu.org/software/classpath/license.html.
13
- *
14
- * SPDX-License-Identifier: EPL-2.0 OR GPL-2.0 WITH Classpath-exception-2.0
15
- ********************************************************************************/
16
- export {};
17
- //# sourceMappingURL=clone.spec.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"clone.spec.d.ts","sourceRoot":"","sources":["../../../src/commands/repo/clone.spec.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;kFAckF"}
@@ -1,126 +0,0 @@
1
- "use strict";
2
- /********************************************************************************
3
- * Copyright (c) 2024 EclipseSource and others.
4
- *
5
- * This program and the accompanying materials are made available under the
6
- * terms of the Eclipse Public License v. 2.0 which is available at
7
- * http://www.eclipse.org/legal/epl-2.0.
8
- *
9
- * This Source Code may also be made available under the following Secondary
10
- * Licenses when the conditions for such availability set forth in the Eclipse
11
- * Public License v. 2.0 are satisfied: GNU General Public License, version 2
12
- * with the GNU Classpath Exception which is available at
13
- * https://www.gnu.org/software/classpath/license.html.
14
- *
15
- * SPDX-License-Identifier: EPL-2.0 OR GPL-2.0 WITH Classpath-exception-2.0
16
- ********************************************************************************/
17
- /* eslint-disable @typescript-eslint/no-empty-function */
18
- var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
19
- if (k2 === undefined) k2 = k;
20
- var desc = Object.getOwnPropertyDescriptor(m, k);
21
- if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
22
- desc = { enumerable: true, get: function() { return m[k]; } };
23
- }
24
- Object.defineProperty(o, k2, desc);
25
- }) : (function(o, m, k, k2) {
26
- if (k2 === undefined) k2 = k;
27
- o[k2] = m[k];
28
- }));
29
- var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
30
- Object.defineProperty(o, "default", { enumerable: true, value: v });
31
- }) : function(o, v) {
32
- o["default"] = v;
33
- });
34
- var __importStar = (this && this.__importStar) || function (mod) {
35
- if (mod && mod.__esModule) return mod;
36
- var result = {};
37
- if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);
38
- __setModuleDefault(result, mod);
39
- return result;
40
- };
41
- Object.defineProperty(exports, "__esModule", { value: true });
42
- const chai_1 = require("chai");
43
- const path = __importStar(require("path"));
44
- const sinon = __importStar(require("sinon"));
45
- const test_util_spec_1 = require("../../util/test-util.spec");
46
- const clone_1 = require("./clone");
47
- const REPORC_FILE = path.resolve(test_util_spec_1.TEST_RESOURCE_PATH, '.reporc.js');
48
- describe('clone command', () => {
49
- const sandbox = sinon.createSandbox();
50
- beforeEach(() => {
51
- sandbox.reset();
52
- });
53
- describe('parse', () => {
54
- const cmd = clone_1.CloneCommand;
55
- const cloneSpy = sandbox.spy(sandbox.stub(clone_1.cloneRepos));
56
- const exitOverride = (error) => {
57
- throw error;
58
- };
59
- before(() => {
60
- cmd.action(cloneSpy);
61
- const outoutConfig = cmd.configureOutput();
62
- outoutConfig.writeErr = () => { };
63
- outoutConfig.writeOut = () => { };
64
- cmd.exitOverride(exitOverride);
65
- });
66
- after(() => {
67
- cmd.action(clone_1.cloneRepos);
68
- cmd.configureOutput().writeErr = undefined;
69
- cmd.configureOutput().writeOut = undefined;
70
- cmd.exitOverride(undefined);
71
- });
72
- it('with no args. Parsed options should be augmented with default values', () => {
73
- cmd.parse(['', '']);
74
- (0, chai_1.expect)(cloneSpy.calledOnce).to.be.true;
75
- (0, chai_1.expect)(cloneSpy.firstCall.args[0]).to.deep.equal({
76
- baseDir: process.cwd(),
77
- force: false,
78
- build: false,
79
- linkType: 'none',
80
- verbose: false
81
- });
82
- });
83
- it('with all possible valid short args. Args should correctly reflect in parsed options', () => {
84
- const expectedBaseDir = path.resolve(__dirname, '..');
85
- cmd.parse(['', '', '-c', REPORC_FILE, '-d', expectedBaseDir, '-f', '-b', '-l', 'yarnLink', '-v']);
86
- (0, chai_1.expect)(cloneSpy.calledOnce).to.be.true;
87
- (0, chai_1.expect)(cloneSpy.firstCall.args[0]).to.deep.equal({
88
- baseDir: expectedBaseDir,
89
- config: REPORC_FILE,
90
- force: true,
91
- build: true,
92
- linkType: 'yarnLink',
93
- verbose: true
94
- });
95
- });
96
- it('with all possible valid long args. Args should correctly reflect in parsed options', () => {
97
- const expectedBaseDir = path.resolve(__dirname, '..');
98
- cmd.parse([
99
- '',
100
- '',
101
- '--config',
102
- REPORC_FILE,
103
- '--baseDir',
104
- expectedBaseDir,
105
- '--force',
106
- '--build',
107
- '--linkType',
108
- 'yarnLink',
109
- '--verbose'
110
- ]);
111
- (0, chai_1.expect)(cloneSpy.calledOnce).to.be.true;
112
- (0, chai_1.expect)(cloneSpy.firstCall.args[0]).to.deep.equal({
113
- baseDir: expectedBaseDir,
114
- config: REPORC_FILE,
115
- force: true,
116
- build: true,
117
- linkType: 'yarnLink',
118
- verbose: true
119
- });
120
- });
121
- it('with invalid basedir arg. Should throw error', () => {
122
- (0, chai_1.expect)(() => cmd.parse(['', '', '-d', '/doesNot/exist'])).to.throw(/.not a directory/);
123
- });
124
- });
125
- });
126
- //# sourceMappingURL=clone.spec.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"clone.spec.js","sourceRoot":"","sources":["../../../src/commands/repo/clone.spec.ts"],"names":[],"mappings":";AAAA;;;;;;;;;;;;;;kFAckF;AAClF,yDAAyD;;;;;;;;;;;;;;;;;;;;;;;;;AAEzD,+BAA8B;AAE9B,2CAA6B;AAC7B,6CAA+B;AAC/B,8DAA+D;AAC/D,mCAAmD;AAEnD,MAAM,WAAW,GAAG,IAAI,CAAC,OAAO,CAAC,mCAAkB,EAAE,YAAY,CAAC,CAAC;AACnE,QAAQ,CAAC,eAAe,EAAE,GAAG,EAAE;IAC3B,MAAM,OAAO,GAAG,KAAK,CAAC,aAAa,EAAE,CAAC;IAEtC,UAAU,CAAC,GAAG,EAAE;QACZ,OAAO,CAAC,KAAK,EAAE,CAAC;IAC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,CAAC,CAAC,EAAE,CAAC,EAAE,CAAC,IAAI,CAAC;YACvC,IAAA,aAAM,EAAC,QAAQ,CAAC,SAAS,CAAC,IAAI,CAAC,CAAC,CAAC,CAAC,CAAC,EAAE,CAAC,IAAI,CAAC,KAAK,CAAC;gBAC7C,OAAO,EAAE,eAAe;gBACxB,MAAM,EAAE,WAAW;gBACnB,KAAK,EAAE,IAAI;gBACX,KAAK,EAAE,IAAI;gBACX,QAAQ,EAAE,UAAU;gBACpB,OAAO,EAAE,IAAI;aAChB,CAAC,CAAC;QACP,CAAC,CAAC,CAAC;QACH,EAAE,CAAC,8CAA8C,EAAE,GAAG,EAAE;YACpD,IAAA,aAAM,EAAC,GAAG,EAAE,CAAC,GAAG,CAAC,KAAK,CAAC,CAAC,EAAE,EAAE,EAAE,EAAE,IAAI,EAAE,gBAAgB,CAAC,CAAC,CAAC,CAAC,EAAE,CAAC,KAAK,CAAC,kBAAkB,CAAC,CAAC;QAC3F,CAAC,CAAC,CAAC;IACP,CAAC,CAAC,CAAC;AACP,CAAC,CAAC,CAAC"}
@@ -1,23 +0,0 @@
1
- /********************************************************************************
2
- * Copyright (c) 2024 EclipseSource and others.
3
- *
4
- * This program and the accompanying materials are made available under the
5
- * terms of the Eclipse Public License v. 2.0 which is available at
6
- * http://www.eclipse.org/legal/epl-2.0.
7
- *
8
- * This Source Code may also be made available under the following Secondary
9
- * Licenses when the conditions for such availability set forth in the Eclipse
10
- * Public License v. 2.0 are satisfied: GNU General Public License, version 2
11
- * with the GNU Classpath Exception which is available at
12
- * https://www.gnu.org/software/classpath/license.html.
13
- *
14
- * SPDX-License-Identifier: EPL-2.0 OR GPL-2.0 WITH Classpath-exception-2.0
15
- ********************************************************************************/
16
- import { GlspRepo, GlspRepoType, LinkType } from '../../common/glsp-repo';
17
- export type GlspRepoConfig = {
18
- baseDir?: string;
19
- force?: boolean;
20
- linkType?: LinkType;
21
- build?: boolean;
22
- } & Partial<Record<GlspRepoType, GlspRepo | boolean>>;
23
- //# sourceMappingURL=common.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"common.d.ts","sourceRoot":"","sources":["../../../src/commands/repo/common.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;kFAckF;AAElF,OAAO,EAAE,QAAQ,EAAE,YAAY,EAAE,QAAQ,EAAE,MAAM,wBAAwB,CAAC;AAE1E,MAAM,MAAM,cAAc,GAAG;IACzB,OAAO,CAAC,EAAE,MAAM,CAAC;IACjB,KAAK,CAAC,EAAE,OAAO,CAAC;IAChB,QAAQ,CAAC,EAAE,QAAQ,CAAC;IACpB,KAAK,CAAC,EAAE,OAAO,CAAC;CACnB,GAAG,OAAO,CAAC,MAAM,CAAC,YAAY,EAAE,QAAQ,GAAG,OAAO,CAAC,CAAC,CAAC"}
@@ -1,18 +0,0 @@
1
- "use strict";
2
- /********************************************************************************
3
- * Copyright (c) 2024 EclipseSource and others.
4
- *
5
- * This program and the accompanying materials are made available under the
6
- * terms of the Eclipse Public License v. 2.0 which is available at
7
- * http://www.eclipse.org/legal/epl-2.0.
8
- *
9
- * This Source Code may also be made available under the following Secondary
10
- * Licenses when the conditions for such availability set forth in the Eclipse
11
- * Public License v. 2.0 are satisfied: GNU General Public License, version 2
12
- * with the GNU Classpath Exception which is available at
13
- * https://www.gnu.org/software/classpath/license.html.
14
- *
15
- * SPDX-License-Identifier: EPL-2.0 OR GPL-2.0 WITH Classpath-exception-2.0
16
- ********************************************************************************/
17
- Object.defineProperty(exports, "__esModule", { value: true });
18
- //# sourceMappingURL=common.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"common.js","sourceRoot":"","sources":["../../../src/commands/repo/common.ts"],"names":[],"mappings":";AAAA;;;;;;;;;;;;;;kFAckF"}
@@ -1,18 +0,0 @@
1
- /********************************************************************************
2
- * Copyright (c) 2024 EclipseSource and others.
3
- *
4
- * This program and the accompanying materials are made available under the
5
- * terms of the Eclipse Public License v. 2.0 which is available at
6
- * http://www.eclipse.org/legal/epl-2.0.
7
- *
8
- * This Source Code may also be made available under the following Secondary
9
- * Licenses when the conditions for such availability set forth in the Eclipse
10
- * Public License v. 2.0 are satisfied: GNU General Public License, version 2
11
- * with the GNU Classpath Exception which is available at
12
- * https://www.gnu.org/software/classpath/license.html.
13
- *
14
- * SPDX-License-Identifier: EPL-2.0 OR GPL-2.0 WITH Classpath-exception-2.0
15
- ********************************************************************************/
16
- export declare const ConfigCommand: import("commander").Command;
17
- export declare function showConfig(): Promise<void>;
18
- //# sourceMappingURL=config.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"config.d.ts","sourceRoot":"","sources":["../../../src/commands/repo/config.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;kFAckF;AAIlF,eAAO,MAAM,aAAa,6BAGH,CAAC;AAExB,wBAAsB,UAAU,IAAI,OAAO,CAAC,IAAI,CAAC,CAEhD"}
@@ -1,28 +0,0 @@
1
- "use strict";
2
- /********************************************************************************
3
- * Copyright (c) 2024 EclipseSource and others.
4
- *
5
- * This program and the accompanying materials are made available under the
6
- * terms of the Eclipse Public License v. 2.0 which is available at
7
- * http://www.eclipse.org/legal/epl-2.0.
8
- *
9
- * This Source Code may also be made available under the following Secondary
10
- * Licenses when the conditions for such availability set forth in the Eclipse
11
- * Public License v. 2.0 are satisfied: GNU General Public License, version 2
12
- * with the GNU Classpath Exception which is available at
13
- * https://www.gnu.org/software/classpath/license.html.
14
- *
15
- * SPDX-License-Identifier: EPL-2.0 OR GPL-2.0 WITH Classpath-exception-2.0
16
- ********************************************************************************/
17
- Object.defineProperty(exports, "__esModule", { value: true });
18
- exports.ConfigCommand = void 0;
19
- exports.showConfig = showConfig;
20
- const command_util_1 = require("../../util/command-util");
21
- exports.ConfigCommand = (0, command_util_1.baseCommand)() //
22
- .name('config')
23
- .description('Show the current repository configuration')
24
- .action(showConfig);
25
- async function showConfig() {
26
- console.log('Showing the current repository configuration...');
27
- }
28
- //# sourceMappingURL=config.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"config.js","sourceRoot":"","sources":["../../../src/commands/repo/config.ts"],"names":[],"mappings":";AAAA;;;;;;;;;;;;;;kFAckF;;;AASlF,gCAEC;AATD,0DAAsD;AAEzC,QAAA,aAAa,GAAG,IAAA,0BAAW,GAAE,CAAC,EAAE;KACxC,IAAI,CAAC,QAAQ,CAAC;KACd,WAAW,CAAC,2CAA2C,CAAC;KACxD,MAAM,CAAC,UAAU,CAAC,CAAC;AAEjB,KAAK,UAAU,UAAU;IAC5B,OAAO,CAAC,GAAG,CAAC,iDAAiD,CAAC,CAAC;AACnE,CAAC"}
@@ -1,17 +0,0 @@
1
- /********************************************************************************
2
- * Copyright (c) 2024 EclipseSource and others.
3
- *
4
- * This program and the accompanying materials are made available under the
5
- * terms of the Eclipse Public License v. 2.0 which is available at
6
- * http://www.eclipse.org/legal/epl-2.0.
7
- *
8
- * This Source Code may also be made available under the following Secondary
9
- * Licenses when the conditions for such availability set forth in the Eclipse
10
- * Public License v. 2.0 are satisfied: GNU General Public License, version 2
11
- * with the GNU Classpath Exception which is available at
12
- * https://www.gnu.org/software/classpath/license.html.
13
- *
14
- * SPDX-License-Identifier: EPL-2.0 OR GPL-2.0 WITH Classpath-exception-2.0
15
- ********************************************************************************/
16
- export declare const RepoCommand: import("commander").Command;
17
- //# sourceMappingURL=repo.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"repo.d.ts","sourceRoot":"","sources":["../../../src/commands/repo/repo.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;kFAckF;AAKlF,eAAO,MAAM,WAAW,6BAGK,CAAC"}
@@ -1,25 +0,0 @@
1
- "use strict";
2
- /********************************************************************************
3
- * Copyright (c) 2024 EclipseSource and others.
4
- *
5
- * This program and the accompanying materials are made available under the
6
- * terms of the Eclipse Public License v. 2.0 which is available at
7
- * http://www.eclipse.org/legal/epl-2.0.
8
- *
9
- * This Source Code may also be made available under the following Secondary
10
- * Licenses when the conditions for such availability set forth in the Eclipse
11
- * Public License v. 2.0 are satisfied: GNU General Public License, version 2
12
- * with the GNU Classpath Exception which is available at
13
- * https://www.gnu.org/software/classpath/license.html.
14
- *
15
- * SPDX-License-Identifier: EPL-2.0 OR GPL-2.0 WITH Classpath-exception-2.0
16
- ********************************************************************************/
17
- Object.defineProperty(exports, "__esModule", { value: true });
18
- exports.RepoCommand = void 0;
19
- const command_util_1 = require("../../util/command-util");
20
- const clone_1 = require("./clone");
21
- exports.RepoCommand = (0, command_util_1.baseCommand)() //
22
- .name('repo')
23
- .description('Manage GLSP repositories')
24
- .addCommand(clone_1.CloneCommand);
25
- //# sourceMappingURL=repo.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"repo.js","sourceRoot":"","sources":["../../../src/commands/repo/repo.ts"],"names":[],"mappings":";AAAA;;;;;;;;;;;;;;kFAckF;;;AAElF,0DAAsD;AACtD,mCAAuC;AAE1B,QAAA,WAAW,GAAG,IAAA,0BAAW,GAAE,CAAC,EAAE;KACtC,IAAI,CAAC,MAAM,CAAC;KACZ,WAAW,CAAC,0BAA0B,CAAC;KACvC,UAAU,CAAC,oBAAY,CAAC,CAAC"}
@@ -1,27 +0,0 @@
1
- /********************************************************************************
2
- * Copyright (c) 2024 EclipseSource and others.
3
- *
4
- * This program and the accompanying materials are made available under the
5
- * terms of the Eclipse Public License v. 2.0 which is available at
6
- * http://www.eclipse.org/legal/epl-2.0.
7
- *
8
- * This Source Code may also be made available under the following Secondary
9
- * Licenses when the conditions for such availability set forth in the Eclipse
10
- * Public License v. 2.0 are satisfied: GNU General Public License, version 2
11
- * with the GNU Classpath Exception which is available at
12
- * https://www.gnu.org/software/classpath/license.html.
13
- *
14
- * SPDX-License-Identifier: EPL-2.0 OR GPL-2.0 WITH Classpath-exception-2.0
15
- ********************************************************************************/
16
- export type ReleaseRepository = 'npm' | 'm2' | 'm2&p2' | 'p2';
17
- export type GlspComponent = (typeof GlspComponent)[keyof Omit<typeof GlspComponent, 'parse'>];
18
- export declare const GlspComponent: {
19
- readonly DEV_PACKAGES: "dev-packages";
20
- readonly CLIENT: "client";
21
- readonly THEIA_INTEGRATION: "theia-integration";
22
- readonly VSCODE_INTEGRATION: "vscode-integration";
23
- readonly ECLIPSE_INTEGRATION: "eclipse-integration";
24
- readonly PLAYWRIGHT: "playwright";
25
- readonly EXAMPLES: "examples";
26
- };
27
- //# sourceMappingURL=glsp-component.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"glsp-component.d.ts","sourceRoot":"","sources":["../../src/common/glsp-component.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;kFAckF;AAClF,MAAM,MAAM,iBAAiB,GAAG,KAAK,GAAG,IAAI,GAAG,OAAO,GAAG,IAAI,CAAC;AAE9D,MAAM,MAAM,aAAa,GAAG,CAAC,OAAO,aAAa,CAAC,CAAC,MAAM,IAAI,CAAC,OAAO,aAAa,EAAE,OAAO,CAAC,CAAC,CAAC;AAC9F,eAAO,MAAM,aAAa;;;;;;;;CAQhB,CAAC"}
@@ -1,13 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.GlspComponent = void 0;
4
- exports.GlspComponent = {
5
- DEV_PACKAGES: 'dev-packages',
6
- CLIENT: 'client',
7
- THEIA_INTEGRATION: 'theia-integration',
8
- VSCODE_INTEGRATION: 'vscode-integration',
9
- ECLIPSE_INTEGRATION: 'eclipse-integration',
10
- PLAYWRIGHT: 'playwright',
11
- EXAMPLES: 'examples'
12
- };
13
- //# sourceMappingURL=glsp-component.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"glsp-component.js","sourceRoot":"","sources":["../../src/common/glsp-component.ts"],"names":[],"mappings":";;;AAkBa,QAAA,aAAa,GAAG;IACzB,YAAY,EAAE,cAAc;IAC5B,MAAM,EAAE,QAAQ;IAChB,iBAAiB,EAAE,mBAAmB;IACtC,kBAAkB,EAAE,oBAAoB;IACxC,mBAAmB,EAAE,qBAAqB;IAC1C,UAAU,EAAE,YAAY;IACxB,QAAQ,EAAE,UAAU;CACd,CAAC"}
@@ -1,44 +0,0 @@
1
- /********************************************************************************
2
- * Copyright (c) 2024 EclipseSource and others.
3
- *
4
- * This program and the accompanying materials are made available under the
5
- * terms of the Eclipse Public License v. 2.0 which is available at
6
- * http://www.eclipse.org/legal/epl-2.0.
7
- *
8
- * This Source Code may also be made available under the following Secondary
9
- * Licenses when the conditions for such availability set forth in the Eclipse
10
- * Public License v. 2.0 are satisfied: GNU General Public License, version 2
11
- * with the GNU Classpath Exception which is available at
12
- * https://www.gnu.org/software/classpath/license.html.
13
- *
14
- * SPDX-License-Identifier: EPL-2.0 OR GPL-2.0 WITH Classpath-exception-2.0
15
- ********************************************************************************/
16
- export declare const GlspRepoType: readonly ["dev", "client", "theia", "vscode", "eclipse", "nodeServer", "javaServer", "playwright"];
17
- export type GlspRepoType = (typeof GlspRepoType)[number];
18
- export declare const LinkType: readonly ["none", "yarnLink", "resolutions"];
19
- export type LinkType = (typeof LinkType)[number];
20
- export declare const ReleaseRepoType: readonly ["npm", "m2", "m2&p2", "p2"];
21
- export type ReleaseRepoType = (typeof ReleaseRepoType)[number];
22
- export declare const CloneType: readonly ["ssh", "https", "gh-cli"];
23
- export type CloneType = (typeof CloneType)[number];
24
- export interface GlspRepo {
25
- ghRepo: string;
26
- releaseRepo: ReleaseRepoType;
27
- cloneType: CloneType;
28
- directory: string;
29
- dependencies: GlspRepoType[];
30
- remote?: string;
31
- branch?: string;
32
- }
33
- export declare const GLSP_REPO_DEFAULTS: Readonly<Record<GlspRepoType, Readonly<GlspRepo>>>;
34
- export type RepoOptions = Partial<Omit<GlspRepo, 'dependencies' | 'releaseRepo' | 'ghRepo'>>;
35
- export interface RepoConfig extends Partial<Record<GlspRepoType, RepoOptions | boolean>> {
36
- baseDir: string;
37
- force: boolean;
38
- linkType: LinkType;
39
- build: boolean;
40
- }
41
- export type resolvedRepoConfig = Required<RepoConfig>;
42
- export declare function validateRepoConfig(input: object): string[];
43
- export declare function validateRepoOptions(input: object, errors?: string[]):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F,OAAO,EAAE,MAAM,CAAC;IAChB,KAAK,EAAE,OAAO,CAAC;IACf,QAAQ,EAAE,QAAQ,CAAC;IACnB,KAAK,EAAE,OAAO,CAAC;CAClB;AAED,MAAM,MAAM,kBAAkB,GAAG,QAAQ,CAAC,UAAU,CAAC,CAAC;AAEtD,wBAAgB,kBAAkB,CAAC,KAAK,EAAE,MAAM,GAAG,MAAM,EAAE,CAiC1D;AAED,wBAAgB,mBAAmB,CAAC,KAAK,EAAE,MAAM,EAAE,MAAM,GAAE,MAAM,EAAO,GAAG,MAAM,EAAE,CAiBlF"}
@@ -1,135 +0,0 @@
1
- "use strict";
2
- /********************************************************************************
3
- * Copyright (c) 2024 EclipseSource and others.
4
- *
5
- * This program and the accompanying materials are made available under the
6
- * terms of the Eclipse Public License v. 2.0 which is available at
7
- * http://www.eclipse.org/legal/epl-2.0.
8
- *
9
- * This Source Code may also be made available under the following Secondary
10
- * Licenses when the conditions for such availability set forth in the Eclipse
11
- * Public License v. 2.0 are satisfied: GNU General Public License, version 2
12
- * with the GNU Classpath Exception which is available at
13
- * https://www.gnu.org/software/classpath/license.html.
14
- *
15
- * SPDX-License-Identifier: EPL-2.0 OR GPL-2.0 WITH Classpath-exception-2.0
16
- ********************************************************************************/
17
- Object.defineProperty(exports, "__esModule", { value: true });
18
- exports.GLSP_REPO_DEFAULTS = exports.CloneType = exports.ReleaseRepoType = exports.LinkType = exports.GlspRepoType = void 0;
19
- exports.validateRepoConfig = validateRepoConfig;
20
- exports.validateRepoOptions = validateRepoOptions;
21
- exports.GlspRepoType = [
22
- 'dev', //
23
- 'client',
24
- 'theia',
25
- 'vscode',
26
- 'eclipse',
27
- 'nodeServer',
28
- 'javaServer',
29
- 'playwright'
30
- ];
31
- exports.LinkType = ['none', 'yarnLink', 'resolutions'];
32
- exports.ReleaseRepoType = ['npm', 'm2', 'm2&p2', 'p2'];
33
- exports.CloneType = ['ssh', 'https', 'gh-cli'];
34
- exports.GLSP_REPO_DEFAULTS = {
35
- dev: {
36
- ghRepo: 'eclipse-glsp/glsp',
37
- releaseRepo: 'npm',
38
- cloneType: 'ssh',
39
- directory: 'glsp',
40
- dependencies: []
41
- },
42
- client: {
43
- ghRepo: 'eclipse-glsp/glsp-client',
44
- releaseRepo: 'npm',
45
- cloneType: 'ssh',
46
- directory: 'glsp-client',
47
- dependencies: ['dev']
48
- },
49
- theia: {
50
- ghRepo: 'eclipse-glsp/glsp-theia-integration',
51
- releaseRepo: 'npm',
52
- cloneType: 'ssh',
53
- directory: 'glsp-theia-integration',
54
- dependencies: ['dev', 'client', 'nodeServer']
55
- },
56
- vscode: {
57
- ghRepo: 'eclipse-glsp/glsp-vscode-integration',
58
- releaseRepo: 'npm',
59
- cloneType: 'ssh',
60
- directory: 'glsp-vscode-integration',
61
- dependencies: ['dev', 'client', 'nodeServer']
62
- },
63
- eclipse: {
64
- ghRepo: 'eclipse-glsp/glsp-eclipse-integration',
65
- releaseRepo: 'p2',
66
- cloneType: 'ssh',
67
- directory: 'glsp-eclipse-integration',
68
- dependencies: ['dev', 'client', 'javaServer']
69
- },
70
- nodeServer: {
71
- ghRepo: 'eclipse-glsp/glsp-server-node',
72
- releaseRepo: 'npm',
73
- cloneType: 'ssh',
74
- directory: 'glsp-server-node',
75
- dependencies: ['dev', 'client']
76
- },
77
- javaServer: {
78
- ghRepo: 'eclipse-glsp/glsp-server',
79
- releaseRepo: 'm2&p2',
80
- cloneType: 'ssh',
81
- directory: 'glsp-server',
82
- dependencies: []
83
- },
84
- playwright: {
85
- ghRepo: 'eclipse-glsp/glsp-playwright',
86
- releaseRepo: 'npm',
87
- cloneType: 'ssh',
88
- directory: 'glsp-playwright',
89
- dependencies: ['dev']
90
- }
91
- };
92
- function validateRepoConfig(input) {
93
- const errors = [];
94
- if ('baseDir' in input && typeof input.baseDir !== 'string') {
95
- errors.push('baseDir must be a string when defined');
96
- }
97
- if ('force' in input && typeof input.force !== 'boolean') {
98
- errors.push('force must be a boolean when defined');
99
- }
100
- if ('linkType' in input && (typeof input.linkType !== 'string' || !exports.LinkType.includes(input.linkType))) {
101
- errors.push('linkType must be one of "none", "yarnLink", or "resolutions" when defined');
102
- }
103
- if ('build' in input && typeof input.build !== 'boolean') {
104
- errors.push('build must be a boolean when defined');
105
- }
106
- // Validate GlspRepoType properties
107
- exports.GlspRepoType.forEach(repoType => {
108
- const config = input;
109
- if (repoType in config) {
110
- if (typeof config[repoType] !== 'boolean' && typeof config[repoType] !== 'object') {
111
- errors.push(`${repoType} must be a boolean or an object when defined`);
112
- }
113
- if (typeof config[repoType] === 'object') {
114
- validateRepoOptions(config[repoType], errors);
115
- }
116
- }
117
- });
118
- return errors;
119
- }
120
- function validateRepoOptions(input, errors = []) {
121
- if ('cloneType' in input && (typeof input.cloneType !== 'string' || !exports.CloneType.includes(input.cloneType))) {
122
- errors.push('cloneType must be one of "ssh", "https", or "gh-cli" when defined');
123
- }
124
- if ('directory' in input && typeof input.directory !== 'string') {
125
- errors.push('directory must be a string when defined');
126
- }
127
- if ('remote' in input && typeof input.remote !== 'string') {
128
- errors.push('remote must be a string when defined');
129
- }
130
- if ('branch' in input && typeof input.branch !== 'string') {
131
- errors.push('branch must be a string when defined');
132
- }
133
- return errors;
134
- }
135
- //# sourceMappingURL=glsp-repo.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"glsp-repo.js","sourceRoot":"","sources":["../../src/common/glsp-repo.ts"],"names":[],"mappings":";AAAA;;;;;;;;;;;;;;kFAckF;;;AAuGlF,gDAiCC;AAED,kDAiBC;AAzJY,QAAA,YAAY,GAAG;IACxB,KAAK,EAAE,EAAE;IACT,QAAQ;IACR,OAAO;IACP,QAAQ;IACR,SAAS;IACT,YAAY;IACZ,YAAY;IACZ,YAAY;CACN,CAAC;AAGE,QAAA,QAAQ,GAAG,CAAC,MAAM,EAAE,UAAU,EAAE,aAAa,CAAU,CAAC;AAGxD,QAAA,eAAe,GAAG,CAAC,KAAK,EAAE,IAAI,EAAE,OAAO,EAAE,IAAI,CAAU,C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F,MAAM,CAAC,IAAI,CAAC,GAAG,QAAQ,8CAA8C,CAAC,CAAC;YAC3E,CAAC;YACD,IAAI,OAAO,MAAM,CAAC,QAAQ,CAAC,KAAK,QAAQ,EAAE,CAAC;gBACvC,mBAAmB,CAAC,MAAM,CAAC,QAAQ,CAAC,EAAE,MAAM,CAAC,CAAC;YAClD,CAAC;QACL,CAAC;IACL,CAAC,CAAC,CAAC;IAEH,OAAO,MAAM,CAAC;AAClB,CAAC;AAED,SAAgB,mBAAmB,CAAC,KAAa,EAAE,SAAmB,EAAE;IACpE,IAAI,WAAW,IAAI,KAAK,IAAI,CAAC,OAAO,KAAK,CAAC,SAAS,KAAK,QAAQ,IAAI,CAAC,iBAAS,CAAC,QAAQ,CAAC,KAAK,CAAC,SAAsB,CAAC,CAAC,EAAE,CAAC;QACrH,MAAM,CAAC,IAAI,CAAC,mEAAmE,CAAC,CAAC;IACrF,CAAC;IAED,IAAI,WAAW,IAAI,KAAK,IAAI,OAAO,KAAK,CAAC,SAAS,KAAK,QAAQ,EAAE,CAAC;QAC9D,MAAM,CAAC,IAAI,CAAC,yCAAyC,CAAC,CAAC;IAC3D,CAAC;IAED,IAAI,QAAQ,IAAI,KAAK,IAAI,OAAO,KAAK,CAAC,MAAM,KAAK,QAAQ,EAAE,CAAC;QACxD,MAAM,CAAC,IAAI,CAAC,sCAAsC,CAAC,CAAC;IACxD,CAAC;IAED,IAAI,QAAQ,IAAI,KAAK,IAAI,OAAO,KAAK,CAAC,MAAM,KAAK,QAAQ,EAAE,CAAC;QACxD,MAAM,CAAC,IAAI,CAAC,sCAAsC,CAAC,CAAC;IACxD,CAAC;IACD,OAAO,MAAM,CAAC;AAClB,CAAC"}
@@ -1,17 +0,0 @@
1
- /********************************************************************************
2
- * Copyright (c) 2024 EclipseSource and others.
3
- *
4
- * This program and the accompanying materials are made available under the
5
- * terms of the Eclipse Public License v. 2.0 which is available at
6
- * http://www.eclipse.org/legal/epl-2.0.
7
- *
8
- * This Source Code may also be made available under the following Secondary
9
- * Licenses when the conditions for such availability set forth in the Eclipse
10
- * Public License v. 2.0 are satisfied: GNU General Public License, version 2
11
- * with the GNU Classpath Exception which is available at
12
- * https://www.gnu.org/software/classpath/license.html.
13
- *
14
- * SPDX-License-Identifier: EPL-2.0 OR GPL-2.0 WITH Classpath-exception-2.0
15
- ********************************************************************************/
16
- export {};
17
- //# sourceMappingURL=glsp-repo.spec.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"glsp-repo.spec.d.ts","sourceRoot":"","sources":["../../src/common/glsp-repo.spec.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;kFAckF"}
@@ -1,130 +0,0 @@
1
- "use strict";
2
- /********************************************************************************
3
- * Copyright (c) 2024 EclipseSource and others.
4
- *
5
- * This program and the accompanying materials are made available under the
6
- * terms of the Eclipse Public License v. 2.0 which is available at
7
- * http://www.eclipse.org/legal/epl-2.0.
8
- *
9
- * This Source Code may also be made available under the following Secondary
10
- * Licenses when the conditions for such availability set forth in the Eclipse
11
- * Public License v. 2.0 are satisfied: GNU General Public License, version 2
12
- * with the GNU Classpath Exception which is available at
13
- * https://www.gnu.org/software/classpath/license.html.
14
- *
15
- * SPDX-License-Identifier: EPL-2.0 OR GPL-2.0 WITH Classpath-exception-2.0
16
- ********************************************************************************/
17
- Object.defineProperty(exports, "__esModule", { value: true });
18
- const chai_1 = require("chai");
19
- const glsp_repo_1 = require("./glsp-repo");
20
- describe('RepoConfig', () => {
21
- describe('validateRepoConfig', () => {
22
- it('should return an empty array for an empty object', () => {
23
- const config = {};
24
- const result = (0, glsp_repo_1.validateRepoConfig)(config);
25
- (0, chai_1.expect)(result).to.be.deep.equal([]);
26
- });
27
- it('should return an empty array for a config with valid base properties', () => {
28
- const config = {
29
- baseDir: 'baseDir',
30
- build: true,
31
- linkType: 'none',
32
- force: true
33
- };
34
- const result = (0, glsp_repo_1.validateRepoConfig)(config);
35
- (0, chai_1.expect)(result).to.be.deep.equal([]);
36
- });
37
- it('should return an error message for an invalid baseDir property', () => {
38
- const config = {
39
- baseDir: false
40
- };
41
- const result = (0, glsp_repo_1.validateRepoConfig)(config);
42
- (0, chai_1.expect)(result.length).to.be.equal(1);
43
- (0, chai_1.expect)(result[0]).to.match(/baseDir/);
44
- });
45
- it('should return an error message for an invalid build property', () => {
46
- const config = {
47
- build: 'invalid'
48
- };
49
- const result = (0, glsp_repo_1.validateRepoConfig)(config);
50
- (0, chai_1.expect)(result.length).to.be.equal(1);
51
- (0, chai_1.expect)(result[0]).to.match(/build/);
52
- });
53
- it('should return an error message for an invalid linkType property', () => {
54
- const config = {
55
- linkType: 'invalid'
56
- };
57
- const result = (0, glsp_repo_1.validateRepoConfig)(config);
58
- (0, chai_1.expect)(result.length).to.be.equal(1);
59
- (0, chai_1.expect)(result[0]).to.match(/linkType/);
60
- });
61
- it('should return an error message for an invalid force property', () => {
62
- const config = {
63
- force: 'invalid'
64
- };
65
- const result = (0, glsp_repo_1.validateRepoConfig)(config);
66
- (0, chai_1.expect)(result.length).to.be.equal(1);
67
- (0, chai_1.expect)(result[0]).to.match(/force/);
68
- });
69
- });
70
- describe('validateRepoOptions', () => {
71
- it('should return an empty array for an empty object', () => {
72
- const options = {};
73
- const result = (0, glsp_repo_1.validateRepoOptions)(options);
74
- (0, chai_1.expect)(result).to.be.deep.equal([]);
75
- });
76
- it('should return an empty array for a options with valid properties', () => {
77
- const options = {
78
- branch: 'master',
79
- cloneType: 'ssh',
80
- directory: 'glsp',
81
- remote: 'git@github.com:eclipse-glsp/glsp.git'
82
- };
83
- const result = (0, glsp_repo_1.validateRepoOptions)(options);
84
- (0, chai_1.expect)(result).to.be.deep.equal([]);
85
- });
86
- it('should return an error message for an invalid branch property', () => {
87
- const options = {
88
- branch: false
89
- };
90
- const result = (0, glsp_repo_1.validateRepoOptions)(options);
91
- (0, chai_1.expect)(result.length).to.be.equal(1);
92
- (0, chai_1.expect)(result[0]).to.match(/branch/);
93
- });
94
- it('should return an error message for an invalid cloneType property', () => {
95
- const options = {
96
- cloneType: 'invalid'
97
- };
98
- const result = (0, glsp_repo_1.validateRepoOptions)(options);
99
- (0, chai_1.expect)(result.length).to.be.equal(1);
100
- (0, chai_1.expect)(result[0]).to.match(/cloneType/);
101
- });
102
- it('should return an error message for an invalid directory property', () => {
103
- const options = {
104
- directory: false
105
- };
106
- const result = (0, glsp_repo_1.validateRepoOptions)(options);
107
- (0, chai_1.expect)(result.length).to.be.equal(1);
108
- (0, chai_1.expect)(result[0]).to.match(/directory/);
109
- });
110
- it('should return an error message for an invalid remote property', () => {
111
- const options = {
112
- remote: false
113
- };
114
- const result = (0, glsp_repo_1.validateRepoOptions)(options);
115
- (0, chai_1.expect)(result.length).to.be.equal(1);
116
- (0, chai_1.expect)(result[0]).to.match(/remote/);
117
- });
118
- it('should return error messages for all invalid properties', () => {
119
- const options = {
120
- branch: false,
121
- cloneType: 'invalid',
122
- directory: false,
123
- remote: false
124
- };
125
- const result = (0, glsp_repo_1.validateRepoOptions)(options);
126
- (0, chai_1.expect)(result.length).to.be.equal(4);
127
- });
128
- });
129
- });
130
- //# sourceMappingURL=glsp-repo.spec.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"glsp-repo.spec.js","sourceRoot":"","sources":["../../src/common/glsp-repo.spec.ts"],"names":[],"mappings":";AAAA;;;;;;;;;;;;;;kFAckF;;AAElF,+BAA8B;AAC9B,2CAA+F;AAE/F,QAAQ,CAAC,YAAY,EAAE,GAAG,EAAE;IACxB,QAAQ,CAAC,oBAAoB,EAAE,GAAG,EAAE;QAChC,EAAE,CAAC,kDAAkD,EAAE,GAAG,EAAE;YACxD,MAAM,MAAM,GAAG,EAAE,CAAC;YAClB,MAAM,MAAM,GAAG,IAAA,8BAAkB,EAAC,MAAM,CAAC,CAAC;YAC1C,IAAA,aAAM,EAAC,MAAM,CAAC,CAAC,EAAE,CAAC,EAAE,CAAC,IAAI,CAAC,KAAK,CAAC,EAAE,CAAC,CAAC;QACxC,CAAC,CAAC,CAAC;QA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AA,aAAM,EAAC,MAAM,CAAC,MAAM,CAAC,CAAC,EAAE,CAAC,EAAE,CAAC,KAAK,CAAC,CAAC,CAAC,CAAC;YACrC,IAAA,aAAM,EAAC,MAAM,CAAC,CAAC,CAAC,CAAC,CAAC,EAAE,CAAC,KAAK,CAAC,WAAW,CAAC,CAAC;QAC5C,CAAC,CAAC,CAAC;QAEH,EAAE,CAAC,+DAA+D,EAAE,GAAG,EAAE;YACrE,MAAM,OAAO,GAAG;gBACZ,MAAM,EAAE,KAAK;aAChB,CAAC;YACF,MAAM,MAAM,GAAG,IAAA,+BAAmB,EAAC,OAAO,CAAC,CAAC;YAC5C,IAAA,aAAM,EAAC,MAAM,CAAC,MAAM,CAAC,CAAC,EAAE,CAAC,EAAE,CAAC,KAAK,CAAC,CAAC,CAAC,CAAC;YACrC,IAAA,aAAM,EAAC,MAAM,CAAC,CAAC,CAAC,CAAC,CAAC,EAAE,CAAC,KAAK,CAAC,QAAQ,CAAC,CAAC;QACzC,CAAC,CAAC,CAAC;QAEH,EAAE,CAAC,yDAAyD,EAAE,GAAG,EAAE;YAC/D,MAAM,OAAO,GAAG;gBACZ,MAAM,EAAE,KAAK;gBACb,SAAS,EAAE,SAAS;gBACpB,SAAS,EAAE,KAAK;gBAChB,MAAM,EAAE,KAAK;aAChB,CAAC;YACF,MAAM,MAAM,GAAG,IAAA,+BAAmB,EAAC,OAAO,CAAC,CAAC;YAC5C,IAAA,aAAM,EAAC,MAAM,CAAC,MAAM,CAAC,CAAC,EAAE,CAAC,EAAE,CAAC,KAAK,CAAC,CAAC,CAAC,CAAC;QACzC,CAAC,CAAC,CAAC;IACP,CAAC,CAAC,CAAC;AACP,CAAC,CAAC,CAAC"}
package/lib/foo.spec.d.ts DELETED
@@ -1,17 +0,0 @@
1
- /********************************************************************************
2
- * Copyright (c) 2024 EclipseSource and others.
3
- *
4
- * This program and the accompanying materials are made available under the
5
- * terms of the Eclipse Public License v. 2.0 which is available at
6
- * http://www.eclipse.org/legal/epl-2.0.
7
- *
8
- * This Source Code may also be made available under the following Secondary
9
- * Licenses when the conditions for such availability set forth in the Eclipse
10
- * Public License v. 2.0 are satisfied: GNU General Public License, version 2
11
- * with the GNU Classpath Exception which is available at
12
- * https://www.gnu.org/software/classpath/license.html.
13
- *
14
- * SPDX-License-Identifier: EPL-2.0 OR GPL-2.0 WITH Classpath-exception-2.0
15
- ********************************************************************************/
16
- export {};
17
- //# sourceMappingURL=foo.spec.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"foo.spec.d.ts","sourceRoot":"","sources":["../src/foo.spec.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;kFAckF"}
package/lib/foo.spec.js DELETED
@@ -1,23 +0,0 @@
1
- "use strict";
2
- /********************************************************************************
3
- * Copyright (c) 2024 EclipseSource and others.
4
- *
5
- * This program and the accompanying materials are made available under the
6
- * terms of the Eclipse Public License v. 2.0 which is available at
7
- * http://www.eclipse.org/legal/epl-2.0.
8
- *
9
- * This Source Code may also be made available under the following Secondary
10
- * Licenses when the conditions for such availability set forth in the Eclipse
11
- * Public License v. 2.0 are satisfied: GNU General Public License, version 2
12
- * with the GNU Classpath Exception which is available at
13
- * https://www.gnu.org/software/classpath/license.html.
14
- *
15
- * SPDX-License-Identifier: EPL-2.0 OR GPL-2.0 WITH Classpath-exception-2.0
16
- ********************************************************************************/
17
- Object.defineProperty(exports, "__esModule", { value: true });
18
- describe('foo', () => {
19
- it('should do something', () => {
20
- // test
21
- });
22
- });
23
- //# sourceMappingURL=foo.spec.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"foo.spec.js","sourceRoot":"","sources":["../src/foo.spec.ts"],"names":[],"mappings":";AAAA;;;;;;;;;;;;;;kFAckF;;AAElF,QAAQ,CAAC,KAAK,EAAE,GAAG,EAAE;IACjB,EAAE,CAAC,qBAAqB,EAAE,GAAG,EAAE;QAC3B,OAAO;IACX,CAAC,CAAC,CAAC;AACP,CAAC,CAAC,CAAC"}
package/lib/index.d.ts DELETED
@@ -1,18 +0,0 @@
1
- /********************************************************************************
2
- * Copyright (c) 2024 EclipseSource and others.
3
- *
4
- * This program and the accompanying materials are made available under the
5
- * terms of the Eclipse Public License v. 2.0 which is available at
6
- * http://www.eclipse.org/legal/epl-2.0.
7
- *
8
- * This Source Code may also be made available under the following Secondary
9
- * Licenses when the conditions for such availability set forth in the Eclipse
10
- * Public License v. 2.0 are satisfied: GNU General Public License, version 2
11
- * with the GNU Classpath Exception which is available at
12
- * https://www.gnu.org/software/classpath/license.html.
13
- *
14
- * SPDX-License-Identifier: EPL-2.0 OR GPL-2.0 WITH Classpath-exception-2.0
15
- ********************************************************************************/
16
- import { RepoConfig as ResolvedRepoConfig } from './common/glsp-repo';
17
- export type RepoConfig = Partial<ResolvedRepoConfig>;
18
- //# sourceMappingURL=index.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;kFAckF;AAElF,OAAO,EAAE,UAAU,IAAI,kBAAkB,EAAE,MAAM,oBAAoB,CAAC;AAEtE,MAAM,MAAM,UAAU,GAAG,OAAO,CAAC,kBAAkB,CAAC,CAAC"}
package/lib/index.js DELETED
@@ -1,18 +0,0 @@
1
- "use strict";
2
- /********************************************************************************
3
- * Copyright (c) 2024 EclipseSource and others.
4
- *
5
- * This program and the accompanying materials are made available under the
6
- * terms of the Eclipse Public License v. 2.0 which is available at
7
- * http://www.eclipse.org/legal/epl-2.0.
8
- *
9
- * This Source Code may also be made available under the following Secondary
10
- * Licenses when the conditions for such availability set forth in the Eclipse
11
- * Public License v. 2.0 are satisfied: GNU General Public License, version 2
12
- * with the GNU Classpath Exception which is available at
13
- * https://www.gnu.org/software/classpath/license.html.
14
- *
15
- * SPDX-License-Identifier: EPL-2.0 OR GPL-2.0 WITH Classpath-exception-2.0
16
- ********************************************************************************/
17
- Object.defineProperty(exports, "__esModule", { value: true });
18
- //# sourceMappingURL=index.js.map
package/lib/index.js.map DELETED
@@ -1 +0,0 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":";AAAA;;;;;;;;;;;;;;kFAckF"}
@@ -1,2 +0,0 @@
1
- export declare const TEST_RESOURCE_PATH: string;
2
- //# sourceMappingURL=test-util.spec.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"test-util.spec.d.ts","sourceRoot":"","sources":["../../src/util/test-util.spec.ts"],"names":[],"mappings":"AAiBA,eAAO,MAAM,kBAAkB,QAAwD,CAAC"}
@@ -1,44 +0,0 @@
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 __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
14
- Object.defineProperty(o, "default", { enumerable: true, value: v });
15
- }) : function(o, v) {
16
- o["default"] = v;
17
- });
18
- var __importStar = (this && this.__importStar) || function (mod) {
19
- if (mod && mod.__esModule) return mod;
20
- var result = {};
21
- if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);
22
- __setModuleDefault(result, mod);
23
- return result;
24
- };
25
- Object.defineProperty(exports, "__esModule", { value: true });
26
- exports.TEST_RESOURCE_PATH = void 0;
27
- /********************************************************************************
28
- * Copyright (c) 2024 EclipseSource and others.
29
- *
30
- * This program and the accompanying materials are made available under the
31
- * terms of the Eclipse Public License v. 2.0 which is available at
32
- * http://www.eclipse.org/legal/epl-2.0.
33
- *
34
- * This Source Code may also be made available under the following Secondary
35
- * Licenses when the conditions for such availability set forth in the Eclipse
36
- * Public License v. 2.0 are satisfied: GNU General Public License, version 2
37
- * with the GNU Classpath Exception which is available at
38
- * https://www.gnu.org/software/classpath/license.html.
39
- *
40
- * SPDX-License-Identifier: EPL-2.0 OR GPL-2.0 WITH Classpath-exception-2.0
41
- ********************************************************************************/
42
- const path = __importStar(require("path"));
43
- exports.TEST_RESOURCE_PATH = path.resolve(__dirname, '..', '..', 'test-resources');
44
- //# sourceMappingURL=test-util.spec.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"test-util.spec.js","sourceRoot":"","sources":["../../src/util/test-util.spec.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;AAAA;;;;;;;;;;;;;;kFAckF;AAClF,2CAA6B;AAEhB,QAAA,kBAAkB,GAAG,IAAI,CAAC,OAAO,CAAC,SAAS,EAAE,IAAI,EAAE,IAAI,EAAE,gBAAgB,CAAC,CAAC"}