@stackable-labs/cli-app-extension 1.6.0 → 1.6.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.
- package/dist/index.js +50 -41
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -1795,7 +1795,7 @@ var startTunnel = (port) => new Promise((resolve, reject) => {
|
|
|
1795
1795
|
reject(new Error("Tunnel connection timed out after 30s"));
|
|
1796
1796
|
}, 3e4);
|
|
1797
1797
|
tunnel.once("url", (url) => {
|
|
1798
|
-
console.log(
|
|
1798
|
+
console.log(">>> > startTunnel > url:", { url });
|
|
1799
1799
|
clearTimeout(timeout);
|
|
1800
1800
|
resolve({ url, stop: () => tunnel.stop() });
|
|
1801
1801
|
});
|
|
@@ -1888,45 +1888,54 @@ var DevDashboard = ({
|
|
|
1888
1888
|
onQuit();
|
|
1889
1889
|
}
|
|
1890
1890
|
});
|
|
1891
|
-
|
|
1892
|
-
|
|
1893
|
-
/* @__PURE__ */
|
|
1894
|
-
|
|
1895
|
-
|
|
1896
|
-
|
|
1897
|
-
|
|
1898
|
-
|
|
1899
|
-
|
|
1900
|
-
")
|
|
1901
|
-
|
|
1902
|
-
|
|
1903
|
-
|
|
1904
|
-
|
|
1905
|
-
|
|
1906
|
-
|
|
1907
|
-
|
|
1908
|
-
|
|
1909
|
-
|
|
1910
|
-
|
|
1911
|
-
|
|
1912
|
-
|
|
1913
|
-
|
|
1914
|
-
|
|
1915
|
-
|
|
1916
|
-
|
|
1917
|
-
|
|
1918
|
-
|
|
1919
|
-
|
|
1920
|
-
|
|
1921
|
-
|
|
1922
|
-
|
|
1923
|
-
|
|
1924
|
-
|
|
1925
|
-
|
|
1926
|
-
|
|
1927
|
-
|
|
1928
|
-
|
|
1929
|
-
|
|
1891
|
+
const previewUrl = tunnelUrl ? `${tunnelUrl.replace(/\/$/, "")}/preview` : `http://localhost:${previewPort}`;
|
|
1892
|
+
return /* @__PURE__ */ jsxs15(Box15, { flexDirection: "column", children: [
|
|
1893
|
+
/* @__PURE__ */ jsx15(Banner, {}),
|
|
1894
|
+
/* @__PURE__ */ jsxs15(
|
|
1895
|
+
StepShell,
|
|
1896
|
+
{
|
|
1897
|
+
title: "dev",
|
|
1898
|
+
hint: "Live development with tunnel",
|
|
1899
|
+
footer: /* @__PURE__ */ jsxs15(Box15, { flexDirection: "column", gap: 1, children: [
|
|
1900
|
+
bundleUrlUpdated && /* @__PURE__ */ jsx15(Text15, { color: "green", children: "bundleUrl updated \u2713" }),
|
|
1901
|
+
/* @__PURE__ */ jsx15(Text15, { dimColor: true, children: "Press q or Ctrl-C to quit" })
|
|
1902
|
+
] }),
|
|
1903
|
+
children: [
|
|
1904
|
+
/* @__PURE__ */ jsxs15(Box15, { flexDirection: "column", gap: 1, children: [
|
|
1905
|
+
/* @__PURE__ */ jsxs15(Box15, { gap: 2, children: [
|
|
1906
|
+
/* @__PURE__ */ jsx15(Text15, { dimColor: true, children: "Extension:" }),
|
|
1907
|
+
/* @__PURE__ */ jsxs15(Text15, { children: [
|
|
1908
|
+
extensionName,
|
|
1909
|
+
" (",
|
|
1910
|
+
extensionId,
|
|
1911
|
+
")"
|
|
1912
|
+
] })
|
|
1913
|
+
] }),
|
|
1914
|
+
/* @__PURE__ */ jsxs15(Box15, { gap: 2, children: [
|
|
1915
|
+
/* @__PURE__ */ jsx15(Text15, { dimColor: true, children: "App:" }),
|
|
1916
|
+
/* @__PURE__ */ jsx15(Text15, { children: `${appName ? `${appName} ` : ""}(${appId})` })
|
|
1917
|
+
] })
|
|
1918
|
+
] }),
|
|
1919
|
+
/* @__PURE__ */ jsxs15(Box15, { flexDirection: "column", gap: 1, children: [
|
|
1920
|
+
/* @__PURE__ */ jsxs15(Box15, { gap: 2, children: [
|
|
1921
|
+
/* @__PURE__ */ jsx15(Text15, { dimColor: true, children: "Local Dev - Preview:" }),
|
|
1922
|
+
/* @__PURE__ */ jsx15(Text15, { children: previewUrl })
|
|
1923
|
+
] }),
|
|
1924
|
+
/* @__PURE__ */ jsxs15(Box15, { gap: 2, children: [
|
|
1925
|
+
/* @__PURE__ */ jsx15(Text15, { dimColor: true, children: "Local Dev - Extension:" }),
|
|
1926
|
+
/* @__PURE__ */ jsxs15(Text15, { children: [
|
|
1927
|
+
"http://localhost:",
|
|
1928
|
+
extensionPort
|
|
1929
|
+
] })
|
|
1930
|
+
] }),
|
|
1931
|
+
/* @__PURE__ */ jsxs15(Box15, { gap: 2, children: [
|
|
1932
|
+
/* @__PURE__ */ jsx15(Text15, { dimColor: true, children: "Tunnel Dev - Extension:" }),
|
|
1933
|
+
/* @__PURE__ */ jsx15(Text15, { children: tunnelUrl || "Connecting\u2026" })
|
|
1934
|
+
] })
|
|
1935
|
+
] })
|
|
1936
|
+
]
|
|
1937
|
+
}
|
|
1938
|
+
)
|
|
1930
1939
|
] });
|
|
1931
1940
|
};
|
|
1932
1941
|
|
|
@@ -2060,7 +2069,7 @@ var DevApp = ({ options = {} }) => {
|
|
|
2060
2069
|
import { jsx as jsx17 } from "react/jsx-runtime";
|
|
2061
2070
|
var require2 = createRequire(import.meta.url);
|
|
2062
2071
|
var { version } = require2("../package.json");
|
|
2063
|
-
program.name("stackable-app-extension").description("Stackable app
|
|
2072
|
+
program.name("stackable-app-extension").description("Stackable app Extension developer CLI").version(version);
|
|
2064
2073
|
program.command("create" /* CREATE */).description("Create a new Extension project").argument("[name]", "Extension project name").option("--extension-port <port>", "Extension dev server port (default: 5173)").option("--preview-port <port>", "Preview host dev server port").option("--skip-install", "Skip package manager install").option("--skip-git", "Skip git initialization").action((name, options) => {
|
|
2065
2074
|
render(/* @__PURE__ */ jsx17(App, { command: "create" /* CREATE */, initialName: name, options }));
|
|
2066
2075
|
});
|