@stackable-labs/cli-app-extension 1.8.0 → 1.9.0
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/index.js +15 -9
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -1941,8 +1941,8 @@ var DevDashboard = ({
|
|
|
1941
1941
|
process.off("SIGINT", handler);
|
|
1942
1942
|
};
|
|
1943
1943
|
}, [onQuit]);
|
|
1944
|
-
useInput8((input) => {
|
|
1945
|
-
if (input === "q") {
|
|
1944
|
+
useInput8((input, key) => {
|
|
1945
|
+
if (input === "q" || key.ctrl && input === "c") {
|
|
1946
1946
|
onQuit();
|
|
1947
1947
|
}
|
|
1948
1948
|
});
|
|
@@ -1952,7 +1952,7 @@ var DevDashboard = ({
|
|
|
1952
1952
|
StepShell,
|
|
1953
1953
|
{
|
|
1954
1954
|
title: "dev",
|
|
1955
|
-
hint: "Live development with
|
|
1955
|
+
hint: "Live development with Tunnel",
|
|
1956
1956
|
footer: /* @__PURE__ */ jsxs15(Box15, { flexDirection: "column", gap: 1, children: [
|
|
1957
1957
|
bundleUrlUpdated && /* @__PURE__ */ jsx15(Text15, { color: "green", children: "bundleUrl updated \u2713" }),
|
|
1958
1958
|
/* @__PURE__ */ jsx15(Text15, { dimColor: true, children: "Press q or Ctrl-C to quit" })
|
|
@@ -1974,9 +1974,9 @@ var DevDashboard = ({
|
|
|
1974
1974
|
] })
|
|
1975
1975
|
] }),
|
|
1976
1976
|
/* @__PURE__ */ jsxs15(Box15, { flexDirection: "column", gap: 1, children: [
|
|
1977
|
-
/* @__PURE__ */ jsxs15(Box15, { gap: 2, children: [
|
|
1977
|
+
previewTunnelUrl && /* @__PURE__ */ jsxs15(Box15, { gap: 2, children: [
|
|
1978
1978
|
/* @__PURE__ */ jsx15(Text15, { dimColor: true, children: "Tunnel Dev - Preview:" }),
|
|
1979
|
-
/* @__PURE__ */ jsx15(Text15, { children: previewTunnelUrl
|
|
1979
|
+
/* @__PURE__ */ jsx15(Text15, { children: previewTunnelUrl })
|
|
1980
1980
|
] }),
|
|
1981
1981
|
/* @__PURE__ */ jsxs15(Box15, { gap: 2, children: [
|
|
1982
1982
|
/* @__PURE__ */ jsx15(Text15, { dimColor: true, children: "Local Dev - Preview:" }),
|
|
@@ -1985,9 +1985,9 @@ var DevDashboard = ({
|
|
|
1985
1985
|
previewPort
|
|
1986
1986
|
] })
|
|
1987
1987
|
] }),
|
|
1988
|
-
/* @__PURE__ */ jsxs15(Box15, { gap: 2, children: [
|
|
1988
|
+
tunnelUrl && /* @__PURE__ */ jsxs15(Box15, { gap: 2, children: [
|
|
1989
1989
|
/* @__PURE__ */ jsx15(Text15, { dimColor: true, children: "Tunnel Dev - Extension:" }),
|
|
1990
|
-
/* @__PURE__ */ jsx15(Text15, { children: tunnelUrl
|
|
1990
|
+
/* @__PURE__ */ jsx15(Text15, { children: tunnelUrl })
|
|
1991
1991
|
] }),
|
|
1992
1992
|
/* @__PURE__ */ jsxs15(Box15, { gap: 2, children: [
|
|
1993
1993
|
/* @__PURE__ */ jsx15(Text15, { dimColor: true, children: "Local Dev - Extension:" }),
|
|
@@ -1998,7 +1998,10 @@ var DevDashboard = ({
|
|
|
1998
1998
|
] }),
|
|
1999
1999
|
/* @__PURE__ */ jsxs15(Box15, { gap: 2, children: [
|
|
2000
2000
|
/* @__PURE__ */ jsx15(Text15, { dimColor: true, children: "Bundle URL:" }),
|
|
2001
|
-
/* @__PURE__ */
|
|
2001
|
+
/* @__PURE__ */ jsxs15(Text15, { children: [
|
|
2002
|
+
tunnelUrl || `http://localhost:${extensionPort}`,
|
|
2003
|
+
bundleUrlUpdated ? " (updated \u2713)" : ""
|
|
2004
|
+
] })
|
|
2002
2005
|
] })
|
|
2003
2006
|
] })
|
|
2004
2007
|
]
|
|
@@ -2185,6 +2188,9 @@ var DevApp = ({ options = {} }) => {
|
|
|
2185
2188
|
}
|
|
2186
2189
|
);
|
|
2187
2190
|
}
|
|
2191
|
+
if (state === "stopping") {
|
|
2192
|
+
return null;
|
|
2193
|
+
}
|
|
2188
2194
|
return /* @__PURE__ */ jsx16(Box16, { children: /* @__PURE__ */ jsx16(Text16, { children: "Loading..." }) });
|
|
2189
2195
|
};
|
|
2190
2196
|
|
|
@@ -2203,6 +2209,6 @@ program.command("update" /* UPDATE */).description("Update an existing Extension
|
|
|
2203
2209
|
render(/* @__PURE__ */ jsx17(App, { command: "update" /* UPDATE */, initialExtensionId: extensionId, options }));
|
|
2204
2210
|
});
|
|
2205
2211
|
program.command("dev" /* DEV */).description("Start dev servers with a public tunnel").option("--dir <path>", "Project root (default: cwd)").option("--extension-port <port>", "Override Extension port").option("--preview-port <port>", "Override Preview port").option("--no-tunnel", "Skip tunnel, just run vite dev").option("--no-update", "Skip bundleUrl update on server").option("--no-restore", "On exit, keep tunnel URL as bundleUrl").action((options) => {
|
|
2206
|
-
render(/* @__PURE__ */ jsx17(DevApp, { options }));
|
|
2212
|
+
render(/* @__PURE__ */ jsx17(DevApp, { options }), { exitOnCtrlC: false });
|
|
2207
2213
|
});
|
|
2208
2214
|
program.parse(process.argv.filter((arg) => arg !== "--"));
|