mirror of
https://github.com/FranP-code/create-better-t-stack.git
synced 2025-10-12 23:52:15 +00:00
feat(cli): upgrade next and elysia (#533)
This commit is contained in:
@@ -10,20 +10,20 @@ export const PKG_ROOT = path.join(distPath, "../");
|
|||||||
export const DEFAULT_CONFIG_BASE = {
|
export const DEFAULT_CONFIG_BASE = {
|
||||||
projectName: "my-better-t-app",
|
projectName: "my-better-t-app",
|
||||||
relativePath: "my-better-t-app",
|
relativePath: "my-better-t-app",
|
||||||
frontend: ["tanstack-router"] as const,
|
frontend: ["tanstack-router"],
|
||||||
database: "sqlite" as const,
|
database: "sqlite",
|
||||||
orm: "drizzle" as const,
|
orm: "drizzle",
|
||||||
auth: true,
|
auth: true,
|
||||||
addons: ["turborepo"] as const,
|
addons: ["turborepo"],
|
||||||
examples: [] as const,
|
examples: [],
|
||||||
git: true,
|
git: true,
|
||||||
install: true,
|
install: true,
|
||||||
dbSetup: "none" as const,
|
dbSetup: "none",
|
||||||
backend: "hono" as const,
|
backend: "hono",
|
||||||
runtime: "bun" as const,
|
runtime: "bun",
|
||||||
api: "trpc" as const,
|
api: "trpc",
|
||||||
webDeploy: "none" as const,
|
webDeploy: "none",
|
||||||
serverDeploy: "none" as const,
|
serverDeploy: "none",
|
||||||
} as const;
|
} as const;
|
||||||
|
|
||||||
export function getDefaultConfig(): ProjectConfig {
|
export function getDefaultConfig(): ProjectConfig {
|
||||||
@@ -40,8 +40,8 @@ export function getDefaultConfig(): ProjectConfig {
|
|||||||
export const DEFAULT_CONFIG = getDefaultConfig();
|
export const DEFAULT_CONFIG = getDefaultConfig();
|
||||||
|
|
||||||
export const dependencyVersionMap = {
|
export const dependencyVersionMap = {
|
||||||
"better-auth": "^1.3.4",
|
"better-auth": "^1.3.7",
|
||||||
"@better-auth/expo": "^1.3.4",
|
"@better-auth/expo": "^1.3.7",
|
||||||
|
|
||||||
"drizzle-orm": "^0.44.2",
|
"drizzle-orm": "^0.44.2",
|
||||||
"drizzle-kit": "^0.31.2",
|
"drizzle-kit": "^0.31.2",
|
||||||
@@ -68,7 +68,7 @@ export const dependencyVersionMap = {
|
|||||||
"@tauri-apps/cli": "^2.4.0",
|
"@tauri-apps/cli": "^2.4.0",
|
||||||
|
|
||||||
"@biomejs/biome": "^2.2.0",
|
"@biomejs/biome": "^2.2.0",
|
||||||
oxlint: "^1.8.0",
|
oxlint: "^1.12.0",
|
||||||
|
|
||||||
husky: "^9.1.7",
|
husky: "^9.1.7",
|
||||||
"lint-staged": "^16.1.2",
|
"lint-staged": "^16.1.2",
|
||||||
@@ -78,11 +78,11 @@ export const dependencyVersionMap = {
|
|||||||
|
|
||||||
"@types/bun": "^1.2.6",
|
"@types/bun": "^1.2.6",
|
||||||
|
|
||||||
"@elysiajs/node": "^1.2.6",
|
"@elysiajs/node": "^1.3.1",
|
||||||
|
|
||||||
"@elysiajs/cors": "^1.2.0",
|
"@elysiajs/cors": "^1.3.3",
|
||||||
"@elysiajs/trpc": "^1.1.0",
|
"@elysiajs/trpc": "^1.1.0",
|
||||||
elysia: "^1.2.25",
|
elysia: "^1.3.20",
|
||||||
|
|
||||||
"@hono/node-server": "^1.14.4",
|
"@hono/node-server": "^1.14.4",
|
||||||
"@hono/trpc-server": "^0.4.0",
|
"@hono/trpc-server": "^0.4.0",
|
||||||
@@ -104,13 +104,13 @@ export const dependencyVersionMap = {
|
|||||||
"@ai-sdk/svelte": "^3.0.9",
|
"@ai-sdk/svelte": "^3.0.9",
|
||||||
"@ai-sdk/react": "^2.0.9",
|
"@ai-sdk/react": "^2.0.9",
|
||||||
|
|
||||||
"@orpc/server": "^1.5.0",
|
"@orpc/server": "^1.8.4",
|
||||||
"@orpc/client": "^1.5.0",
|
"@orpc/client": "^1.8.4",
|
||||||
"@orpc/tanstack-query": "^1.5.0",
|
"@orpc/tanstack-query": "^1.8.4",
|
||||||
|
|
||||||
"@trpc/tanstack-react-query": "^11.4.2",
|
"@trpc/tanstack-react-query": "^11.5.0",
|
||||||
"@trpc/server": "^11.4.2",
|
"@trpc/server": "^11.5.0",
|
||||||
"@trpc/client": "^11.4.2",
|
"@trpc/client": "^11.5.0",
|
||||||
|
|
||||||
convex: "^1.25.4",
|
convex: "^1.25.4",
|
||||||
"@convex-dev/react-query": "^0.0.0-alpha.8",
|
"@convex-dev/react-query": "^0.0.0-alpha.8",
|
||||||
@@ -124,8 +124,8 @@ export const dependencyVersionMap = {
|
|||||||
"@tanstack/vue-query-devtools": "^5.83.0",
|
"@tanstack/vue-query-devtools": "^5.83.0",
|
||||||
"@tanstack/vue-query": "^5.83.0",
|
"@tanstack/vue-query": "^5.83.0",
|
||||||
|
|
||||||
"@tanstack/react-query-devtools": "^5.80.5",
|
"@tanstack/react-query-devtools": "^5.85.5",
|
||||||
"@tanstack/react-query": "^5.80.5",
|
"@tanstack/react-query": "^5.85.5",
|
||||||
|
|
||||||
"@tanstack/solid-query": "^5.75.0",
|
"@tanstack/solid-query": "^5.75.0",
|
||||||
"@tanstack/solid-query-devtools": "^5.75.0",
|
"@tanstack/solid-query-devtools": "^5.75.0",
|
||||||
|
|||||||
@@ -1,7 +1,7 @@
|
|||||||
import type { NextConfig } from "next";
|
import type { NextConfig } from "next";
|
||||||
|
|
||||||
const nextConfig: NextConfig = {
|
const nextConfig: NextConfig = {
|
||||||
/* config options here */
|
typedRoutes: true,
|
||||||
};
|
};
|
||||||
|
|
||||||
export default nextConfig;
|
export default nextConfig;
|
||||||
|
|||||||
@@ -8,7 +8,7 @@
|
|||||||
"start": "next start"
|
"start": "next start"
|
||||||
},
|
},
|
||||||
"dependencies": {
|
"dependencies": {
|
||||||
"next": "15.3.0",
|
"next": "15.5.0",
|
||||||
"react": "^19.0.0",
|
"react": "^19.0.0",
|
||||||
"react-dom": "^19.0.0",
|
"react-dom": "^19.0.0",
|
||||||
"dotenv": "^17.2.1"
|
"dotenv": "^17.2.1"
|
||||||
|
|||||||
@@ -17,7 +17,7 @@
|
|||||||
],
|
],
|
||||||
{{/if}}
|
{{/if}}
|
||||||
"devDependencies": {
|
"devDependencies": {
|
||||||
"tsdown": "^0.12.9",
|
"tsdown": "^0.14.1",
|
||||||
"typescript": "^5.8.2"
|
"typescript": "^5.8.2"
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -1,5 +1,7 @@
|
|||||||
import type { NextConfig } from "next";
|
import type { NextConfig } from "next";
|
||||||
|
|
||||||
const nextConfig: NextConfig = {};
|
const nextConfig: NextConfig = {
|
||||||
|
typedRoutes: true,
|
||||||
|
};
|
||||||
|
|
||||||
export default nextConfig;
|
export default nextConfig;
|
||||||
|
|||||||
@@ -5,8 +5,7 @@
|
|||||||
"scripts": {
|
"scripts": {
|
||||||
"dev": "next dev --turbopack --port=3001",
|
"dev": "next dev --turbopack --port=3001",
|
||||||
"build": "next build",
|
"build": "next build",
|
||||||
"start": "next start",
|
"start": "next start"
|
||||||
"lint": "next lint"
|
|
||||||
},
|
},
|
||||||
"dependencies": {
|
"dependencies": {
|
||||||
"radix-ui": "^1.4.2",
|
"radix-ui": "^1.4.2",
|
||||||
@@ -14,7 +13,7 @@
|
|||||||
"class-variance-authority": "^0.7.1",
|
"class-variance-authority": "^0.7.1",
|
||||||
"clsx": "^2.1.1",
|
"clsx": "^2.1.1",
|
||||||
"lucide-react": "^0.487.0",
|
"lucide-react": "^0.487.0",
|
||||||
"next": "15.3.0",
|
"next": "15.5.0",
|
||||||
"next-themes": "^0.4.6",
|
"next-themes": "^0.4.6",
|
||||||
"react": "^19.0.0",
|
"react": "^19.0.0",
|
||||||
"react-dom": "^19.0.0",
|
"react-dom": "^19.0.0",
|
||||||
|
|||||||
@@ -25,7 +25,7 @@ export default function Header() {
|
|||||||
{{#if (includes examples "ai")}}
|
{{#if (includes examples "ai")}}
|
||||||
{ to: "/ai", label: "AI Chat" },
|
{ to: "/ai", label: "AI Chat" },
|
||||||
{{/if}}
|
{{/if}}
|
||||||
];
|
] as const;
|
||||||
|
|
||||||
return (
|
return (
|
||||||
<div>
|
<div>
|
||||||
|
|||||||
@@ -2731,20 +2731,6 @@ describe("create-better-t-stack smoke", () => {
|
|||||||
});
|
});
|
||||||
};
|
};
|
||||||
|
|
||||||
const runCodegen = async (pm: "bun" | "pnpm" | "npm", cwd: string) => {
|
|
||||||
if (pm === "bun")
|
|
||||||
return execa("bunx", ["convex", "codegen"], {
|
|
||||||
cwd,
|
|
||||||
stdio: "inherit",
|
|
||||||
});
|
|
||||||
if (pm === "pnpm")
|
|
||||||
return execa("pnpm", ["dlx", "convex", "codegen"], {
|
|
||||||
cwd,
|
|
||||||
stdio: "inherit",
|
|
||||||
});
|
|
||||||
return execa("npx", ["convex", "codegen"], { cwd, stdio: "inherit" });
|
|
||||||
};
|
|
||||||
|
|
||||||
for (const dirName of projectNames) {
|
for (const dirName of projectNames) {
|
||||||
it(`builds ${dirName}`, async () => {
|
it(`builds ${dirName}`, async () => {
|
||||||
const projectDir = join(workdir, dirName);
|
const projectDir = join(workdir, dirName);
|
||||||
@@ -2801,10 +2787,6 @@ describe("create-better-t-stack smoke", () => {
|
|||||||
);
|
);
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
consola.start("Running Convex codegen in packages/backend ...");
|
|
||||||
const backendDir = join(projectDir, "packages", "backend");
|
|
||||||
const codegenRes = await runCodegen(pm, backendDir);
|
|
||||||
expect(codegenRes.exitCode).toBe(0);
|
|
||||||
}
|
}
|
||||||
|
|
||||||
if (scripts.build) {
|
if (scripts.build) {
|
||||||
|
|||||||
Reference in New Issue
Block a user