feat: centralize application framework primitives
This commit is contained in:
1 parent
96e082b943
commit
a3ddd39b7b
73 files changed
+1429
-84
No files matched your search
@@ -60,6 +60,7 @@ Usage:
|
||||
wrnexus generate types [app-dir] Generate application-wide route/component/key types
|
||||
wrnexus routes [app-dir] Generate typed named routes
|
||||
wrnexus typecheck [app-dir] Generate types and check TypeScript plus every .wrn file
|
||||
wrnexus check [app-dir] Build/generate, typecheck, lint, test, and format-check
|
||||
wrnexus mobile add <package...> Install Capacitor or Expo native packages
|
||||
wrnexus mobile compile Compile .wrn pages into native Expo routes
|
||||
wrnexus native list List cross-platform native capabilities
|
||||
@@ -239,6 +240,14 @@ async function main(): Promise<void> {
|
||||
else console.log("✓ Application types are valid");
|
||||
break;
|
||||
}
|
||||
case "check": {
|
||||
const appRoot = rest.find((arg) => !arg.startsWith("--")) ?? ".";
|
||||
bootstrapProfile(appRoot, "production", rest);
|
||||
const { runCheck } = await import("./check.ts");
|
||||
await runCheck(appRoot);
|
||||
console.log("✓ Application check passed");
|
||||
break;
|
||||
}
|
||||
case "eject": {
|
||||
const { runEject } = await import("./eject.ts");
|
||||
const args = rest.filter((a) => !a.startsWith("--"));
|
||||
|
||||
Reference in new issue
Block a user