feat(cli): add nuxt + convex support (#458)

This commit is contained in:
Aman Varshney
2025-08-02 11:50:00 +05:30
committed by GitHub
parent cef5840852
commit 430fa41abd
19 changed files with 272 additions and 144 deletions

View File

@@ -345,5 +345,5 @@ function getBunWebNativeWarning(): string {
}
function getWorkersDeployInstructions(runCmd?: string): string {
return `\n${pc.bold("Deploy frontend to Cloudflare Workers:")}\n${pc.cyan("•")} Deploy: ${`cd apps/web && ${runCmd || "bun run"} deploy`}`;
return `\n${pc.bold("Deploy frontend to Cloudflare Workers:")}\n${pc.cyan("•")} Deploy: ${`cd apps/web && ${runCmd} run deploy`}`;
}

View File

@@ -75,6 +75,8 @@ export async function setupApi(config: ProjectConfig) {
if (api === "orpc") {
await addPackageDependency({
dependencies: [
"@tanstack/vue-query",
"@tanstack/vue-query-devtools",
"@orpc/tanstack-query",
"@orpc/client",
"@orpc/server",
@@ -219,7 +221,10 @@ export async function setupApi(config: ProjectConfig) {
if (hasSvelteWeb) {
webDepsToAdd.push("convex-svelte");
}
if (hasNuxtWeb) {
webDepsToAdd.push("convex-nuxt");
webDepsToAdd.push("convex-vue");
}
await addPackageDependency({
dependencies: webDepsToAdd,
projectDir: webDir,