feat(cli): add production workspace command

This commit is contained in:
2026-07-19 21:57:55 +05:30
parent dcdb5e766d
commit 5ce45b4973
58 changed files with 235 additions and 90 deletions
+7
View File
@@ -46,6 +46,7 @@ Usage:
wrnexus workspace add <name> [--domain=name.localhost]
Add an app to the current workspace
wrnexus gateway [--port=3000] Serve every workspace app behind one port, routed by domain
wrnexus production [workspace-dir] Build, migrate, and serve the complete production workspace
wrnexus generate <type> <name> Scaffold a page | component | api | schema
wrnexus generate routes | docker | mobile
Generate routes or scaffold deployment targets
@@ -108,6 +109,12 @@ async function main(): Promise<void> {
await runGateway(appRoot, rest);
break;
}
case "production": {
const workspaceRoot = rest.find((a) => !a.startsWith("--")) ?? ".";
const { runProduction } = await import("./workspace.ts");
await runProduction(workspaceRoot, rest);
break;
}
case "generate":
case "g": {
if (rest[0] === "routes") {