@eclipse-glsp/cli 1.1.0-next.4c65907.114
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/LICENSE +642 -0
- package/README.md +45 -0
- package/bin/glsp +2 -0
- package/lib/app.d.ts +19 -0
- package/lib/app.d.ts.map +1 -0
- package/lib/app.js +46 -0
- package/lib/app.js.map +1 -0
- package/lib/release/common.d.ts +69 -0
- package/lib/release/common.d.ts.map +1 -0
- package/lib/release/common.js +273 -0
- package/lib/release/common.js.map +1 -0
- package/lib/release/release-client.d.ts +3 -0
- package/lib/release/release-client.d.ts.map +1 -0
- package/lib/release/release-client.js +53 -0
- package/lib/release/release-client.js.map +1 -0
- package/lib/release/release-eclipse-integration.d.ts +18 -0
- package/lib/release/release-eclipse-integration.d.ts.map +1 -0
- package/lib/release/release-eclipse-integration.js +90 -0
- package/lib/release/release-eclipse-integration.js.map +1 -0
- package/lib/release/release-java-server.d.ts +3 -0
- package/lib/release/release-java-server.d.ts.map +1 -0
- package/lib/release/release-java-server.js +67 -0
- package/lib/release/release-java-server.js.map +1 -0
- package/lib/release/release-server-node.d.ts +18 -0
- package/lib/release/release-server-node.d.ts.map +1 -0
- package/lib/release/release-server-node.js +51 -0
- package/lib/release/release-server-node.js.map +1 -0
- package/lib/release/release-theia-integration.d.ts +18 -0
- package/lib/release/release-theia-integration.d.ts.map +1 -0
- package/lib/release/release-theia-integration.js +62 -0
- package/lib/release/release-theia-integration.js.map +1 -0
- package/lib/release/release-vscode-integration.d.ts +18 -0
- package/lib/release/release-vscode-integration.d.ts.map +1 -0
- package/lib/release/release-vscode-integration.js +51 -0
- package/lib/release/release-vscode-integration.js.map +1 -0
- package/lib/release/release.d.ts +13 -0
- package/lib/release/release.d.ts.map +1 -0
- package/lib/release/release.js +133 -0
- package/lib/release/release.js.map +1 -0
- package/lib/util/command-util.d.ts +31 -0
- package/lib/util/command-util.d.ts.map +1 -0
- package/lib/util/command-util.js +38 -0
- package/lib/util/command-util.js.map +1 -0
- package/lib/util/git-util.d.ts +23 -0
- package/lib/util/git-util.d.ts.map +1 -0
- package/lib/util/git-util.js +87 -0
- package/lib/util/git-util.js.map +1 -0
- package/lib/util/logger.d.ts +9 -0
- package/lib/util/logger.d.ts.map +1 -0
- package/lib/util/logger.js +34 -0
- package/lib/util/logger.js.map +1 -0
- package/lib/util/validation-util.d.ts +5 -0
- package/lib/util/validation-util.d.ts.map +1 -0
- package/lib/util/validation-util.js +53 -0
- package/lib/util/validation-util.js.map +1 -0
- package/package.json +65 -0
- package/src/app.ts +49 -0
- package/src/release/common.ts +312 -0
- package/src/release/release-client.ts +64 -0
- package/src/release/release-eclipse-integration.ts +113 -0
- package/src/release/release-java-server.ts +72 -0
- package/src/release/release-server-node.ts +61 -0
- package/src/release/release-theia-integration.ts +77 -0
- package/src/release/release-vscode-integration.ts +65 -0
- package/src/release/release.ts +174 -0
- package/src/util/command-util.ts +63 -0
- package/src/util/git-util.ts +87 -0
- package/src/util/logger.ts +38 -0
- package/src/util/validation-util.ts +50 -0
|
@@ -0,0 +1,90 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
/********************************************************************************
|
|
3
|
+
* Copyright (c) 2022 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.releaseEclipseIntegration = void 0;
|
|
19
|
+
const sh = require("shelljs");
|
|
20
|
+
const command_util_1 = require("../util/command-util");
|
|
21
|
+
const logger_1 = require("../util/logger");
|
|
22
|
+
const common_1 = require("./common");
|
|
23
|
+
let REPO_ROOT;
|
|
24
|
+
async function releaseEclipseIntegration(options) {
|
|
25
|
+
logger_1.LOGGER.info('Prepare glsp-eclipse-integration release');
|
|
26
|
+
logger_1.LOGGER.debug('Release options: ', options);
|
|
27
|
+
(0, common_1.checkJavaServerVersion)(options.version);
|
|
28
|
+
REPO_ROOT = (0, common_1.checkoutAndCd)(options);
|
|
29
|
+
prepareClient(options);
|
|
30
|
+
prepareServer(options);
|
|
31
|
+
generateChangeLog();
|
|
32
|
+
(0, common_1.commitAndTag)((0, common_1.asMvnVersion)(options.version), REPO_ROOT);
|
|
33
|
+
(0, common_1.publish)(REPO_ROOT, options);
|
|
34
|
+
logger_1.LOGGER.info('glsp-eclipse-integration release successful!');
|
|
35
|
+
}
|
|
36
|
+
exports.releaseEclipseIntegration = releaseEclipseIntegration;
|
|
37
|
+
function prepareClient(options) {
|
|
38
|
+
logger_1.LOGGER.info('Prepare client');
|
|
39
|
+
updateExternalGLSPDependencies(options.version);
|
|
40
|
+
(0, common_1.lernaSetVersion)(`${REPO_ROOT}/client`, options.version);
|
|
41
|
+
buildClient();
|
|
42
|
+
if (options.npmDryRun) {
|
|
43
|
+
(0, common_1.updateLernaForDryRun)();
|
|
44
|
+
}
|
|
45
|
+
}
|
|
46
|
+
function updateExternalGLSPDependencies(version) {
|
|
47
|
+
logger_1.LOGGER.info('Update external GLSP dependencies (Client and workflow example)');
|
|
48
|
+
sh.cd(`${REPO_ROOT}/client`);
|
|
49
|
+
(0, common_1.updateVersion)({ name: '@eclipse-glsp/client', version }, { name: '@eclipse-glsp-examples/workflow-glsp', version });
|
|
50
|
+
}
|
|
51
|
+
function buildClient() {
|
|
52
|
+
logger_1.LOGGER.info('[Client] Install & Build with yarn');
|
|
53
|
+
(0, common_1.yarnInstall)(`${REPO_ROOT}/client`);
|
|
54
|
+
logger_1.LOGGER.debug('Build successful');
|
|
55
|
+
}
|
|
56
|
+
function generateChangeLog() {
|
|
57
|
+
// do nothing for now
|
|
58
|
+
}
|
|
59
|
+
function prepareServer(options) {
|
|
60
|
+
const mvnVersion = (0, common_1.asMvnVersion)(options.version);
|
|
61
|
+
setServerVersion(mvnVersion);
|
|
62
|
+
updateTarget(mvnVersion, options.releaseType);
|
|
63
|
+
buildServer();
|
|
64
|
+
}
|
|
65
|
+
function setServerVersion(version) {
|
|
66
|
+
logger_1.LOGGER.info(`Set pom version to ${version}`);
|
|
67
|
+
sh.cd(`${REPO_ROOT}/server`);
|
|
68
|
+
// Execute tycho-versions plugin
|
|
69
|
+
(0, command_util_1.fatalExec)(`mvn tycho-versions:set-version -DnewVersion=${version}`, 'Mvn set-versions failed', (0, command_util_1.getShellConfig)({ silent: false }));
|
|
70
|
+
logger_1.LOGGER.debug('Version update complete!');
|
|
71
|
+
}
|
|
72
|
+
function buildServer() {
|
|
73
|
+
sh.cd(`${REPO_ROOT}/server`);
|
|
74
|
+
logger_1.LOGGER.info('Build Server(P2)');
|
|
75
|
+
(0, command_util_1.fatalExec)('mvn clean install', 'P2 build failed', (0, command_util_1.getShellConfig)({ silent: false }));
|
|
76
|
+
}
|
|
77
|
+
function updateTarget(mvnVersion, releaseType) {
|
|
78
|
+
const p2SubLocation = releaseType === 'rc' ? 'staging' : 'releases';
|
|
79
|
+
const p2Location = `https://download.eclipse.org/glsp/server/p2/${p2SubLocation}/${mvnVersion}/`;
|
|
80
|
+
logger_1.LOGGER.info(`Update glsp server p2 repository to ${p2Location}`);
|
|
81
|
+
sh.cd(`${REPO_ROOT}/server/releng/org.eclipse.glsp.ide.releng.target`);
|
|
82
|
+
logger_1.LOGGER.debug('Update r2021-03.tpd file');
|
|
83
|
+
sh.exec(`sed -i 's_location "https://download.eclipse.org/glsp/server/p2/.*"_location "${p2Location}"_' r2021-03.tpd`, (0, command_util_1.getShellConfig)());
|
|
84
|
+
logger_1.LOGGER.debug('Update r2021-03.target file');
|
|
85
|
+
sh.exec(
|
|
86
|
+
// eslint-disable-next-line max-len
|
|
87
|
+
`sed -i 's_ <repository location="https://download.eclipse.org/glsp/server/p2/.*"_ <repository location="${p2Location}"_g' r2021-03.target`, (0, command_util_1.getShellConfig)());
|
|
88
|
+
logger_1.LOGGER.debug('Target update successful');
|
|
89
|
+
}
|
|
90
|
+
//# sourceMappingURL=release-eclipse-integration.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"release-eclipse-integration.js","sourceRoot":"","sources":["../../src/release/release-eclipse-integration.ts"],"names":[],"mappings":";AAAA;;;;;;;;;;;;;;kFAckF;;;AAElF,8BAA8B;AAC9B,uDAAiE;AACjE,2CAAwC;AACxC,qCAYkB;AAElB,IAAI,SAAiB,CAAC;AAEf,KAAK,UAAU,yBAAyB,CAAC,OAAuB;IACnE,eAAM,CAAC,IAAI,CAAC,0CAA0C,CAAC,CAAC;IACxD,eAAM,CAAC,KAAK,CAAC,mBAAmB,EAAE,OAAO,CAAC,CAAC;IAC3C,IAAA,+BAAsB,EAAC,OAAO,CAAC,OAAO,CAAC,CAAC;IAExC,SAAS,GAAG,IAAA,sBAAa,EAAC,OAAO,CAAC,CAAC;IACnC,aAAa,CAAC,OAAO,CAAC,CAAC;IACvB,aAAa,CAAC,OAAO,CAAC,CAAC;IACvB,iBAAiB,EAAE,CAAC;IACpB,IAAA,qBAAY,EAAC,IAAA,qBAAY,EAAC,OAAO,CAAC,OAAO,CAAC,EAAE,SAAS,CAAC,CAAC;IACvD,IAAA,gBAAO,EAAC,SAAS,EAAE,OAAO,CAAC,CAAC;IAC5B,eAAM,CAAC,IAAI,CAAC,8CAA8C,CAAC,CAAC;AAChE,CAAC;AAZD,8DAYC;AAED,SAAS,aAAa,CAAC,OAAuB;IAC1C,eAAM,CAAC,IAAI,CAAC,gBAAgB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,cAAc,EAAE,MAAM,UAAU,CAAC;AAI9F,wBAAsB,iBAAiB,CAAC,OAAO,EAAE,cAAc,GAAG,OAAO,CAAC,IAAI,CAAC,CAW9E"}
|
|
@@ -0,0 +1,67 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.releaseJavaServer = void 0;
|
|
4
|
+
/********************************************************************************
|
|
5
|
+
* Copyright (c) 2022 EclipseSource and others.
|
|
6
|
+
*
|
|
7
|
+
* This program and the accompanying materials are made available under the
|
|
8
|
+
* terms of the Eclipse Public License v. 2.0 which is available at
|
|
9
|
+
* http://www.eclipse.org/legal/epl-2.0.
|
|
10
|
+
*
|
|
11
|
+
* This Source Code may also be made available under the following Secondary
|
|
12
|
+
* Licenses when the conditions for such availability set forth in the Eclipse
|
|
13
|
+
* Public License v. 2.0 are satisfied: GNU General Public License, version 2
|
|
14
|
+
* with the GNU Classpath Exception which is available at
|
|
15
|
+
* https://www.gnu.org/software/classpath/license.html.
|
|
16
|
+
*
|
|
17
|
+
* SPDX-License-Identifier: EPL-2.0 OR GPL-2.0 WITH Classpath-exception-2.0
|
|
18
|
+
********************************************************************************/
|
|
19
|
+
const sh = require("shelljs");
|
|
20
|
+
const command_util_1 = require("../util/command-util");
|
|
21
|
+
const logger_1 = require("../util/logger");
|
|
22
|
+
const common_1 = require("./common");
|
|
23
|
+
let REPO_ROOT;
|
|
24
|
+
async function releaseJavaServer(options) {
|
|
25
|
+
logger_1.LOGGER.info('Prepare glsp-server release');
|
|
26
|
+
logger_1.LOGGER.debug('Release options: ', options);
|
|
27
|
+
const mvnVersion = (0, common_1.asMvnVersion)(options.version);
|
|
28
|
+
REPO_ROOT = (0, common_1.checkoutAndCd)(options);
|
|
29
|
+
setVersion(mvnVersion);
|
|
30
|
+
build();
|
|
31
|
+
generateChangeLog();
|
|
32
|
+
(0, common_1.commitAndTag)(mvnVersion, REPO_ROOT);
|
|
33
|
+
(0, common_1.publish)(REPO_ROOT, options);
|
|
34
|
+
logger_1.LOGGER.info('glsp-server release successful!');
|
|
35
|
+
}
|
|
36
|
+
exports.releaseJavaServer = releaseJavaServer;
|
|
37
|
+
function setVersion(version) {
|
|
38
|
+
logger_1.LOGGER.info(`Set pom version to ${version}`);
|
|
39
|
+
sh.cd(REPO_ROOT);
|
|
40
|
+
logger_1.LOGGER.debug('Preprocessing eclipse-plugins poms');
|
|
41
|
+
// Capture all poms with a `${package.type}` property
|
|
42
|
+
const pluginPoms = sh
|
|
43
|
+
.exec('grep -ril --include pom.xml \\${package-type}', (0, command_util_1.getShellConfig)()) //
|
|
44
|
+
.stdout.trim()
|
|
45
|
+
.split('\n')
|
|
46
|
+
.map(file => `${REPO_ROOT}/${file}`);
|
|
47
|
+
// Replace `${package.type}` property with `eclipse-plugin`
|
|
48
|
+
sh.sed('-i', /\${package-type}/, 'eclipse-plugin', pluginPoms);
|
|
49
|
+
logger_1.LOGGER.debug('Preprocessing complete');
|
|
50
|
+
// Execute tycho-versions plugin
|
|
51
|
+
(0, command_util_1.fatalExec)(`mvn tycho-versions:set-version -DnewVersion=${version}`, 'Mvn set-versions failed', (0, command_util_1.getShellConfig)({ silent: false }));
|
|
52
|
+
logger_1.LOGGER.debug('Restore eclipse-plugin poms');
|
|
53
|
+
sh.sed('-i', /<packaging>eclipse-plugin/, '<packaging>${package-type}', pluginPoms);
|
|
54
|
+
logger_1.LOGGER.debug('Version update complete!');
|
|
55
|
+
}
|
|
56
|
+
function generateChangeLog() {
|
|
57
|
+
// do nothing for now
|
|
58
|
+
}
|
|
59
|
+
function build() {
|
|
60
|
+
logger_1.LOGGER.info('Build M2 & P2');
|
|
61
|
+
logger_1.LOGGER.debug('M2');
|
|
62
|
+
(0, command_util_1.fatalExec)('mvn clean install -Pm2', 'M2 build failed', (0, command_util_1.getShellConfig)({ silent: false }));
|
|
63
|
+
console.log('');
|
|
64
|
+
logger_1.LOGGER.debug('P2');
|
|
65
|
+
(0, command_util_1.fatalExec)('mvn clean install -Pp2', 'P2 build failed', (0, command_util_1.getShellConfig)({ silent: false }));
|
|
66
|
+
}
|
|
67
|
+
//# sourceMappingURL=release-java-server.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"release-java-server.js","sourceRoot":"","sources":["../../src/release/release-java-server.ts"],"names":[],"mappings":";;;AAAA;;;;;;;;;;;;;;kFAckF;AAClF,8BAA8B;AAC9B,uDAAiE;AACjE,2CAAwC;AACxC,qCAA8F;AAE9F,IAAI,SAAiB,CAAC;AAEf,KAAK,UAAU,iBAAiB,CAAC,OAAuB;IAC3D,eAAM,CAAC,IAAI,CAAC,6BAA6B,CAAC,CAAC;IAC3C,eAAM,CAAC,KAAK,CAAC,mBAAmB,EAAE,OAAO,CAAC,CAAC;IAC3C,MAAM,UAAU,GAAG,IAAA,qBAAY,EAAC,OAAO,CAAC,OAAO,CAAC,CAAC;IACjD,SAAS,GAAG,IAAA,sBAAa,EAAC,OAAO,CAAC,CAAC;IACnC,UAAU,CAAC,UAAU,CAAC,CAAC;IACvB,KAAK,EAAE,CAAC;IACR,iBAAiB,EAAE,CAAC;IACpB,IAAA,qBAAY,EAAC,UAAU,EAAE,SAAS,CAAC,CAAC;IACpC,IAAA,gBAAO,EAAC,SAAS,EAAE,OAAO,CAAC,CAAC;IAC5B,eAAM,CAAC,IAAI,CAAC,iCAAiC,CAAC,CAAC;AACnD,CAAC;AAXD,8CAWC;AAED,SAAS,UAAU,CAAC,OAAe;IAC/B,eAAM,CAAC,IAAI,CAAC,sBAAsB,OAAO,EAAE,CAAC,CAAC;IAC7C,EAAE,CAAC,EAAE,CAAC,SAAS,CAAC,CAAC;IACjB,eAAM,CAAC,KAAK,CAAC,oCAAoC,CAAC,CAAC;IACnD,qDAAqD;IAErD,MAAM,UAAU,GAAG,EAAE;SAChB,IAAI,CAAC,+CAA+C,EAAE,IAAA,6BAAc,GAAE,CAAC,CAAC,EAAE;SAC1E,MAAM,CAAC,IAAI,EAAE;SACb,KAAK,CAAC,IAAI,CAAC;SACX,GAAG,CAAC,IAAI,CAAC,EAAE,CAAC,GAAG,SAAS,IAAI,IAAI,EAAE,CAAC,CAAC;IAEzC,2DAA2D;IAC3D,EAAE,CAAC,GAAG,CAAC,IAAI,EAAE,kBAAkB,EAAE,gBAAgB,EAAE,UAAU,CAAC,CAAC;IAC/D,eAAM,CAAC,KAAK,CAAC,wBAAwB,CAAC,CAAC;IAEvC,gCAAgC;IAChC,IAAA,wBAAS,EAAC,+CAA+C,OAAO,EAAE,EAAE,yBAAyB,EAAE,IAAA,6BAAc,EAAC,EAAE,MAAM,EAAE,KAAK,EAAE,CAAC,CAAC,CAAC;IAElI,eAAM,CAAC,KAAK,CAAC,6BAA6B,CAAC,CAAC;IAC5C,EAAE,CAAC,GAAG,CAAC,IAAI,EAAE,2BAA2B,EAAE,4BAA4B,EAAE,UAAU,CAAC,CAAC;IAEpF,eAAM,CAAC,KAAK,CAAC,0BAA0B,CAAC,CAAC;AAC7C,CAAC;AAED,SAAS,iBAAiB;IACtB,qBAAqB;AACzB,CAAC;AAED,SAAS,KAAK;IACV,eAAM,CAAC,IAAI,CAAC,eAAe,CAAC,CAAC;IAC7B,eAAM,CAAC,KAAK,CAAC,IAAI,CAAC,CAAC;IACnB,IAAA,wBAAS,EAAC,wBAAwB,EAAE,iBAAiB,EAAE,IAAA,6BAAc,EAAC,EAAE,MAAM,EAAE,KAAK,EAAE,CAAC,CAAC,CAAC;IAC1F,OAAO,CAAC,GAAG,CAAC,EAAE,CAAC,CAAC;IAChB,eAAM,CAAC,KAAK,CAAC,IAAI,CAAC,CAAC;IACnB,IAAA,wBAAS,EAAC,wBAAwB,EAAE,iBAAiB,EAAE,IAAA,6BAAc,EAAC,EAAE,MAAM,EAAE,KAAK,EAAE,CAAC,CAAC,CAAC;AAC9F,CAAC"}
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
/********************************************************************************
|
|
2
|
+
* Copyright (c) 2022 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';
|
|
17
|
+
export declare function releaseServerNode(options: ReleaseOptions): Promise<void>;
|
|
18
|
+
//# sourceMappingURL=release-server-node.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"release-server-node.d.ts","sourceRoot":"","sources":["../../src/release/release-server-node.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;kFAckF;AAIlF,OAAO,EAKH,cAAc,EAIjB,MAAM,UAAU,CAAC;AAIlB,wBAAsB,iBAAiB,CAAC,OAAO,EAAE,cAAc,GAAG,OAAO,CAAC,IAAI,CAAC,CAa9E"}
|
|
@@ -0,0 +1,51 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
/********************************************************************************
|
|
3
|
+
* Copyright (c) 2022 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.releaseServerNode = void 0;
|
|
19
|
+
const sh = require("shelljs");
|
|
20
|
+
const logger_1 = require("../util/logger");
|
|
21
|
+
const common_1 = require("./common");
|
|
22
|
+
let REPO_ROOT;
|
|
23
|
+
async function releaseServerNode(options) {
|
|
24
|
+
logger_1.LOGGER.info('Prepare glsp-server-node release');
|
|
25
|
+
logger_1.LOGGER.debug('Release options: ', options);
|
|
26
|
+
REPO_ROOT = (0, common_1.checkoutAndCd)(options);
|
|
27
|
+
updateExternalGLSPDependencies(options.version);
|
|
28
|
+
generateChangeLog();
|
|
29
|
+
(0, common_1.lernaSetVersion)(REPO_ROOT, options.version);
|
|
30
|
+
build();
|
|
31
|
+
if (options.npmDryRun) {
|
|
32
|
+
(0, common_1.updateLernaForDryRun)();
|
|
33
|
+
}
|
|
34
|
+
(0, common_1.commitAndTag)(options.version, REPO_ROOT);
|
|
35
|
+
(0, common_1.publish)(REPO_ROOT, options);
|
|
36
|
+
}
|
|
37
|
+
exports.releaseServerNode = releaseServerNode;
|
|
38
|
+
function updateExternalGLSPDependencies(version) {
|
|
39
|
+
logger_1.LOGGER.info('Update external GLSP dependencies (Protocol)');
|
|
40
|
+
sh.cd(REPO_ROOT);
|
|
41
|
+
(0, common_1.updateVersion)({ name: '@eclipse-glsp/protocol', version });
|
|
42
|
+
}
|
|
43
|
+
function build() {
|
|
44
|
+
logger_1.LOGGER.info('Install & Build with yarn');
|
|
45
|
+
(0, common_1.yarnInstall)(REPO_ROOT);
|
|
46
|
+
logger_1.LOGGER.debug('Build successful');
|
|
47
|
+
}
|
|
48
|
+
function generateChangeLog() {
|
|
49
|
+
// do nothing for now
|
|
50
|
+
}
|
|
51
|
+
//# sourceMappingURL=release-server-node.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"release-server-node.js","sourceRoot":"","sources":["../../src/release/release-server-node.ts"],"names":[],"mappings":";AAAA;;;;;;;;;;;;;;kFAckF;;;AAElF,8BAA8B;AAC9B,2CAAwC;AACxC,qCASkB;AAElB,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,sBAAa,EAAC,OAAO,CAAC,CAAC;IACnC,8BAA8B,CAAC,OAAO,CAAC,OAAO,CAAC,CAAC;IAChD,iBAAiB,EAAE,CAAC;IACpB,IAAA,wBAAe,EAAC,SAAS,EAAE,OAAO,CAAC,OAAO,CAAC,CAAC;IAC5C,KAAK,EAAE,CAAC;IACR,IAAI,OAAO,CAAC,SAAS,EAAE;QACnB,IAAA,6BAAoB,GAAE,CAAC;KAC1B;IACD,IAAA,qBAAY,EAAC,OAAO,CAAC,OAAO,EAAE,SAAS,CAAC,CAAC;IACzC,IAAA,gBAAO,EAAC,SAAS,EAAE,OAAO,CAAC,CAAC;AAChC,CAAC;AAbD,8CAaC;AAED,SAAS,8BAA8B,CAAC,OAAe;IACnD,eAAM,CAAC,IAAI,CAAC,8CAA8C,CAAC,CAAC;IAC5D,EAAE,CAAC,EAAE,CAAC,SAAS,CAAC,CAAC;IACjB,IAAA,sBAAa,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,oBAAW,EAAC,SAAS,CAAC,CAAC;IACvB,eAAM,CAAC,KAAK,CAAC,kBAAkB,CAAC,CAAC;AACrC,CAAC;AAED,SAAS,iBAAiB;IACtB,qBAAqB;AACzB,CAAC"}
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
/********************************************************************************
|
|
2
|
+
* Copyright (c) 2022 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';
|
|
17
|
+
export declare function releaseTheiaIntegration(options: ReleaseOptions): Promise<void>;
|
|
18
|
+
//# sourceMappingURL=release-theia-integration.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"release-theia-integration.d.ts","sourceRoot":"","sources":["../../src/release/release-theia-integration.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;kFAckF;AAIlF,OAAO,EAOH,cAAc,EAKjB,MAAM,UAAU,CAAC;AAIlB,wBAAsB,uBAAuB,CAAC,OAAO,EAAE,cAAc,GAAG,OAAO,CAAC,IAAI,CAAC,CAcpF"}
|
|
@@ -0,0 +1,62 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
/********************************************************************************
|
|
3
|
+
* Copyright (c) 2022 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.releaseTheiaIntegration = void 0;
|
|
19
|
+
const sh = require("shelljs");
|
|
20
|
+
const logger_1 = require("../util/logger");
|
|
21
|
+
const common_1 = require("./common");
|
|
22
|
+
let REPO_ROOT;
|
|
23
|
+
async function releaseTheiaIntegration(options) {
|
|
24
|
+
logger_1.LOGGER.info('Prepare glsp-theia-integration release');
|
|
25
|
+
logger_1.LOGGER.debug('Release options: ', options);
|
|
26
|
+
REPO_ROOT = (0, common_1.checkoutAndCd)(options);
|
|
27
|
+
updateExternalGLSPDependencies(options.version);
|
|
28
|
+
await updateDownloadServerScript(options.version);
|
|
29
|
+
generateChangeLog();
|
|
30
|
+
(0, common_1.lernaSetVersion)(REPO_ROOT, options.version);
|
|
31
|
+
build();
|
|
32
|
+
if (options.npmDryRun) {
|
|
33
|
+
(0, common_1.updateLernaForDryRun)();
|
|
34
|
+
}
|
|
35
|
+
(0, common_1.commitAndTag)(options.version, REPO_ROOT);
|
|
36
|
+
(0, common_1.publish)(REPO_ROOT, options);
|
|
37
|
+
}
|
|
38
|
+
exports.releaseTheiaIntegration = releaseTheiaIntegration;
|
|
39
|
+
function updateExternalGLSPDependencies(version) {
|
|
40
|
+
logger_1.LOGGER.info('Update external GLSP dependencies (Client and workflow example)');
|
|
41
|
+
sh.cd(REPO_ROOT);
|
|
42
|
+
(0, common_1.updateVersion)({ name: '@eclipse-glsp/client', version }, { name: '@eclipse-glsp-examples/workflow-glsp', version });
|
|
43
|
+
}
|
|
44
|
+
async function updateDownloadServerScript(version) {
|
|
45
|
+
logger_1.LOGGER.info('Update example server download config');
|
|
46
|
+
const mvnVersion = (0, common_1.asMvnVersion)(version);
|
|
47
|
+
if (!(0, common_1.isExistingMavenVersion)('org.eclipse.glsp', 'org.eclipse.glsp.server', mvnVersion)) {
|
|
48
|
+
logger_1.LOGGER.warn(`No Java GLSP server with version ${mvnVersion} found on maven central!. Please release a new Java GLSP Server version
|
|
49
|
+
before publishing this release!`);
|
|
50
|
+
}
|
|
51
|
+
sh.cd(`${REPO_ROOT}/examples/workflow-theia/src/node`);
|
|
52
|
+
(0, common_1.updateServerConfig)('server-config.json', mvnVersion, false);
|
|
53
|
+
}
|
|
54
|
+
function build() {
|
|
55
|
+
logger_1.LOGGER.info('Install & Build with yarn');
|
|
56
|
+
(0, common_1.yarnInstall)(REPO_ROOT);
|
|
57
|
+
logger_1.LOGGER.debug('Build successful');
|
|
58
|
+
}
|
|
59
|
+
function generateChangeLog() {
|
|
60
|
+
// do nothing for now
|
|
61
|
+
}
|
|
62
|
+
//# sourceMappingURL=release-theia-integration.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"release-theia-integration.js","sourceRoot":"","sources":["../../src/release/release-theia-integration.ts"],"names":[],"mappings":";AAAA;;;;;;;;;;;;;;kFAckF;;;AAElF,8BAA8B;AAC9B,2CAAwC;AACxC,qCAYkB;AAElB,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,sBAAa,EAAC,OAAO,CAAC,CAAC;IACnC,8BAA8B,CAAC,OAAO,CAAC,OAAO,CAAC,CAAC;IAChD,MAAM,0BAA0B,CAAC,OAAO,CA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kB,CAAC,CAAC;AACrC,CAAC;AAED,SAAS,iBAAiB;IACtB,qBAAqB;AACzB,CAAC"}
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
/********************************************************************************
|
|
2
|
+
* Copyright (c) 2022 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';
|
|
17
|
+
export declare function releaseVscodeIntegration(options: ReleaseOptions): Promise<void>;
|
|
18
|
+
//# sourceMappingURL=release-vscode-integration.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"release-vscode-integration.d.ts","sourceRoot":"","sources":["../../src/release/release-vscode-integration.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;kFAckF;AAIlF,OAAO,EAKH,cAAc,EAIjB,MAAM,UAAU,CAAC;AAIlB,wBAAsB,wBAAwB,CAAC,OAAO,EAAE,cAAc,GAAG,OAAO,CAAC,IAAI,CAAC,CAarF"}
|
|
@@ -0,0 +1,51 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
/********************************************************************************
|
|
3
|
+
* Copyright (c) 2022 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.releaseVscodeIntegration = void 0;
|
|
19
|
+
const sh = require("shelljs");
|
|
20
|
+
const logger_1 = require("../util/logger");
|
|
21
|
+
const common_1 = require("./common");
|
|
22
|
+
let REPO_ROOT;
|
|
23
|
+
async function releaseVscodeIntegration(options) {
|
|
24
|
+
logger_1.LOGGER.info('Prepare glsp-vscode-integration release');
|
|
25
|
+
logger_1.LOGGER.debug('Release options: ', options);
|
|
26
|
+
REPO_ROOT = (0, common_1.checkoutAndCd)(options);
|
|
27
|
+
updateExternalGLSPDependencies(options.version);
|
|
28
|
+
generateChangeLog();
|
|
29
|
+
(0, common_1.lernaSetVersion)(REPO_ROOT, options.version);
|
|
30
|
+
build();
|
|
31
|
+
if (options.npmDryRun) {
|
|
32
|
+
(0, common_1.updateLernaForDryRun)();
|
|
33
|
+
}
|
|
34
|
+
(0, common_1.commitAndTag)(options.version, REPO_ROOT);
|
|
35
|
+
(0, common_1.publish)(REPO_ROOT, options);
|
|
36
|
+
}
|
|
37
|
+
exports.releaseVscodeIntegration = releaseVscodeIntegration;
|
|
38
|
+
function updateExternalGLSPDependencies(version) {
|
|
39
|
+
logger_1.LOGGER.info('Update external GLSP dependencies (Protocol)');
|
|
40
|
+
sh.cd(REPO_ROOT);
|
|
41
|
+
(0, common_1.updateVersion)({ name: '@eclipse-glsp/protocol', version }, { name: '@eclipse-glsp/client', version }, { name: '@eclipse-glsp-examples/workflow-glsp', version });
|
|
42
|
+
}
|
|
43
|
+
function build() {
|
|
44
|
+
logger_1.LOGGER.info('Install & Build with yarn');
|
|
45
|
+
(0, common_1.yarnInstall)(REPO_ROOT);
|
|
46
|
+
logger_1.LOGGER.debug('Build successful');
|
|
47
|
+
}
|
|
48
|
+
function generateChangeLog() {
|
|
49
|
+
// do nothing for now
|
|
50
|
+
}
|
|
51
|
+
//# sourceMappingURL=release-vscode-integration.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"release-vscode-integration.js","sourceRoot":"","sources":["../../src/release/release-vscode-integration.ts"],"names":[],"mappings":";AAAA;;;;;;;;;;;;;;kFAckF;;;AAElF,8BAA8B;AAC9B,2CAAwC;AACxC,qCASkB;AAElB,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,sBAAa,EAAC,OAAO,CAAC,CAAC;IACnC,8BAA8B,CAAC,OAAO,CAAC,OAAO,CAAC,CAAC;IAChD,iBAAiB,EAAE,CAAC;IACpB,IAAA,wBAAe,EAAC,SAAS,EAAE,OAAO,CAAC,OAAO,CAAC,CAAC;IAC5C,KAAK,EAAE,CAAC;IACR,IAAI,OAAO,CAAC,SAAS,EAAE;QACnB,IAAA,6BAAoB,GAAE,CAAC;KAC1B;IACD,IAAA,qBAAY,EAAC,OAAO,CAAC,OAAO,EAAE,SAAS,CAAC,CAAC;IACzC,IAAA,gBAAO,EAAC,SAAS,EAAE,OAAO,CAAC,CAAC;AAChC,CAAC;AAbD,4DAaC;AAED,SAAS,8BAA8B,CAAC,OAAe;IACnD,eAAM,CAAC,IAAI,CAAC,8CAA8C,CAAC,CAAC;IAC5D,EAAE,CAAC,EAAE,CAAC,SAAS,CAAC,CAAC;IACjB,IAAA,sBAAa,EACT,EAAE,IAAI,EAAE,wBAAwB,EAAE,OAAO,EAAE,EAC3C,EAAE,IAAI,EAAE,sBAAsB,EAAE,OAAO,EAAE,EACzC,EAAE,IAAI,EAAE,sCAAsC,EAAE,OAAO,EAAE,CAC5D,CAAC;AACN,CAAC;AAED,SAAS,KAAK;IACV,eAAM,CAAC,IAAI,CAAC,2BAA2B,CAAC,CAAC;IACzC,IAAA,oBAAW,EAAC,SAAS,CAAC,CAAC;IACvB,eAAM,CAAC,KAAK,CAAC,kBAAkB,CAAC,CAAC;AACrC,CAAC;AAED,SAAS,iBAAiB;IACtB,qBAAqB;AACzB,CAAC"}
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import { BaseCmdOptions } from '../util/command-util';
|
|
2
|
+
import { Component, ReleaseType } from './common';
|
|
3
|
+
interface ReleaseCmdOptions extends BaseCmdOptions {
|
|
4
|
+
checkoutDir: string;
|
|
5
|
+
branch: string;
|
|
6
|
+
force: boolean;
|
|
7
|
+
publish: boolean;
|
|
8
|
+
npmDryRun: boolean;
|
|
9
|
+
draft: boolean;
|
|
10
|
+
}
|
|
11
|
+
export declare function release(component: Component, releaseType: ReleaseType, customVersion: string | undefined, cliOptions: ReleaseCmdOptions): Promise<void>;
|
|
12
|
+
export {};
|
|
13
|
+
//# sourceMappingURL=release.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"release.d.ts","sourceRoot":"","sources":["../../src/release/release.ts"],"names":[],"mappings":"AAqBA,OAAO,EAAE,cAAc,EAAmD,MAAM,sBAAsB,CAAC;AAIvG,OAAO,EAIH,SAAS,EAET,WAAW,EAEd,MAAM,UAAU,CAAC;AAOlB,UAAU,iBAAkB,SAAQ,cAAc;IAC9C,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;CAClB;AAID,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,CAsCf"}
|
|
@@ -0,0 +1,133 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.release = void 0;
|
|
4
|
+
const process_1 = require("process");
|
|
5
|
+
const readline_1 = require("readline");
|
|
6
|
+
const readline = require("readline-sync");
|
|
7
|
+
const semver = require("semver");
|
|
8
|
+
const sh = require("shelljs");
|
|
9
|
+
const command_util_1 = require("../util/command-util");
|
|
10
|
+
const git_util_1 = require("../util/git-util");
|
|
11
|
+
const logger_1 = require("../util/logger");
|
|
12
|
+
const validation_util_1 = require("../util/validation-util");
|
|
13
|
+
const common_1 = require("./common");
|
|
14
|
+
const release_client_1 = require("./release-client");
|
|
15
|
+
const release_eclipse_integration_1 = require("./release-eclipse-integration");
|
|
16
|
+
const release_java_server_1 = require("./release-java-server");
|
|
17
|
+
const release_server_node_1 = require("./release-server-node");
|
|
18
|
+
const release_theia_integration_1 = require("./release-theia-integration");
|
|
19
|
+
const release_vscode_integration_1 = require("./release-vscode-integration");
|
|
20
|
+
let verdaccioChildProcess = undefined;
|
|
21
|
+
async function release(component, releaseType, customVersion, cliOptions) {
|
|
22
|
+
try {
|
|
23
|
+
logger_1.LOGGER.debug('Cli options:', cliOptions);
|
|
24
|
+
(0, command_util_1.initialConfiguration)(cliOptions.verbose);
|
|
25
|
+
checkGHCli();
|
|
26
|
+
const version = deriveVersion(releaseType, customVersion);
|
|
27
|
+
const options = Object.assign(Object.assign({}, cliOptions), { component, releaseType, version });
|
|
28
|
+
if (cliOptions.npmDryRun && options.component.releaseRepo === 'npm') {
|
|
29
|
+
await launchVerdaccio().catch(error => logger_1.LOGGER.error('Error occurred during verdaccio launch', error));
|
|
30
|
+
}
|
|
31
|
+
switch (component.type) {
|
|
32
|
+
case 'server-java':
|
|
33
|
+
(0, common_1.checkIfMavenVersionExists)('org.eclipse.glsp', 'org.eclipse.glsp.server', (0, common_1.asMvnVersion)(version));
|
|
34
|
+
return (0, release_java_server_1.releaseJavaServer)(options);
|
|
35
|
+
case 'server-node':
|
|
36
|
+
await (0, common_1.checkIfNpmVersionExists)('@eclipse-glsp/server-node', version);
|
|
37
|
+
return (0, release_server_node_1.releaseServerNode)(options);
|
|
38
|
+
case 'client':
|
|
39
|
+
await (0, common_1.checkIfNpmVersionExists)('@eclipse-glsp/client', version);
|
|
40
|
+
return (0, release_client_1.releaseClient)(options);
|
|
41
|
+
case 'theia-integration':
|
|
42
|
+
await (0, common_1.checkIfNpmVersionExists)('@eclipse-glsp/theia-integration', version);
|
|
43
|
+
return (0, release_theia_integration_1.releaseTheiaIntegration)(options);
|
|
44
|
+
case 'vscode-integration':
|
|
45
|
+
await (0, common_1.checkIfNpmVersionExists)('@eclipse-glsp/vscode-integration', version);
|
|
46
|
+
return (0, release_vscode_integration_1.releaseVscodeIntegration)(options);
|
|
47
|
+
case 'eclipse-integration':
|
|
48
|
+
await (0, common_1.checkIfNpmVersionExists)('@eclipse-glsp/ide', version);
|
|
49
|
+
return (0, release_eclipse_integration_1.releaseEclipseIntegration)(options);
|
|
50
|
+
}
|
|
51
|
+
}
|
|
52
|
+
catch (err) {
|
|
53
|
+
console.error('An error occurred during command execution:', err);
|
|
54
|
+
(0, process_1.exit)(1);
|
|
55
|
+
}
|
|
56
|
+
finally {
|
|
57
|
+
if (verdaccioChildProcess) {
|
|
58
|
+
verdaccioChildProcess.kill();
|
|
59
|
+
}
|
|
60
|
+
}
|
|
61
|
+
}
|
|
62
|
+
exports.release = release;
|
|
63
|
+
function checkGHCli() {
|
|
64
|
+
logger_1.LOGGER.debug('Verify that Github CLI is configured correctly');
|
|
65
|
+
if (!(0, git_util_1.isGithubCLIAuthenticated)()) {
|
|
66
|
+
throw new Error("Github CLI is not configured properly. No user is logged in for host 'github.com'");
|
|
67
|
+
}
|
|
68
|
+
}
|
|
69
|
+
function launchVerdaccio() {
|
|
70
|
+
logger_1.LOGGER.debug('Verify that verdaccio is installed and start if necessary');
|
|
71
|
+
(0, command_util_1.fatalExec)('which verdaccio', 'Verdaccio is not installed!');
|
|
72
|
+
// Check if verdaccio is alreaddy running
|
|
73
|
+
const result = sh.exec(`curl -i ${common_1.VERDACCIO_REGISTRY}`, (0, command_util_1.getShellConfig)());
|
|
74
|
+
if (result.code !== 0) {
|
|
75
|
+
logger_1.LOGGER.info('Starting local verdaccio registry');
|
|
76
|
+
verdaccioChildProcess = sh.exec('verdaccio', { async: true, silent: true });
|
|
77
|
+
return new Promise(resolve => {
|
|
78
|
+
(0, readline_1.createInterface)(verdaccioChildProcess.stdout).on('line', line => {
|
|
79
|
+
if (line.includes(`http address - ${common_1.VERDACCIO_REGISTRY}`)) {
|
|
80
|
+
resolve();
|
|
81
|
+
}
|
|
82
|
+
});
|
|
83
|
+
});
|
|
84
|
+
}
|
|
85
|
+
return Promise.resolve();
|
|
86
|
+
}
|
|
87
|
+
function deriveVersion(release, customVersion) {
|
|
88
|
+
logger_1.LOGGER.debug(`Derive version from release type: ${release}`);
|
|
89
|
+
switch (release) {
|
|
90
|
+
case 'custom':
|
|
91
|
+
return getCustomVersion(customVersion);
|
|
92
|
+
case 'rc':
|
|
93
|
+
return getRCVersion();
|
|
94
|
+
case 'patch':
|
|
95
|
+
case 'major':
|
|
96
|
+
case 'minor':
|
|
97
|
+
return semverInc(release);
|
|
98
|
+
}
|
|
99
|
+
}
|
|
100
|
+
const REFERENCE_NPM_PACKAGE = '@eclipse-glsp/ide';
|
|
101
|
+
function getRCVersion() {
|
|
102
|
+
logger_1.LOGGER.debug('Retrieve and new RC version');
|
|
103
|
+
const newBaseVersion = semverInc('minor');
|
|
104
|
+
const currentRcVersion = sh.exec(`npm view ${REFERENCE_NPM_PACKAGE} dist-tags.rc`, (0, command_util_1.getShellConfig)()).stdout.trim();
|
|
105
|
+
const currentRcBaseVersion = currentRcVersion.split('-')[0];
|
|
106
|
+
if (currentRcBaseVersion !== newBaseVersion) {
|
|
107
|
+
return `${newBaseVersion}-RC01`;
|
|
108
|
+
}
|
|
109
|
+
let rcNumber = Number.parseInt(currentRcVersion.replace(`${currentRcBaseVersion}-RC`, ''), 10);
|
|
110
|
+
rcNumber++;
|
|
111
|
+
return `${newBaseVersion}-RC` + `${rcNumber}`.padStart(2, '0');
|
|
112
|
+
}
|
|
113
|
+
function getCustomVersion(customVersion) {
|
|
114
|
+
logger_1.LOGGER.debug('Retrieve and validate custom version');
|
|
115
|
+
logger_1.LOGGER.debug(customVersion ? `Custom version has been passed as argument: ${customVersion}` : 'Prompt custom version from user');
|
|
116
|
+
const version = customVersion !== null && customVersion !== void 0 ? customVersion : readline.question('> Please enter the new version');
|
|
117
|
+
return (0, validation_util_1.validateVersion)(version);
|
|
118
|
+
}
|
|
119
|
+
function getCurrentVersion() {
|
|
120
|
+
logger_1.LOGGER.debug('Retrieve base version by querying the latest tag of the reference npm package');
|
|
121
|
+
const version = sh.exec(`npm view ${REFERENCE_NPM_PACKAGE} dist-tags.latest`, (0, command_util_1.getShellConfig)()).stdout.trim();
|
|
122
|
+
return (0, validation_util_1.validateVersion)(version);
|
|
123
|
+
}
|
|
124
|
+
function semverInc(releaseType, identifier) {
|
|
125
|
+
const currentVersion = getCurrentVersion();
|
|
126
|
+
logger_1.LOGGER.debug(`Execute: semver.inc("${currentVersion}", ${releaseType}, ${identifier})`);
|
|
127
|
+
const newVersion = semver.inc(currentVersion, releaseType, identifier);
|
|
128
|
+
if (!newVersion) {
|
|
129
|
+
throw new Error(`Could not increment version: ${currentVersion} `);
|
|
130
|
+
}
|
|
131
|
+
return newVersion;
|
|
132
|
+
}
|
|
133
|
+
//# sourceMappingURL=release.js.map
|
|
@@ -0,0 +1 @@
|
|
|
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AAc,GAAG,iBAAiB,EAAE,CAAC;IAC3C,eAAM,CAAC,KAAK,CAAC,wBAAwB,cAAc,MAAM,WAAW,KAAK,UAAU,GAAG,CAAC,CAAC;IACxF,MAAM,UAAU,GAAG,MAAM,CAAC,GAAG,CAAC,cAAc,EAAE,WAAW,EAAE,UAAU,CAAC,CAAC;IACvE,IAAI,CAAC,UAAU,EAAE;QACb,MAAM,IAAI,KAAK,CAAC,gCAAgC,cAAc,GAAG,CAAC,CAAC;KACtE;IACD,OAAO,UAAU,CAAC;AACtB,CAAC"}
|
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
/********************************************************************************
|
|
2
|
+
* Copyright (c) 2022 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 { Command } from 'commander';
|
|
17
|
+
import * as sh from 'shelljs';
|
|
18
|
+
export declare const COMMAND_VERSION = "1.1.0-next";
|
|
19
|
+
export declare function baseConfiguration(cmd: Command): Command;
|
|
20
|
+
export interface BaseCmdOptions {
|
|
21
|
+
verbose: boolean;
|
|
22
|
+
}
|
|
23
|
+
export declare const SH_CONFIG: sh.ExecOptions & {
|
|
24
|
+
async: false;
|
|
25
|
+
};
|
|
26
|
+
export declare function getShellConfig(options?: Partial<Omit<sh.ExecOptions, 'async'>>): sh.ExecOptions & {
|
|
27
|
+
async: false;
|
|
28
|
+
};
|
|
29
|
+
export declare function initialConfiguration(verbose: boolean): void;
|
|
30
|
+
export declare function fatalExec(command: string, fatalErrorMessage: string, options?: Partial<Omit<sh.ExecOptions, 'async'>>): sh.ShellString;
|
|
31
|
+
//# sourceMappingURL=command-util.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"command-util.d.ts","sourceRoot":"","sources":["../../src/util/command-util.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;kFAckF;AAClF,OAAO,EAAE,OAAO,EAAE,MAAM,WAAW,CAAC;AACpC,OAAO,KAAK,EAAE,MAAM,SAAS,CAAC;AAE9B,eAAO,MAAM,eAAe,eAAe,CAAC;AAE5C,wBAAgB,iBAAiB,CAAC,GAAG,EAAE,OAAO,GAAG,OAAO,CAMvD;AAED,MAAM,WAAW,cAAc;IAC3B,OAAO,EAAE,OAAO,CAAC;CACpB;AAED,eAAO,MAAM,SAAS,EAAE,EAAE,CAAC,WAAW,GAAG;IAAE,KAAK,EAAE,KAAK,CAAA;CAItD,CAAC;AAEF,wBAAgB,cAAc,CAAC,OAAO,GAAE,OAAO,CAAC,IAAI,CAAC,EAAE,CAAC,WAAW,EAAE,OAAO,CAAC,CAAM,GAAG,EAAE,CAAC,WAAW,GAAG;IAAE,KAAK,EAAE,KAAK,CAAA;CAAE,CAKtH;AAED,wBAAgB,oBAAoB,CAAC,OAAO,EAAE,OAAO,GAAG,IAAI,CAK3D;AAED,wBAAgB,SAAS,CACrB,OAAO,EAAE,MAAM,EACf,iBAAiB,EAAE,MAAM,EACzB,OAAO,GAAE,OAAO,CAAC,IAAI,CAAC,EAAE,CAAC,WAAW,EAAE,OAAO,CAAC,CAAM,GACrD,EAAE,CAAC,WAAW,CAMhB"}
|