create-opentray 0.26.0 → 0.27.1
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.
|
@@ -17486,11 +17486,23 @@ const runCreate = async (args, context) => {
|
|
|
17486
17486
|
return;
|
|
17487
17487
|
}
|
|
17488
17488
|
const applied = await applyCreate(applyOptions);
|
|
17489
|
-
|
|
17489
|
+
const openedLine = applied.ok && args.open === true ? await openCreatedApp(applied.value.payloadDir) : "";
|
|
17490
|
+
finish(context, asResourceResult(applied), args.json === true, (value) => [
|
|
17491
|
+
`created ${value.registrationDir}`,
|
|
17492
|
+
`payload: ${value.payloadDir}${value.isLink ? " (linked)" : ""}`,
|
|
17493
|
+
...openedLine === "" ? [] : [openedLine]
|
|
17494
|
+
].join("\n"));
|
|
17495
|
+
};
|
|
17496
|
+
const openCreatedApp = async (payloadDir) => {
|
|
17497
|
+
const opened = await openMaterializedApp({
|
|
17498
|
+
projectDir: payloadDir,
|
|
17499
|
+
bundlePath: void 0
|
|
17500
|
+
});
|
|
17501
|
+
return opened.ok ? `opened: ${payloadDir}` : ` w open failed: ${opened.detail}`;
|
|
17490
17502
|
};
|
|
17491
17503
|
const createCommand = (context) => ({
|
|
17492
17504
|
command: "create",
|
|
17493
|
-
describe: "create a v1 application non-interactively (no browser, no prompts, no sniffing)",
|
|
17505
|
+
describe: "create a v1 application non-interactively (no browser, no prompts, no sniffing; --open launches after apply)",
|
|
17494
17506
|
builder: (yargs) => yargs.option("config", {
|
|
17495
17507
|
type: "string",
|
|
17496
17508
|
describe: "base v1 config document (explicit flags override named fields)"
|
|
@@ -17578,6 +17590,10 @@ const createCommand = (context) => ({
|
|
|
17578
17590
|
type: "boolean",
|
|
17579
17591
|
default: false,
|
|
17580
17592
|
describe: "write the project without installing dependencies"
|
|
17593
|
+
}).option("open", {
|
|
17594
|
+
type: "boolean",
|
|
17595
|
+
default: false,
|
|
17596
|
+
describe: "open the created application after a successful apply (opt-in launch; the wizard's Open App action as a flag)"
|
|
17581
17597
|
}).option("dry-run", {
|
|
17582
17598
|
type: "boolean",
|
|
17583
17599
|
default: false,
|
|
@@ -18405,4 +18421,4 @@ if (isMainModule()) main(process.argv.slice(2)).then((code) => {
|
|
|
18405
18421
|
//#endregion
|
|
18406
18422
|
export { resolveLaunchVector as A, parseLsofPorts as C, verifyHttpService as D, serviceUrl as E, isValidAppId as F, toProjectDirectoryName as I, tokenizeCommandLine as M, deriveDefaultAppId as N, waitForTcpPort as O, deriveDefaultAppName as P, createPortDiscovery as S, parsePowerShellPorts as T, extractTitle as _, createWizardServer as a, resolveFaviconUrl as b, createWizardSession as c, detectPackageManager as d, expectedDarwinBundlePath as f, extractFaviconCandidates as g, writeScaffold as h, parseWizardCli as i, resolveOnPath as j, parseShebangInterpreter as k, openMaterializedApp as l, materialize as m, normalizeDraftForm as n, isAuthorized as o, isDirectoryOccupied$1 as p, openBrowser as r, isLoopbackHost as s, main as t, pinningHint as u, faviconCandidateSize as v, parseNetstatPorts as w, scrapeService as x, rankFaviconCandidates as y };
|
|
18407
18423
|
|
|
18408
|
-
//# sourceMappingURL=bin-
|
|
18424
|
+
//# sourceMappingURL=bin-2M6ud0DS.mjs.map
|