@eclipse-glsp/cli 2.7.0-next.20 → 2.7.0-next.21
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/dist/cli.js +22 -14
- package/dist/cli.js.map +1 -1
- package/package.json +3 -3
package/dist/cli.js
CHANGED
|
@@ -15551,11 +15551,11 @@ function generatePlaywrightEnvContent(options) {
|
|
|
15551
15551
|
if (hasServerNode && hasClient) {
|
|
15552
15552
|
lines.push("# Standalone Node (WebSocket)");
|
|
15553
15553
|
lines.push("GLSP_SERVER_START_CMD=glsp repo server-node start");
|
|
15554
|
-
lines.push("STANDALONE_START_CMD=glsp repo client
|
|
15554
|
+
lines.push("STANDALONE_START_CMD=glsp repo client start --external-server --no-open");
|
|
15555
15555
|
} else {
|
|
15556
15556
|
lines.push("# Standalone Node (WebSocket) \u2014 missing repos, uncomment when available");
|
|
15557
15557
|
lines.push("# GLSP_SERVER_START_CMD=glsp repo server-node start");
|
|
15558
|
-
lines.push("# STANDALONE_START_CMD=glsp repo client
|
|
15558
|
+
lines.push("# STANDALONE_START_CMD=glsp repo client start --external-server --no-open");
|
|
15559
15559
|
}
|
|
15560
15560
|
lines.push("");
|
|
15561
15561
|
if (hasServerNode && hasClient) {
|
|
@@ -15563,14 +15563,14 @@ function generatePlaywrightEnvContent(options) {
|
|
|
15563
15563
|
const bundleExists = fs20.existsSync(bundlePath);
|
|
15564
15564
|
lines.push("# Standalone Browser (Web Worker)");
|
|
15565
15565
|
if (bundleExists) {
|
|
15566
|
-
lines.push(`STANDALONE_BROWSER_START_CMD=glsp repo client
|
|
15566
|
+
lines.push(`STANDALONE_BROWSER_START_CMD=glsp repo client start --browser --external-server ${bundlePath} --no-open`);
|
|
15567
15567
|
} else {
|
|
15568
15568
|
LOGGER.warn(`Browser bundle not found at ${bundlePath}. Build glsp-server-node first.`);
|
|
15569
|
-
lines.push(`# STANDALONE_BROWSER_START_CMD=glsp repo client
|
|
15569
|
+
lines.push(`# STANDALONE_BROWSER_START_CMD=glsp repo client start --browser --external-server ${bundlePath} --no-open`);
|
|
15570
15570
|
}
|
|
15571
15571
|
} else {
|
|
15572
15572
|
lines.push("# Standalone Browser (Web Worker) \u2014 missing repos, uncomment when available");
|
|
15573
|
-
lines.push("# STANDALONE_BROWSER_START_CMD=glsp repo client
|
|
15573
|
+
lines.push("# STANDALONE_BROWSER_START_CMD=glsp repo client start --browser --external-server <bundle-path> --no-open");
|
|
15574
15574
|
}
|
|
15575
15575
|
lines.push("");
|
|
15576
15576
|
const hasTheia = discoveredRepos.includes("glsp-theia-integration");
|
|
@@ -15649,7 +15649,7 @@ var PlaywrightEnvCommand = baseCommand().name("env").description("Generate a .en
|
|
|
15649
15649
|
// src/commands/repo/run.ts
|
|
15650
15650
|
var path22 = __toESM(require("path"));
|
|
15651
15651
|
function createScopedRunCommand(repo) {
|
|
15652
|
-
return baseCommand().name("run").allowUnknownOption(true).description(`Run an arbitrary yarn script in ${repo}`).argument("<script>", "The yarn script to run").option("-d, --dir <path>", "Target directory where repos are cloned").option("-v, --verbose", "Verbose output", false).action(async (script, _cmdOptions, thisCmd) => {
|
|
15652
|
+
return baseCommand().name("run").allowUnknownOption(true).allowExcessArguments(true).description(`Run an arbitrary yarn script in ${repo}`).argument("<script>", "The yarn script to run").option("-d, --dir <path>", "Target directory where repos are cloned").option("-v, --verbose", "Verbose output", false).action(async (script, _cmdOptions, thisCmd) => {
|
|
15653
15653
|
const cli = thisCmd.opts();
|
|
15654
15654
|
configureRepoEnv(cli);
|
|
15655
15655
|
const dir = resolveWorkspaceDir(cli.dir);
|
|
@@ -15668,24 +15668,30 @@ function discoverJar(repoDir) {
|
|
|
15668
15668
|
const targetDir = path23.resolve(repoDir, JAR_TARGET_DIR);
|
|
15669
15669
|
return discoverNewestFile(JAR_PATTERN, targetDir, `No *-glsp.jar found in ${targetDir}. Run \`glsp repo server build\` first.`);
|
|
15670
15670
|
}
|
|
15671
|
-
|
|
15671
|
+
function collectPassthroughArgs(cmd) {
|
|
15672
|
+
const raw = cmd.args;
|
|
15673
|
+
return raw.length > 0 ? ` ${raw.join(" ")}` : "";
|
|
15674
|
+
}
|
|
15675
|
+
var TheiaStartCommand = baseCommand().name("start").allowUnknownOption(true).allowExcessArguments(true).description("Start the Theia application for glsp-theia-integration").option("-d, --dir <path>", "Target directory where repos are cloned").option("--electron", "Start electron variant instead of browser", false).option("--debug", "Connect to external GLSP server for debugging", false).option("-v, --verbose", "Verbose output", false).action(async (_cmdOptions, thisCmd) => {
|
|
15672
15676
|
const cli = thisCmd.opts();
|
|
15673
15677
|
configureRepoEnv(cli);
|
|
15674
15678
|
const dir = resolveWorkspaceDir(cli.dir);
|
|
15675
15679
|
const repoDir = path23.resolve(dir, "glsp-theia-integration");
|
|
15676
15680
|
const target = cli.electron ? "electron" : "browser";
|
|
15677
15681
|
const script = cli.debug ? "start:debug" : "start";
|
|
15678
|
-
|
|
15682
|
+
const passthrough = collectPassthroughArgs(thisCmd);
|
|
15683
|
+
await execForeground(`yarn ${target} ${script}${passthrough}`, { cwd: repoDir, verbose: cli.verbose });
|
|
15679
15684
|
});
|
|
15680
|
-
var ClientStartCommand = baseCommand().name("start").description("Start the standalone example for glsp-client").option("-d, --dir <path>", "Target directory where repos are cloned").option("--browser", "Run in browser-only mode with WebWorker server", false).option("-v, --verbose", "Verbose output", false).action(async (_cmdOptions, thisCmd) => {
|
|
15685
|
+
var ClientStartCommand = baseCommand().name("start").allowUnknownOption(true).allowExcessArguments(true).description("Start the standalone example for glsp-client").option("-d, --dir <path>", "Target directory where repos are cloned").option("--browser", "Run in browser-only mode with WebWorker server", false).option("-v, --verbose", "Verbose output", false).action(async (_cmdOptions, thisCmd) => {
|
|
15681
15686
|
const cli = thisCmd.opts();
|
|
15682
15687
|
configureRepoEnv(cli);
|
|
15683
15688
|
const dir = resolveWorkspaceDir(cli.dir);
|
|
15684
15689
|
const repoDir = path23.resolve(dir, "glsp-client");
|
|
15685
15690
|
const script = cli.browser ? "start:browser" : "start";
|
|
15686
|
-
|
|
15691
|
+
const passthrough = collectPassthroughArgs(thisCmd);
|
|
15692
|
+
await execForeground(`yarn ${script}${passthrough}`, { cwd: repoDir, verbose: cli.verbose });
|
|
15687
15693
|
});
|
|
15688
|
-
var ServerStartCommand = baseCommand().name("start").description("Start the glsp-server Java GLSP server").option("-d, --dir <path>", "Target directory where repos are cloned").option("-p, --port <port>", "Port to start the server on").option("--socket", "Use socket connection instead of websocket", false).option("-v, --verbose", "Verbose output", false).action(async (_cmdOptions, thisCmd) => {
|
|
15694
|
+
var ServerStartCommand = baseCommand().name("start").allowUnknownOption(true).allowExcessArguments(true).description("Start the glsp-server Java GLSP server").option("-d, --dir <path>", "Target directory where repos are cloned").option("-p, --port <port>", "Port to start the server on").option("--socket", "Use socket connection instead of websocket", false).option("-v, --verbose", "Verbose output", false).action(async (_cmdOptions, thisCmd) => {
|
|
15689
15695
|
const cli = thisCmd.opts();
|
|
15690
15696
|
configureRepoEnv(cli);
|
|
15691
15697
|
const dir = resolveWorkspaceDir(cli.dir);
|
|
@@ -15695,16 +15701,18 @@ var ServerStartCommand = baseCommand().name("start").description("Start the glsp
|
|
|
15695
15701
|
const socketPort = cli.port ?? 5007;
|
|
15696
15702
|
const wsPort = cli.port ?? 8081;
|
|
15697
15703
|
const javaCmd = cli.socket ? `java -jar ${jarPath} --port=${socketPort}` : `java -jar ${jarPath} --websocket --port=${wsPort}`;
|
|
15698
|
-
|
|
15704
|
+
const passthrough = collectPassthroughArgs(thisCmd);
|
|
15705
|
+
await execForeground(`${javaCmd}${passthrough}`, { cwd: repoDir, verbose: cli.verbose });
|
|
15699
15706
|
});
|
|
15700
|
-
var ServerNodeStartCommand = baseCommand().name("start").description("Start the glsp-server-node GLSP server").option("-d, --dir <path>", "Target directory where repos are cloned").option("-p, --port <port>", "Port to start the server on").option("--socket", "Use socket connection instead of websocket", false).option("-v, --verbose", "Verbose output", false).action(async (_cmdOptions, thisCmd) => {
|
|
15707
|
+
var ServerNodeStartCommand = baseCommand().name("start").allowUnknownOption(true).allowExcessArguments(true).description("Start the glsp-server-node GLSP server").option("-d, --dir <path>", "Target directory where repos are cloned").option("-p, --port <port>", "Port to start the server on").option("--socket", "Use socket connection instead of websocket", false).option("-v, --verbose", "Verbose output", false).action(async (_cmdOptions, thisCmd) => {
|
|
15701
15708
|
const cli = thisCmd.opts();
|
|
15702
15709
|
configureRepoEnv(cli);
|
|
15703
15710
|
const dir = resolveWorkspaceDir(cli.dir);
|
|
15704
15711
|
const repoDir = path23.resolve(dir, "glsp-server-node");
|
|
15705
15712
|
const yarnCmd = cli.socket ? "yarn start" : "yarn start:websocket";
|
|
15706
15713
|
const portArg = cli.port ? ` --port ${cli.port}` : "";
|
|
15707
|
-
|
|
15714
|
+
const passthrough = collectPassthroughArgs(thisCmd);
|
|
15715
|
+
await execForeground(`${yarnCmd}${portArg}${passthrough}`, { cwd: repoDir, verbose: cli.verbose });
|
|
15708
15716
|
});
|
|
15709
15717
|
|
|
15710
15718
|
// src/commands/repo/switch.ts
|