feat(cli): add production workspace command
This commit is contained in:
@@ -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") {
|
||||
|
||||
Reference in New Issue
Block a user