@eclipse-glsp/cli 2.2.1 → 2.3.0-next.17
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/README.md +143 -38
- package/dist/cli.js +21959 -0
- package/dist/cli.js.map +6 -0
- package/package.json +22 -29
- package/bin/glsp +0 -2
- package/lib/app.d.ts +0 -3
- package/lib/app.d.ts.map +0 -1
- package/lib/app.js +0 -36
- package/lib/app.js.map +0 -1
- package/lib/commands/check-header.d.ts +0 -21
- package/lib/commands/check-header.d.ts.map +0 -1
- package/lib/commands/check-header.js +0 -240
- package/lib/commands/check-header.js.map +0 -1
- package/lib/commands/checkout.d.ts +0 -27
- package/lib/commands/checkout.d.ts.map +0 -1
- package/lib/commands/checkout.js +0 -41
- package/lib/commands/checkout.js.map +0 -1
- package/lib/commands/coverage-report.d.ts +0 -29
- package/lib/commands/coverage-report.d.ts.map +0 -1
- package/lib/commands/coverage-report.js +0 -126
- package/lib/commands/coverage-report.js.map +0 -1
- package/lib/commands/generate-index.d.ts +0 -46
- package/lib/commands/generate-index.d.ts.map +0 -1
- package/lib/commands/generate-index.js +0 -172
- package/lib/commands/generate-index.js.map +0 -1
- package/lib/commands/release/common.d.ts +0 -68
- package/lib/commands/release/common.d.ts.map +0 -1
- package/lib/commands/release/common.js +0 -293
- package/lib/commands/release/common.js.map +0 -1
- package/lib/commands/release/release-client.d.ts +0 -3
- package/lib/commands/release/release-client.d.ts.map +0 -1
- package/lib/commands/release/release-client.js +0 -57
- package/lib/commands/release/release-client.js.map +0 -1
- package/lib/commands/release/release-eclipse-integration.d.ts +0 -18
- package/lib/commands/release/release-eclipse-integration.d.ts.map +0 -1
- package/lib/commands/release/release-eclipse-integration.js +0 -92
- package/lib/commands/release/release-eclipse-integration.js.map +0 -1
- package/lib/commands/release/release-java-server.d.ts +0 -3
- package/lib/commands/release/release-java-server.d.ts.map +0 -1
- package/lib/commands/release/release-java-server.js +0 -70
- package/lib/commands/release/release-java-server.js.map +0 -1
- package/lib/commands/release/release-server-node.d.ts +0 -18
- package/lib/commands/release/release-server-node.d.ts.map +0 -1
- package/lib/commands/release/release-server-node.js +0 -53
- package/lib/commands/release/release-server-node.js.map +0 -1
- package/lib/commands/release/release-theia-integration.d.ts +0 -18
- package/lib/commands/release/release-theia-integration.d.ts.map +0 -1
- package/lib/commands/release/release-theia-integration.js +0 -53
- package/lib/commands/release/release-theia-integration.js.map +0 -1
- package/lib/commands/release/release-vscode-integration.d.ts +0 -18
- package/lib/commands/release/release-vscode-integration.d.ts.map +0 -1
- package/lib/commands/release/release-vscode-integration.js +0 -53
- package/lib/commands/release/release-vscode-integration.js.map +0 -1
- package/lib/commands/release/release.d.ts +0 -14
- package/lib/commands/release/release.d.ts.map +0 -1
- package/lib/commands/release/release.js +0 -191
- package/lib/commands/release/release.js.map +0 -1
- package/lib/commands/repo/clone.d.ts +0 -28
- package/lib/commands/repo/clone.d.ts.map +0 -1
- package/lib/commands/repo/clone.js +0 -113
- package/lib/commands/repo/clone.js.map +0 -1
- package/lib/commands/repo/clone.spec.d.ts +0 -17
- package/lib/commands/repo/clone.spec.d.ts.map +0 -1
- package/lib/commands/repo/clone.spec.js +0 -126
- package/lib/commands/repo/clone.spec.js.map +0 -1
- package/lib/commands/repo/common.d.ts +0 -23
- package/lib/commands/repo/common.d.ts.map +0 -1
- package/lib/commands/repo/common.js +0 -18
- package/lib/commands/repo/common.js.map +0 -1
- package/lib/commands/repo/config.d.ts +0 -18
- package/lib/commands/repo/config.d.ts.map +0 -1
- package/lib/commands/repo/config.js +0 -28
- package/lib/commands/repo/config.js.map +0 -1
- package/lib/commands/repo/repo.d.ts +0 -17
- package/lib/commands/repo/repo.d.ts.map +0 -1
- package/lib/commands/repo/repo.js +0 -25
- package/lib/commands/repo/repo.js.map +0 -1
- package/lib/commands/update-next.d.ts +0 -20
- package/lib/commands/update-next.d.ts.map +0 -1
- package/lib/commands/update-next.js +0 -146
- package/lib/commands/update-next.js.map +0 -1
- package/lib/common/glsp-component.d.ts +0 -27
- package/lib/common/glsp-component.d.ts.map +0 -1
- package/lib/common/glsp-component.js +0 -13
- package/lib/common/glsp-component.js.map +0 -1
- package/lib/common/glsp-repo.d.ts +0 -44
- package/lib/common/glsp-repo.d.ts.map +0 -1
- package/lib/common/glsp-repo.js +0 -135
- package/lib/common/glsp-repo.js.map +0 -1
- package/lib/common/glsp-repo.spec.d.ts +0 -17
- package/lib/common/glsp-repo.spec.d.ts.map +0 -1
- package/lib/common/glsp-repo.spec.js +0 -130
- package/lib/common/glsp-repo.spec.js.map +0 -1
- package/lib/foo.spec.d.ts +0 -17
- package/lib/foo.spec.d.ts.map +0 -1
- package/lib/foo.spec.js +0 -23
- package/lib/foo.spec.js.map +0 -1
- package/lib/index.d.ts +0 -18
- package/lib/index.d.ts.map +0 -1
- package/lib/index.js +0 -18
- package/lib/index.js.map +0 -1
- package/lib/util/command-util.d.ts +0 -26
- package/lib/util/command-util.d.ts.map +0 -1
- package/lib/util/command-util.js +0 -59
- package/lib/util/command-util.js.map +0 -1
- package/lib/util/git-util.d.ts +0 -42
- package/lib/util/git-util.d.ts.map +0 -1
- package/lib/util/git-util.js +0 -124
- package/lib/util/git-util.js.map +0 -1
- package/lib/util/logger.d.ts +0 -23
- package/lib/util/logger.d.ts.map +0 -1
- package/lib/util/logger.js +0 -50
- package/lib/util/logger.js.map +0 -1
- package/lib/util/test-util.spec.d.ts +0 -2
- package/lib/util/test-util.spec.d.ts.map +0 -1
- package/lib/util/test-util.spec.js +0 -44
- package/lib/util/test-util.spec.js.map +0 -1
- package/lib/util/validation-util.d.ts +0 -5
- package/lib/util/validation-util.d.ts.map +0 -1
- package/lib/util/validation-util.js +0 -85
- package/lib/util/validation-util.js.map +0 -1
- package/src/app.ts +0 -35
- package/src/commands/check-header.ts +0 -280
- package/src/commands/coverage-report.ts +0 -113
- package/src/commands/generate-index.ts +0 -169
- package/src/commands/release/common.ts +0 -306
- package/src/commands/release/release-client.ts +0 -55
- package/src/commands/release/release-eclipse-integration.ts +0 -113
- package/src/commands/release/release-java-server.ts +0 -73
- package/src/commands/release/release-server-node.ts +0 -61
- package/src/commands/release/release-theia-integration.ts +0 -65
- package/src/commands/release/release-vscode-integration.ts +0 -67
- package/src/commands/release/release.ts +0 -215
- package/src/commands/update-next.ts +0 -129
- package/src/util/command-util.ts +0 -54
- package/src/util/git-util.ts +0 -123
- package/src/util/logger.ts +0 -57
- package/src/util/validation-util.ts +0 -62
|
@@ -1,53 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
/********************************************************************************
|
|
3
|
-
* Copyright (c) 2022-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 __importDefault = (this && this.__importDefault) || function (mod) {
|
|
18
|
-
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
19
|
-
};
|
|
20
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
21
|
-
exports.releaseServerNode = releaseServerNode;
|
|
22
|
-
const shelljs_1 = __importDefault(require("shelljs"));
|
|
23
|
-
const logger_1 = require("../../util/logger");
|
|
24
|
-
const common_js_1 = require("./common.js");
|
|
25
|
-
let REPO_ROOT;
|
|
26
|
-
async function releaseServerNode(options) {
|
|
27
|
-
logger_1.LOGGER.info('Prepare glsp-server-node release');
|
|
28
|
-
logger_1.LOGGER.debug('Release options: ', options);
|
|
29
|
-
REPO_ROOT = (0, common_js_1.checkoutAndCd)(options);
|
|
30
|
-
updateExternalGLSPDependencies(options.version);
|
|
31
|
-
generateChangeLog();
|
|
32
|
-
(0, common_js_1.lernaSetVersion)(REPO_ROOT, options.version);
|
|
33
|
-
build();
|
|
34
|
-
if (options.npmDryRun) {
|
|
35
|
-
(0, common_js_1.updateLernaForDryRun)();
|
|
36
|
-
}
|
|
37
|
-
(0, common_js_1.commitAndTag)(options.version, REPO_ROOT);
|
|
38
|
-
(0, common_js_1.publish)(REPO_ROOT, options);
|
|
39
|
-
}
|
|
40
|
-
function updateExternalGLSPDependencies(version) {
|
|
41
|
-
logger_1.LOGGER.info('Update external GLSP dependencies (Protocol)');
|
|
42
|
-
shelljs_1.default.cd(REPO_ROOT);
|
|
43
|
-
(0, common_js_1.updateVersion)({ name: '@eclipse-glsp/protocol', version });
|
|
44
|
-
}
|
|
45
|
-
function build() {
|
|
46
|
-
logger_1.LOGGER.info('Install & Build with yarn');
|
|
47
|
-
(0, common_js_1.yarnInstall)(REPO_ROOT);
|
|
48
|
-
logger_1.LOGGER.debug('Build successful');
|
|
49
|
-
}
|
|
50
|
-
function generateChangeLog() {
|
|
51
|
-
// do nothing for now
|
|
52
|
-
}
|
|
53
|
-
//# sourceMappingURL=release-server-node.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"release-server-node.js","sourceRoot":"","sources":["../../../src/commands/release/release-server-node.ts"],"names":[],"mappings":";AAAA;;;;;;;;;;;;;;kFAckF;;;;;AAiBlF,8CAaC;AA5BD,sDAAyB;AACzB,8CAA2C;AAC3C,2CASqB;AAErB,IAAI,SAAiB,CAAC;AAEf,KAAK,UAAU,iBAAiB,CAAC,OAAuB;IAC3D,eAAM,CAAC,IAAI,CAAC,kCAAkC,CAAC,CAAC;IAChD,eAAM,CAAC,KAAK,CAAC,mBAAmB,EAAE,OAAO,CAAC,CAAC;IAC3C,SAAS,GAAG,IAAA,yBAAa,EAAC,OAAO,CAAC,CAAC;IACnC,8BAA8B,CAAC,OAAO,CAAC,OAAO,CAAC,CAAC;IAChD,iBAAiB,EAAE,CAAC;IACpB,IAAA,2BAAe,EAAC,SAAS,EAAE,OAAO,CAAC,OAAO,CAAC,CAAC;IAC5C,KAAK,EAAE,CAAC;IACR,IAAI,OAAO,CAAC,SAAS,EAAE,CAAC;QACpB,IAAA,gCAAoB,GAAE,CAAC;IAC3B,CAAC;IACD,IAAA,wBAAY,EAAC,OAAO,CAAC,OAAO,EAAE,SAAS,CAAC,CAAC;IACzC,IAAA,mBAAO,EAAC,SAAS,EAAE,OAAO,CAAC,CAAC;AAChC,CAAC;AAED,SAAS,8BAA8B,CAAC,OAAe;IACnD,eAAM,CAAC,IAAI,CAAC,8CAA8C,CAAC,CAAC;IAC5D,iBAAE,CAAC,EAAE,CAAC,SAAS,CAAC,CAAC;IACjB,IAAA,yBAAa,EAAC,EAAE,IAAI,EAAE,wBAAwB,EAAE,OAAO,EAAE,CAAC,CAAC;AAC/D,CAAC;AAED,SAAS,KAAK;IACV,eAAM,CAAC,IAAI,CAAC,2BAA2B,CAAC,CAAC;IACzC,IAAA,uBAAW,EAAC,SAAS,CAAC,CAAC;IACvB,eAAM,CAAC,KAAK,CAAC,kBAAkB,CAAC,CAAC;AACrC,CAAC;AAED,SAAS,iBAAiB;IACtB,qBAAqB;AACzB,CAAC"}
|
|
@@ -1,18 +0,0 @@
|
|
|
1
|
-
/********************************************************************************
|
|
2
|
-
* Copyright (c) 2022-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 { ReleaseOptions } from './common.js';
|
|
17
|
-
export declare function releaseTheiaIntegration(options: ReleaseOptions): Promise<void>;
|
|
18
|
-
//# sourceMappingURL=release-theia-integration.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"release-theia-integration.d.ts","sourceRoot":"","sources":["../../../src/commands/release/release-theia-integration.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;kFAckF;AAIlF,OAAO,EAKH,cAAc,EAIjB,MAAM,aAAa,CAAC;AAIrB,wBAAsB,uBAAuB,CAAC,OAAO,EAAE,cAAc,GAAG,OAAO,CAAC,IAAI,CAAC,CAapF"}
|
|
@@ -1,53 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
/********************************************************************************
|
|
3
|
-
* Copyright (c) 2022-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 __importDefault = (this && this.__importDefault) || function (mod) {
|
|
18
|
-
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
19
|
-
};
|
|
20
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
21
|
-
exports.releaseTheiaIntegration = releaseTheiaIntegration;
|
|
22
|
-
const shelljs_1 = __importDefault(require("shelljs"));
|
|
23
|
-
const logger_1 = require("../../util/logger");
|
|
24
|
-
const common_js_1 = require("./common.js");
|
|
25
|
-
let REPO_ROOT;
|
|
26
|
-
async function releaseTheiaIntegration(options) {
|
|
27
|
-
logger_1.LOGGER.info('Prepare glsp-theia-integration release');
|
|
28
|
-
logger_1.LOGGER.debug('Release options: ', options);
|
|
29
|
-
REPO_ROOT = (0, common_js_1.checkoutAndCd)(options);
|
|
30
|
-
updateExternalGLSPDependencies(options.version);
|
|
31
|
-
generateChangeLog();
|
|
32
|
-
(0, common_js_1.lernaSetVersion)(REPO_ROOT, options.version);
|
|
33
|
-
build();
|
|
34
|
-
if (options.npmDryRun) {
|
|
35
|
-
(0, common_js_1.updateLernaForDryRun)();
|
|
36
|
-
}
|
|
37
|
-
(0, common_js_1.commitAndTag)(options.version, REPO_ROOT);
|
|
38
|
-
(0, common_js_1.publish)(REPO_ROOT, options);
|
|
39
|
-
}
|
|
40
|
-
function updateExternalGLSPDependencies(version) {
|
|
41
|
-
logger_1.LOGGER.info('Update external GLSP dependencies (Client and workflow example & server)');
|
|
42
|
-
shelljs_1.default.cd(REPO_ROOT);
|
|
43
|
-
(0, common_js_1.updateVersion)({ name: '@eclipse-glsp/client', version }, { name: '@eclipse-glsp-examples/workflow-glsp', version }, { name: '@eclipse-glsp-examples/workflow-server', version });
|
|
44
|
-
}
|
|
45
|
-
function build() {
|
|
46
|
-
logger_1.LOGGER.info('Install & Build with yarn');
|
|
47
|
-
(0, common_js_1.yarnInstall)(REPO_ROOT);
|
|
48
|
-
logger_1.LOGGER.debug('Build successful');
|
|
49
|
-
}
|
|
50
|
-
function generateChangeLog() {
|
|
51
|
-
// do nothing for now
|
|
52
|
-
}
|
|
53
|
-
//# sourceMappingURL=release-theia-integration.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"release-theia-integration.js","sourceRoot":"","sources":["../../../src/commands/release/release-theia-integration.ts"],"names":[],"mappings":";AAAA;;;;;;;;;;;;;;kFAckF;;;;;AAiBlF,0DAaC;AA5BD,sDAAyB;AACzB,8CAA2C;AAC3C,2CASqB;AAErB,IAAI,SAAiB,CAAC;AAEf,KAAK,UAAU,uBAAuB,CAAC,OAAuB;IACjE,eAAM,CAAC,IAAI,CAAC,wCAAwC,CAAC,CAAC;IACtD,eAAM,CAAC,KAAK,CAAC,mBAAmB,EAAE,OAAO,CAAC,CAAC;IAC3C,SAAS,GAAG,IAAA,yBAAa,EAAC,OAAO,CAAC,CAAC;IACnC,8BAA8B,CAAC,OAAO,CAAC,OAAO,CAAC,CAAC;IAChD,iBAAiB,EAAE,CAAC;IACpB,IAAA,2BAAe,EAAC,SAAS,EAAE,OAAO,CAAC,OAAO,CAAC,CAAC;IAC5C,KAAK,EAAE,CAAC;IACR,IAAI,OAAO,CAAC,SAAS,EAAE,CAAC;QACpB,IAAA,gCAAoB,GAAE,CAAC;IAC3B,CAAC;IACD,IAAA,wBAAY,EAAC,OAAO,CAAC,OAAO,EAAE,SAAS,CAAC,CAAC;IACzC,IAAA,mBAAO,EAAC,SAAS,EAAE,OAAO,CAAC,CAAC;AAChC,CAAC;AAED,SAAS,8BAA8B,CAAC,OAAe;IACnD,eAAM,CAAC,IAAI,CAAC,0EAA0E,CAAC,CAAC;IACxF,iBAAE,CAAC,EAAE,CAAC,SAAS,CAAC,CAAC;IACjB,IAAA,yBAAa,EACT,EAAE,IAAI,EAAE,sBAAsB,EAAE,OAAO,EAAE,EACzC,EAAE,IAAI,EAAE,sCAAsC,EAAE,OAAO,EAAE,EACzD,EAAE,IAAI,EAAE,wCAAwC,EAAE,OAAO,EAAE,CAC9D,CAAC;AACN,CAAC;AAED,SAAS,KAAK;IACV,eAAM,CAAC,IAAI,CAAC,2BAA2B,CAAC,CAAC;IACzC,IAAA,uBAAW,EAAC,SAAS,CAAC,CAAC;IACvB,eAAM,CAAC,KAAK,CAAC,kBAAkB,CAAC,CAAC;AACrC,CAAC;AAED,SAAS,iBAAiB;IACtB,qBAAqB;AACzB,CAAC"}
|
|
@@ -1,18 +0,0 @@
|
|
|
1
|
-
/********************************************************************************
|
|
2
|
-
* Copyright (c) 2022-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 { ReleaseOptions } from './common.js';
|
|
17
|
-
export declare function releaseVscodeIntegration(options: ReleaseOptions): Promise<void>;
|
|
18
|
-
//# sourceMappingURL=release-vscode-integration.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"release-vscode-integration.d.ts","sourceRoot":"","sources":["../../../src/commands/release/release-vscode-integration.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;kFAckF;AAIlF,OAAO,EAKH,cAAc,EAIjB,MAAM,aAAa,CAAC;AAIrB,wBAAsB,wBAAwB,CAAC,OAAO,EAAE,cAAc,GAAG,OAAO,CAAC,IAAI,CAAC,CAarF"}
|
|
@@ -1,53 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
/********************************************************************************
|
|
3
|
-
* Copyright (c) 2022-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 __importDefault = (this && this.__importDefault) || function (mod) {
|
|
18
|
-
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
19
|
-
};
|
|
20
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
21
|
-
exports.releaseVscodeIntegration = releaseVscodeIntegration;
|
|
22
|
-
const shelljs_1 = __importDefault(require("shelljs"));
|
|
23
|
-
const logger_1 = require("../../util/logger");
|
|
24
|
-
const common_js_1 = require("./common.js");
|
|
25
|
-
let REPO_ROOT;
|
|
26
|
-
async function releaseVscodeIntegration(options) {
|
|
27
|
-
logger_1.LOGGER.info('Prepare glsp-vscode-integration release');
|
|
28
|
-
logger_1.LOGGER.debug('Release options: ', options);
|
|
29
|
-
REPO_ROOT = (0, common_js_1.checkoutAndCd)(options);
|
|
30
|
-
updateExternalGLSPDependencies(options.version);
|
|
31
|
-
generateChangeLog();
|
|
32
|
-
(0, common_js_1.lernaSetVersion)(REPO_ROOT, options.version);
|
|
33
|
-
build();
|
|
34
|
-
if (options.npmDryRun) {
|
|
35
|
-
(0, common_js_1.updateLernaForDryRun)();
|
|
36
|
-
}
|
|
37
|
-
(0, common_js_1.commitAndTag)(options.version, REPO_ROOT);
|
|
38
|
-
(0, common_js_1.publish)(REPO_ROOT, options);
|
|
39
|
-
}
|
|
40
|
-
function updateExternalGLSPDependencies(version) {
|
|
41
|
-
logger_1.LOGGER.info('Update external GLSP dependencies (Protocol)');
|
|
42
|
-
shelljs_1.default.cd(REPO_ROOT);
|
|
43
|
-
(0, common_js_1.updateVersion)({ name: '@eclipse-glsp/protocol', version }, { name: '@eclipse-glsp/client', version }, { name: '@eclipse-glsp-examples/workflow-glsp', version }, { name: '@eclipse-glsp-examples/workflow-server', version }, { name: '@eclipse-glsp-examples/workflow-server-bundled', version });
|
|
44
|
-
}
|
|
45
|
-
function build() {
|
|
46
|
-
logger_1.LOGGER.info('Install & Build with yarn');
|
|
47
|
-
(0, common_js_1.yarnInstall)(REPO_ROOT);
|
|
48
|
-
logger_1.LOGGER.debug('Build successful');
|
|
49
|
-
}
|
|
50
|
-
function generateChangeLog() {
|
|
51
|
-
// do nothing for now
|
|
52
|
-
}
|
|
53
|
-
//# sourceMappingURL=release-vscode-integration.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"release-vscode-integration.js","sourceRoot":"","sources":["../../../src/commands/release/release-vscode-integration.ts"],"names":[],"mappings":";AAAA;;;;;;;;;;;;;;kFAckF;;;;;AAiBlF,4DAaC;AA5BD,sDAAyB;AACzB,8CAA2C;AAC3C,2CASqB;AAErB,IAAI,SAAiB,CAAC;AAEf,KAAK,UAAU,wBAAwB,CAAC,OAAuB;IAClE,eAAM,CAAC,IAAI,CAAC,yCAAyC,CAAC,CAAC;IACvD,eAAM,CAAC,KAAK,CAAC,mBAAmB,EAAE,OAAO,CAAC,CAAC;IAC3C,SAAS,GAAG,IAAA,yBAAa,EAAC,OAAO,CAAC,CAAC;IACnC,8BAA8B,CAAC,OAAO,CAAC,OAAO,CAAC,CAAC;IAChD,iBAAiB,EAAE,CAAC;IACpB,IAAA,2BAAe,EAAC,SAAS,EAAE,OAAO,CAAC,OAAO,CAAC,CAAC;IAC5C,KAAK,EAAE,CAAC;IACR,IAAI,OAAO,CAAC,SAAS,EAAE,CAAC;QACpB,IAAA,gCAAoB,GAAE,CAAC;IAC3B,CAAC;IACD,IAAA,wBAAY,EAAC,OAAO,CAAC,OAAO,EAAE,SAAS,CAAC,CAAC;IACzC,IAAA,mBAAO,EAAC,SAAS,EAAE,OAAO,CAAC,CAAC;AAChC,CAAC;AAED,SAAS,8BAA8B,CAAC,OAAe;IACnD,eAAM,CAAC,IAAI,CAAC,8CAA8C,CAAC,CAAC;IAC5D,iBAAE,CAAC,EAAE,CAAC,SAAS,CAAC,CAAC;IACjB,IAAA,yBAAa,EACT,EAAE,IAAI,EAAE,wBAAwB,EAAE,OAAO,EAAE,EAC3C,EAAE,IAAI,EAAE,sBAAsB,EAAE,OAAO,EAAE,EACzC,EAAE,IAAI,EAAE,sCAAsC,EAAE,OAAO,EAAE,EACzD,EAAE,IAAI,EAAE,wCAAwC,EAAE,OAAO,EAAE,EAC3D,EAAE,IAAI,EAAE,gDAAgD,EAAE,OAAO,EAAE,CACtE,CAAC;AACN,CAAC;AAED,SAAS,KAAK;IACV,eAAM,CAAC,IAAI,CAAC,2BAA2B,CAAC,CAAC;IACzC,IAAA,uBAAW,EAAC,SAAS,CAAC,CAAC;IACvB,eAAM,CAAC,KAAK,CAAC,kBAAkB,CAAC,CAAC;AACrC,CAAC;AAED,SAAS,iBAAiB;IACtB,qBAAqB;AACzB,CAAC"}
|
|
@@ -1,14 +0,0 @@
|
|
|
1
|
-
import { Component, ReleaseType } from './common.js';
|
|
2
|
-
interface ReleaseCmdOptions {
|
|
3
|
-
checkoutDir: string;
|
|
4
|
-
branch: string;
|
|
5
|
-
force: boolean;
|
|
6
|
-
publish: boolean;
|
|
7
|
-
npmDryRun: boolean;
|
|
8
|
-
draft: boolean;
|
|
9
|
-
verbose: boolean;
|
|
10
|
-
}
|
|
11
|
-
export declare const ReleaseCommand: import("commander").Command;
|
|
12
|
-
export declare function release(component: Component, releaseType: ReleaseType, customVersion: string | undefined, cliOptions: ReleaseCmdOptions): Promise<void>;
|
|
13
|
-
export {};
|
|
14
|
-
//# sourceMappingURL=release.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"release.d.ts","sourceRoot":"","sources":["../../../src/commands/release/release.ts"],"names":[],"mappings":"AAyBA,OAAO,EACH,SAAS,EAET,WAAW,EAKd,MAAM,aAAa,CAAC;AAQrB,UAAU,iBAAiB;IACvB,WAAW,EAAE,MAAM,CAAC;IACpB,MAAM,EAAE,MAAM,CAAC;IACf,KAAK,EAAE,OAAO,CAAC;IACf,OAAO,EAAE,OAAO,CAAC;IACjB,SAAS,EAAE,OAAO,CAAC;IACnB,KAAK,EAAE,OAAO,CAAC;IACf,OAAO,EAAE,OAAO,CAAC;CACpB;AAED,eAAO,MAAM,cAAc,6BAiBP,CAAC;AAIrB,wBAAsB,OAAO,CACzB,SAAS,EAAE,SAAS,EACpB,WAAW,EAAE,WAAW,EACxB,aAAa,EAAE,MAAM,GAAG,SAAS,EACjC,UAAU,EAAE,iBAAiB,GAC9B,OAAO,CAAC,IAAI,CAAC,CAuCf"}
|
|
@@ -1,191 +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
|
-
var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
26
|
-
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
27
|
-
};
|
|
28
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
29
|
-
exports.ReleaseCommand = void 0;
|
|
30
|
-
exports.release = release;
|
|
31
|
-
const commander_1 = require("commander");
|
|
32
|
-
const process_1 = require("process");
|
|
33
|
-
const readline_1 = require("readline");
|
|
34
|
-
const readline = __importStar(require("readline-sync"));
|
|
35
|
-
const semver = __importStar(require("semver"));
|
|
36
|
-
const shelljs_1 = __importDefault(require("shelljs"));
|
|
37
|
-
const command_util_1 = require("../../util/command-util");
|
|
38
|
-
const logger_1 = require("../../util/logger");
|
|
39
|
-
const validation_util_1 = require("../../util/validation-util");
|
|
40
|
-
const common_js_1 = require("./common.js");
|
|
41
|
-
const release_client_1 = require("./release-client");
|
|
42
|
-
const release_eclipse_integration_1 = require("./release-eclipse-integration");
|
|
43
|
-
const release_java_server_1 = require("./release-java-server");
|
|
44
|
-
const release_server_node_1 = require("./release-server-node");
|
|
45
|
-
const release_theia_integration_1 = require("./release-theia-integration");
|
|
46
|
-
const release_vscode_integration_1 = require("./release-vscode-integration");
|
|
47
|
-
exports.ReleaseCommand = (0, command_util_1.baseCommand)()
|
|
48
|
-
.name('release')
|
|
49
|
-
.description('Prepare & publish a new release for a glsp component')
|
|
50
|
-
.addArgument(new commander_1.Argument('<component>', 'The glsp component to be released').choices(common_js_1.Component.CLI_CHOICES).argParser(common_js_1.Component.parse))
|
|
51
|
-
.addArgument(new commander_1.Argument('<releaseType>', 'The release type').choices(common_js_1.ReleaseType.CLI_CHOICES))
|
|
52
|
-
.argument('[customVersion]', 'Custom version number. Will be ignored if the release type is not "custom"', validation_util_1.validateVersion)
|
|
53
|
-
.option('-f, --force', 'Enable force mode', false)
|
|
54
|
-
.option('-d, --checkoutDir <checkoutDir>', 'The git checkout directory', validation_util_1.validateDirectory, process.cwd())
|
|
55
|
-
.option('-b, --branch <branch>', 'The git branch to checkout', 'master')
|
|
56
|
-
.option('-v, --verbose', 'Enable verbose (debug) log output', false)
|
|
57
|
-
.option('--no-publish', 'Only prepare release but do not publish to github', true)
|
|
58
|
-
.option('--draft', 'Publish github releases as drafts', false)
|
|
59
|
-
.option('--npm-dryRun', 'Execute a npm dry-run for inspection. Publishes to the local npm registry and does not publish to github', false)
|
|
60
|
-
.action(release);
|
|
61
|
-
let verdaccioChildProcess = undefined;
|
|
62
|
-
async function release(component, releaseType, customVersion, cliOptions) {
|
|
63
|
-
try {
|
|
64
|
-
(0, logger_1.configureLogger)(cliOptions.verbose);
|
|
65
|
-
logger_1.LOGGER.debug('Cli options:', cliOptions);
|
|
66
|
-
(0, command_util_1.configureShell)({ silent: !cliOptions.verbose });
|
|
67
|
-
checkGHCli();
|
|
68
|
-
const version = deriveVersion(releaseType, customVersion);
|
|
69
|
-
const options = { ...cliOptions, component, releaseType, version };
|
|
70
|
-
if (cliOptions.npmDryRun && options.component.releaseRepo === 'npm') {
|
|
71
|
-
await launchVerdaccio().catch(error => logger_1.LOGGER.error('Error occurred during verdaccio launch', error));
|
|
72
|
-
}
|
|
73
|
-
switch (component.type) {
|
|
74
|
-
case 'server-java':
|
|
75
|
-
(0, common_js_1.checkIfMavenVersionExists)('org.eclipse.glsp', 'org.eclipse.glsp.server', (0, common_js_1.asMvnVersion)(version));
|
|
76
|
-
return (0, release_java_server_1.releaseJavaServer)(options);
|
|
77
|
-
case 'server-node':
|
|
78
|
-
await (0, common_js_1.checkIfNpmVersionIsNew)('@eclipse-glsp/server-node', version);
|
|
79
|
-
return (0, release_server_node_1.releaseServerNode)(options);
|
|
80
|
-
case 'client':
|
|
81
|
-
await (0, common_js_1.checkIfNpmVersionIsNew)('@eclipse-glsp/client', version);
|
|
82
|
-
return (0, release_client_1.releaseClient)(options);
|
|
83
|
-
case 'theia-integration':
|
|
84
|
-
await (0, common_js_1.checkIfNpmVersionIsNew)('@eclipse-glsp/theia-integration', version);
|
|
85
|
-
return (0, release_theia_integration_1.releaseTheiaIntegration)(options);
|
|
86
|
-
case 'vscode-integration':
|
|
87
|
-
await (0, common_js_1.checkIfNpmVersionIsNew)('@eclipse-glsp/vscode-integration', version);
|
|
88
|
-
return (0, release_vscode_integration_1.releaseVscodeIntegration)(options);
|
|
89
|
-
case 'eclipse-integration':
|
|
90
|
-
await (0, common_js_1.checkIfNpmVersionIsNew)('@eclipse-glsp/ide', version);
|
|
91
|
-
return (0, release_eclipse_integration_1.releaseEclipseIntegration)(options);
|
|
92
|
-
}
|
|
93
|
-
}
|
|
94
|
-
catch (err) {
|
|
95
|
-
console.error('An error occurred during command execution:', err);
|
|
96
|
-
(0, process_1.exit)(1);
|
|
97
|
-
}
|
|
98
|
-
finally {
|
|
99
|
-
if (verdaccioChildProcess) {
|
|
100
|
-
verdaccioChildProcess.kill();
|
|
101
|
-
}
|
|
102
|
-
}
|
|
103
|
-
}
|
|
104
|
-
function checkGHCli() {
|
|
105
|
-
logger_1.LOGGER.debug('Verify that Github CLI is configured correctly');
|
|
106
|
-
if (!isGithubCLIAuthenticated()) {
|
|
107
|
-
throw new Error("Github CLI is not configured properly. No user is logged in for host 'github.com'");
|
|
108
|
-
}
|
|
109
|
-
}
|
|
110
|
-
function isGithubCLIAuthenticated() {
|
|
111
|
-
logger_1.LOGGER.debug('Verify that Github CLI is installed');
|
|
112
|
-
(0, command_util_1.fatalExec)('which gh', 'Github CLI is not installed!');
|
|
113
|
-
const status = shelljs_1.default.exec('gh auth status', (0, command_util_1.getShellConfig)());
|
|
114
|
-
if (status.code !== 0) {
|
|
115
|
-
if (status.stderr.includes('You are not logged into any GitHub hosts')) {
|
|
116
|
-
return false;
|
|
117
|
-
}
|
|
118
|
-
throw new Error(status.stderr);
|
|
119
|
-
}
|
|
120
|
-
if (!status.stdout.trim().includes('Logged in to github.com')) {
|
|
121
|
-
logger_1.LOGGER.debug("No user is logged in for host 'github.com'");
|
|
122
|
-
return false;
|
|
123
|
-
}
|
|
124
|
-
logger_1.LOGGER.debug('Github CLI is authenticated and ready to use');
|
|
125
|
-
return true;
|
|
126
|
-
}
|
|
127
|
-
function launchVerdaccio() {
|
|
128
|
-
logger_1.LOGGER.debug('Verify that verdaccio is installed and start if necessary');
|
|
129
|
-
(0, command_util_1.fatalExec)('which verdaccio', 'Verdaccio is not installed!');
|
|
130
|
-
// Check if verdaccio is alreaddy running
|
|
131
|
-
const result = shelljs_1.default.exec(`curl -i ${common_js_1.VERDACCIO_REGISTRY}`, (0, command_util_1.getShellConfig)());
|
|
132
|
-
if (result.code !== 0) {
|
|
133
|
-
logger_1.LOGGER.info('Starting local verdaccio registry');
|
|
134
|
-
verdaccioChildProcess = shelljs_1.default.exec('verdaccio', { async: true, silent: true });
|
|
135
|
-
return new Promise(resolve => {
|
|
136
|
-
(0, readline_1.createInterface)(verdaccioChildProcess.stdout).on('line', line => {
|
|
137
|
-
if (line.includes(`http address - ${common_js_1.VERDACCIO_REGISTRY}`)) {
|
|
138
|
-
resolve();
|
|
139
|
-
}
|
|
140
|
-
});
|
|
141
|
-
});
|
|
142
|
-
}
|
|
143
|
-
return Promise.resolve();
|
|
144
|
-
}
|
|
145
|
-
function deriveVersion(releaseType, customVersion) {
|
|
146
|
-
logger_1.LOGGER.debug(`Derive version from release type: ${release}`);
|
|
147
|
-
switch (releaseType) {
|
|
148
|
-
case 'custom':
|
|
149
|
-
return getCustomVersion(customVersion);
|
|
150
|
-
case 'rc':
|
|
151
|
-
return getRCVersion();
|
|
152
|
-
case 'patch':
|
|
153
|
-
case 'major':
|
|
154
|
-
case 'minor':
|
|
155
|
-
return semverInc(releaseType);
|
|
156
|
-
}
|
|
157
|
-
}
|
|
158
|
-
const REFERENCE_NPM_PACKAGE = '@eclipse-glsp/ide';
|
|
159
|
-
function getRCVersion() {
|
|
160
|
-
logger_1.LOGGER.debug('Retrieve and new RC version');
|
|
161
|
-
const newBaseVersion = semverInc('minor');
|
|
162
|
-
const currentRcVersion = shelljs_1.default.exec(`npm view ${REFERENCE_NPM_PACKAGE} dist-tags.rc`, (0, command_util_1.getShellConfig)()).stdout.trim();
|
|
163
|
-
const currentRcBaseVersion = currentRcVersion.split('-')[0];
|
|
164
|
-
if (currentRcBaseVersion !== newBaseVersion) {
|
|
165
|
-
return `${newBaseVersion}-RC01`;
|
|
166
|
-
}
|
|
167
|
-
let rcNumber = Number.parseInt(currentRcVersion.replace(`${currentRcBaseVersion}-RC`, ''), 10);
|
|
168
|
-
rcNumber++;
|
|
169
|
-
return `${newBaseVersion}-RC` + `${rcNumber}`.padStart(2, '0');
|
|
170
|
-
}
|
|
171
|
-
function getCustomVersion(customVersion) {
|
|
172
|
-
logger_1.LOGGER.debug('Retrieve and validate custom version');
|
|
173
|
-
logger_1.LOGGER.debug(customVersion ? `Custom version has been passed as argument: ${customVersion}` : 'Prompt custom version from user');
|
|
174
|
-
const version = customVersion !== null && customVersion !== void 0 ? customVersion : readline.question('> Please enter the new version');
|
|
175
|
-
return (0, validation_util_1.validateVersion)(version);
|
|
176
|
-
}
|
|
177
|
-
function getCurrentVersion() {
|
|
178
|
-
logger_1.LOGGER.debug('Retrieve base version by querying the latest tag of the reference npm package');
|
|
179
|
-
const version = shelljs_1.default.exec(`npm view ${REFERENCE_NPM_PACKAGE} dist-tags.latest`, (0, command_util_1.getShellConfig)()).stdout.trim();
|
|
180
|
-
return (0, validation_util_1.validateVersion)(version);
|
|
181
|
-
}
|
|
182
|
-
function semverInc(releaseType, identifier) {
|
|
183
|
-
const currentVersion = getCurrentVersion();
|
|
184
|
-
logger_1.LOGGER.debug(`Execute: semver.inc("${currentVersion}", ${releaseType}, ${identifier})`);
|
|
185
|
-
const newVersion = semver.inc(currentVersion, releaseType, identifier);
|
|
186
|
-
if (!newVersion) {
|
|
187
|
-
throw new Error(`Could not increment version: ${currentVersion} `);
|
|
188
|
-
}
|
|
189
|
-
return newVersion;
|
|
190
|
-
}
|
|
191
|
-
//# sourceMappingURL=release.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"release.js","sourceRoot":"","sources":["../../../src/commands/release/release.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAwEA,0BA4CC;AApGD,yCAAqC;AACrC,qCAA+B;AAC/B,uCAA2C;AAC3C,wDAA0C;AAC1C,+CAAiC;AACjC,sDAAyB;AACzB,0DAAiG;AACjG,8CAA4D;AAC5D,gEAAgF;AAChF,2CAQqB;AACrB,qDAAiD;AACjD,+EAA0E;AAC1E,+DAA0D;AAC1D,+DAA0D;AAC1D,2EAAsE;AACtE,6EAAwE;AAY3D,QAAA,cAAc,GAAG,IAAA,0BAAW,GAAE;KACtC,IAAI,CAAC,SAAS,CAAC;KACf,WAAW,CAAC,sDAAsD,CAAC;KACnE,WAAW,CAAC,IAAI,oBAAQ,CAAC,aAAa,EAAE,mCAAmC,CAAC,CAAC,OAAO,CAAC,qBAAS,CAAC,WAAW,CAAC,CAAC,SAAS,CAAC,qBAAS,CAAC,KAAK,CAAC,CAAC;KACvI,WAAW,CAAC,IAAI,oBAAQ,CAAC,eAAe,EAAE,kBAAkB,CAAC,CAAC,OAAO,CAAC,uBAAW,CAAC,WAAW,CAAC,CAAC;KAC/F,QAAQ,CAAC,iBAAiB,EAAE,4EAA4E,EAAE,iCAAe,CAAC;KAC1H,MAAM,CAAC,aAAa,EAAE,mBAAmB,EAAE,KAAK,CAAC;KACjD,MAAM,CAAC,iCAAiC,EAAE,4BAA4B,EAAE,mCAAiB,EAAE,OAAO,CAAC,GAAG,EAAE,CAAC;KACzG,MAAM,CAAC,u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AC,CAAC;IACvE,CAAC;IACD,OAAO,UAAU,CAAC;AACtB,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,aA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AAC,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"}
|