@eclipse-glsp/cli 2.3.0-next.164 → 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 -2
- package/lib/app.d.ts.map +0 -1
- package/lib/app.js +0 -35
- 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/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 -58
- 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 -93
- 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 -71
- 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 -54
- 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 -54
- 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 -54
- 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/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/util/command-util.d.ts +0 -26
- package/lib/util/command-util.d.ts.map +0 -1
- package/lib/util/command-util.js +0 -56
- 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 -125
- 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/validation-util.d.ts +0 -5
- package/lib/util/validation-util.d.ts.map +0 -1
- package/lib/util/validation-util.js +0 -86
- package/lib/util/validation-util.js.map +0 -1
- package/src/app.ts +0 -34
- 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,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 releaseEclipseIntegration(options: ReleaseOptions): Promise<void>;
|
|
18
|
-
//# sourceMappingURL=release-eclipse-integration.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"release-eclipse-integration.d.ts","sourceRoot":"","sources":["../../../src/commands/release/release-eclipse-integration.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;kFAckF;AAKlF,OAAO,EACH,cAAc,EAWjB,MAAM,aAAa,CAAC;AAIrB,wBAAsB,yBAAyB,CAAC,OAAO,EAAE,cAAc,GAAG,OAAO,CAAC,IAAI,CAAC,CAYtF"}
|
|
@@ -1,93 +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.releaseEclipseIntegration = void 0;
|
|
22
|
-
const shelljs_1 = __importDefault(require("shelljs"));
|
|
23
|
-
const command_util_1 = require("../../util/command-util");
|
|
24
|
-
const logger_1 = require("../../util/logger");
|
|
25
|
-
const common_js_1 = require("./common.js");
|
|
26
|
-
let REPO_ROOT;
|
|
27
|
-
async function releaseEclipseIntegration(options) {
|
|
28
|
-
logger_1.LOGGER.info('Prepare glsp-eclipse-integration release');
|
|
29
|
-
logger_1.LOGGER.debug('Release options: ', options);
|
|
30
|
-
(0, common_js_1.checkJavaServerVersion)(options.version);
|
|
31
|
-
REPO_ROOT = (0, common_js_1.checkoutAndCd)(options);
|
|
32
|
-
prepareClient(options);
|
|
33
|
-
prepareServer(options);
|
|
34
|
-
generateChangeLog();
|
|
35
|
-
(0, common_js_1.commitAndTag)((0, common_js_1.asMvnVersion)(options.version), REPO_ROOT);
|
|
36
|
-
(0, common_js_1.publish)(REPO_ROOT, options);
|
|
37
|
-
logger_1.LOGGER.info('glsp-eclipse-integration release successful!');
|
|
38
|
-
}
|
|
39
|
-
exports.releaseEclipseIntegration = releaseEclipseIntegration;
|
|
40
|
-
function prepareClient(options) {
|
|
41
|
-
logger_1.LOGGER.info('Prepare client');
|
|
42
|
-
updateExternalGLSPDependencies(options.version);
|
|
43
|
-
(0, common_js_1.lernaSetVersion)(`${REPO_ROOT}/client`, options.version);
|
|
44
|
-
buildClient();
|
|
45
|
-
if (options.npmDryRun) {
|
|
46
|
-
(0, common_js_1.updateLernaForDryRun)();
|
|
47
|
-
}
|
|
48
|
-
}
|
|
49
|
-
function updateExternalGLSPDependencies(version) {
|
|
50
|
-
logger_1.LOGGER.info('Update external GLSP dependencies (Client and workflow example)');
|
|
51
|
-
shelljs_1.default.cd(`${REPO_ROOT}/client`);
|
|
52
|
-
(0, common_js_1.updateVersion)({ name: '@eclipse-glsp/client', version }, { name: '@eclipse-glsp-examples/workflow-glsp', version });
|
|
53
|
-
}
|
|
54
|
-
function buildClient() {
|
|
55
|
-
logger_1.LOGGER.info('[Client] Install & Build with yarn');
|
|
56
|
-
(0, common_js_1.yarnInstall)(`${REPO_ROOT}/client`);
|
|
57
|
-
logger_1.LOGGER.debug('Build successful');
|
|
58
|
-
}
|
|
59
|
-
function generateChangeLog() {
|
|
60
|
-
// do nothing for now
|
|
61
|
-
}
|
|
62
|
-
function prepareServer(options) {
|
|
63
|
-
const mvnVersion = (0, common_js_1.asMvnVersion)(options.version);
|
|
64
|
-
setServerVersion(mvnVersion);
|
|
65
|
-
updateTarget(mvnVersion, options.releaseType);
|
|
66
|
-
buildServer();
|
|
67
|
-
}
|
|
68
|
-
function setServerVersion(version) {
|
|
69
|
-
logger_1.LOGGER.info(`Set pom version to ${version}`);
|
|
70
|
-
shelljs_1.default.cd(`${REPO_ROOT}/server`);
|
|
71
|
-
// Execute tycho-versions plugin
|
|
72
|
-
(0, command_util_1.fatalExec)(`mvn tycho-versions:set-version -DnewVersion=${version}`, 'Mvn set-versions failed', (0, command_util_1.getShellConfig)({ silent: false }));
|
|
73
|
-
logger_1.LOGGER.debug('Version update complete!');
|
|
74
|
-
}
|
|
75
|
-
function buildServer() {
|
|
76
|
-
shelljs_1.default.cd(`${REPO_ROOT}/server`);
|
|
77
|
-
logger_1.LOGGER.info('Build Server(P2)');
|
|
78
|
-
(0, command_util_1.fatalExec)('mvn clean install', 'P2 build failed', (0, command_util_1.getShellConfig)({ silent: false }));
|
|
79
|
-
}
|
|
80
|
-
function updateTarget(mvnVersion, releaseType) {
|
|
81
|
-
const p2SubLocation = releaseType === 'rc' ? 'staging' : 'releases';
|
|
82
|
-
const p2Location = `https://download.eclipse.org/glsp/server/p2/${p2SubLocation}/${mvnVersion}/`;
|
|
83
|
-
logger_1.LOGGER.info(`Update glsp server p2 repository to ${p2Location}`);
|
|
84
|
-
shelljs_1.default.cd(`${REPO_ROOT}/server/releng/org.eclipse.glsp.ide.releng.target`);
|
|
85
|
-
logger_1.LOGGER.debug('Update r2021-03.tpd file');
|
|
86
|
-
shelljs_1.default.exec(`sed -i 's_location "https://download.eclipse.org/glsp/server/p2/.*"_location "${p2Location}"_' r2021-03.tpd`, (0, command_util_1.getShellConfig)());
|
|
87
|
-
logger_1.LOGGER.debug('Update r2021-03.target file');
|
|
88
|
-
shelljs_1.default.exec(
|
|
89
|
-
// eslint-disable-next-line max-len
|
|
90
|
-
`sed -i 's_ <repository location="https://download.eclipse.org/glsp/server/p2/.*"_ <repository location="${p2Location}"_g' r2021-03.target`, (0, command_util_1.getShellConfig)());
|
|
91
|
-
logger_1.LOGGER.debug('Target update successful');
|
|
92
|
-
}
|
|
93
|
-
//# sourceMappingURL=release-eclipse-integration.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"release-eclipse-integration.js","sourceRoot":"","sources":["../../../src/commands/release/release-eclipse-integration.ts"],"names":[],"mappings":";AAAA;;;;;;;;;;;;;;kFAckF;;;;;;AAElF,sDAAyB;AACzB,0DAAoE;AACpE,8CAA2C;AAC3C,2CAYqB;AAErB,IAAI,SAAiB,CAAC;AAE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AAM,UAAU,GAAG,+CAA+C,aAAa,IAAI,UAAU,GAAG,CAAC;IACjG,eAAM,CAAC,IAAI,CAAC,uCAAuC,UAAU,EAAE,CAAC,CAAC;IACjE,iBAAE,CAAC,EAAE,CAAC,GAAG,SAAS,mDAAmD,CAAC,CAAC;IACvE,eAAM,CAAC,KAAK,CAAC,0BAA0B,CAAC,CAAC;IACzC,iBAAE,CAAC,IAAI,CACH,iFAAiF,UAAU,kBAAkB,EAC7G,IAAA,6BAAc,GAAE,CACnB,CAAC;IACF,eAAM,CAAC,KAAK,CAAC,6BAA6B,CAAC,CAAC;IAC5C,iBAAE,CAAC,IAAI;IACH,mCAAmC;IACnC,qHAAqH,UAAU,sBAAsB,EACrJ,IAAA,6BAAc,GAAE,CACnB,CAAC;IACF,eAAM,CAAC,KAAK,CAAC,0BAA0B,CAAC,CAAC;AAC7C,CAAC"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"release-java-server.d.ts","sourceRoot":"","sources":["../../../src/commands/release/release-java-server.ts"],"names":[],"mappings":"AAkBA,OAAO,EAAE,cAAc,EAAsD,MAAM,UAAU,CAAC;AAI9F,wBAAsB,iBAAiB,CAAC,OAAO,EAAE,cAAc,GAAG,OAAO,CAAC,IAAI,CAAC,CAY9E"}
|
|
@@ -1,71 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
3
|
-
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
4
|
-
};
|
|
5
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6
|
-
exports.releaseJavaServer = void 0;
|
|
7
|
-
/********************************************************************************
|
|
8
|
-
* Copyright (c) 2022-2024 EclipseSource and others.
|
|
9
|
-
*
|
|
10
|
-
* This program and the accompanying materials are made available under the
|
|
11
|
-
* terms of the Eclipse Public License v. 2.0 which is available at
|
|
12
|
-
* http://www.eclipse.org/legal/epl-2.0.
|
|
13
|
-
*
|
|
14
|
-
* This Source Code may also be made available under the following Secondary
|
|
15
|
-
* Licenses when the conditions for such availability set forth in the Eclipse
|
|
16
|
-
* Public License v. 2.0 are satisfied: GNU General Public License, version 2
|
|
17
|
-
* with the GNU Classpath Exception which is available at
|
|
18
|
-
* https://www.gnu.org/software/classpath/license.html.
|
|
19
|
-
*
|
|
20
|
-
* SPDX-License-Identifier: EPL-2.0 OR GPL-2.0 WITH Classpath-exception-2.0
|
|
21
|
-
********************************************************************************/
|
|
22
|
-
const shelljs_1 = __importDefault(require("shelljs"));
|
|
23
|
-
const command_util_1 = require("../../util/command-util");
|
|
24
|
-
const logger_1 = require("../../util/logger");
|
|
25
|
-
const common_1 = require("./common");
|
|
26
|
-
let REPO_ROOT;
|
|
27
|
-
async function releaseJavaServer(options) {
|
|
28
|
-
logger_1.LOGGER.info('Prepare glsp-server release');
|
|
29
|
-
logger_1.LOGGER.debug('Release options: ', options);
|
|
30
|
-
const mvnVersion = (0, common_1.asMvnVersion)(options.version);
|
|
31
|
-
REPO_ROOT = (0, common_1.checkoutAndCd)(options);
|
|
32
|
-
shelljs_1.default.find();
|
|
33
|
-
setVersion(mvnVersion);
|
|
34
|
-
build();
|
|
35
|
-
generateChangeLog();
|
|
36
|
-
(0, common_1.commitAndTag)(mvnVersion, REPO_ROOT);
|
|
37
|
-
(0, common_1.publish)(REPO_ROOT, options);
|
|
38
|
-
logger_1.LOGGER.info('glsp-server release successful!');
|
|
39
|
-
}
|
|
40
|
-
exports.releaseJavaServer = releaseJavaServer;
|
|
41
|
-
function setVersion(version) {
|
|
42
|
-
logger_1.LOGGER.info(`Set pom version to ${version}`);
|
|
43
|
-
shelljs_1.default.cd(REPO_ROOT);
|
|
44
|
-
logger_1.LOGGER.debug('Preprocessing eclipse-plugins poms');
|
|
45
|
-
// Capture all poms with a `${package.type}` property
|
|
46
|
-
const pluginPoms = shelljs_1.default
|
|
47
|
-
.exec('grep -ril --include pom.xml \\${package-type}', (0, command_util_1.getShellConfig)()) //
|
|
48
|
-
.stdout.trim()
|
|
49
|
-
.split('\n')
|
|
50
|
-
.map(file => `${REPO_ROOT}/${file}`);
|
|
51
|
-
// Replace `${package.type}` property with `eclipse-plugin`
|
|
52
|
-
shelljs_1.default.sed('-i', /\${package-type}/, 'eclipse-plugin', pluginPoms);
|
|
53
|
-
logger_1.LOGGER.debug('Preprocessing complete');
|
|
54
|
-
// Execute tycho-versions plugin
|
|
55
|
-
(0, command_util_1.fatalExec)(`mvn tycho-versions:set-version -DnewVersion=${version}`, 'Mvn set-versions failed', (0, command_util_1.getShellConfig)({ silent: false }));
|
|
56
|
-
logger_1.LOGGER.debug('Restore eclipse-plugin poms');
|
|
57
|
-
shelljs_1.default.sed('-i', /<packaging>eclipse-plugin/, '<packaging>${package-type}', pluginPoms);
|
|
58
|
-
logger_1.LOGGER.debug('Version update complete!');
|
|
59
|
-
}
|
|
60
|
-
function generateChangeLog() {
|
|
61
|
-
// do nothing for now
|
|
62
|
-
}
|
|
63
|
-
function build() {
|
|
64
|
-
logger_1.LOGGER.info('Build M2 & P2');
|
|
65
|
-
logger_1.LOGGER.debug('M2');
|
|
66
|
-
(0, command_util_1.fatalExec)('mvn clean install -Pm2', 'M2 build failed', (0, command_util_1.getShellConfig)({ silent: false }));
|
|
67
|
-
logger_1.LOGGER.newLine();
|
|
68
|
-
logger_1.LOGGER.debug('P2');
|
|
69
|
-
(0, command_util_1.fatalExec)('mvn clean install -Pp2', 'P2 build failed', (0, command_util_1.getShellConfig)({ silent: false }));
|
|
70
|
-
}
|
|
71
|
-
//# sourceMappingURL=release-java-server.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"release-java-server.js","sourceRoot":"","sources":["../../../src/commands/release/release-java-server.ts"],"names":[],"mappings":";;;;;;AAAA;;;;;;;;;;;;;;kFAckF;AAClF,sDAAyB;AACzB,0DAAoE;AACpE,8CAA2C;AAC3C,qCAA8F;AAE9F,IAAI,SAAiB,CAAC;AAEf,KAAK,UAAU,iBAAi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AAO,EAAE,EAAE,yBAAyB,EAAE,IAAA,6BAAc,EAAC,EAAE,MAAM,EAAE,KAAK,EAAE,CAAC,CAAC,CAAC;IAElI,eAAM,CAAC,KAAK,CAAC,6BAA6B,CAAC,CAAC;IAC5C,iBAAE,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,eAAM,CAAC,OAAO,EAAE,CAAC;IACjB,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"}
|
|
@@ -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 releaseServerNode(options: ReleaseOptions): Promise<void>;
|
|
18
|
-
//# sourceMappingURL=release-server-node.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"release-server-node.d.ts","sourceRoot":"","sources":["../../../src/commands/release/release-server-node.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;kFAckF;AAIlF,OAAO,EAKH,cAAc,EAIjB,MAAM,aAAa,CAAC;AAIrB,wBAAsB,iBAAiB,CAAC,OAAO,EAAE,cAAc,GAAG,OAAO,CAAC,IAAI,CAAC,CAa9E"}
|
|
@@ -1,54 +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 = void 0;
|
|
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
|
-
exports.releaseServerNode = releaseServerNode;
|
|
41
|
-
function updateExternalGLSPDependencies(version) {
|
|
42
|
-
logger_1.LOGGER.info('Update external GLSP dependencies (Protocol)');
|
|
43
|
-
shelljs_1.default.cd(REPO_ROOT);
|
|
44
|
-
(0, common_js_1.updateVersion)({ name: '@eclipse-glsp/protocol', version });
|
|
45
|
-
}
|
|
46
|
-
function build() {
|
|
47
|
-
logger_1.LOGGER.info('Install & Build with yarn');
|
|
48
|
-
(0, common_js_1.yarnInstall)(REPO_ROOT);
|
|
49
|
-
logger_1.LOGGER.debug('Build successful');
|
|
50
|
-
}
|
|
51
|
-
function generateChangeLog() {
|
|
52
|
-
// do nothing for now
|
|
53
|
-
}
|
|
54
|
-
//# 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;;;;;;AAElF,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;AAbD,8CAaC;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,54 +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 = void 0;
|
|
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
|
-
exports.releaseTheiaIntegration = releaseTheiaIntegration;
|
|
41
|
-
function updateExternalGLSPDependencies(version) {
|
|
42
|
-
logger_1.LOGGER.info('Update external GLSP dependencies (Client and workflow example & server)');
|
|
43
|
-
shelljs_1.default.cd(REPO_ROOT);
|
|
44
|
-
(0, common_js_1.updateVersion)({ name: '@eclipse-glsp/client', version }, { name: '@eclipse-glsp-examples/workflow-glsp', version }, { name: '@eclipse-glsp-examples/workflow-server', version });
|
|
45
|
-
}
|
|
46
|
-
function build() {
|
|
47
|
-
logger_1.LOGGER.info('Install & Build with yarn');
|
|
48
|
-
(0, common_js_1.yarnInstall)(REPO_ROOT);
|
|
49
|
-
logger_1.LOGGER.debug('Build successful');
|
|
50
|
-
}
|
|
51
|
-
function generateChangeLog() {
|
|
52
|
-
// do nothing for now
|
|
53
|
-
}
|
|
54
|
-
//# 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;;;;;;AAElF,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;AAbD,0DAaC;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,54 +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 = void 0;
|
|
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
|
-
exports.releaseVscodeIntegration = releaseVscodeIntegration;
|
|
41
|
-
function updateExternalGLSPDependencies(version) {
|
|
42
|
-
logger_1.LOGGER.info('Update external GLSP dependencies (Protocol)');
|
|
43
|
-
shelljs_1.default.cd(REPO_ROOT);
|
|
44
|
-
(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 });
|
|
45
|
-
}
|
|
46
|
-
function build() {
|
|
47
|
-
logger_1.LOGGER.info('Install & Build with yarn');
|
|
48
|
-
(0, common_js_1.yarnInstall)(REPO_ROOT);
|
|
49
|
-
logger_1.LOGGER.debug('Build successful');
|
|
50
|
-
}
|
|
51
|
-
function generateChangeLog() {
|
|
52
|
-
// do nothing for now
|
|
53
|
-
}
|
|
54
|
-
//# 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;;;;;;AAElF,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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
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"}
|