mirror of
https://github.com/FranP-code/create-better-t-stack.git
synced 2025-10-12 23:52:15 +00:00
feat(cli): add nuxt + convex support (#458)
This commit is contained in:
@@ -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`}`;
|
||||
}
|
||||
|
||||
@@ -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,
|
||||
|
||||
Reference in New Issue
Block a user