Skip to content

wip: move to tanstack start #5

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Draft
wants to merge 1 commit into
base: main
Choose a base branch
from
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions .eslintrc.cjs
Original file line number Diff line number Diff line change
Expand Up @@ -8,9 +8,9 @@ const config = {
"@typescript-eslint",
],
"extends": [
"next/core-web-vitals",
"plugin:@typescript-eslint/recommended-type-checked",
"plugin:@typescript-eslint/stylistic-type-checked"
"plugin:@typescript-eslint/stylistic-type-checked",
"plugin:@tanstack/eslint-plugin-router/recommended"
],
"rules": {
"@typescript-eslint/array-type": "off",
Expand Down
21 changes: 21 additions & 0 deletions app.config.timestamp_1745083512207.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
// app.config.ts
import { defineConfig } from "@tanstack/react-start/config";
import tsConfigPaths from "vite-tsconfig-paths";
var app_config_default = defineConfig({
server: {
preset: "node-server"
},
tsr: {
appDirectory: "src"
},
vite: {
plugins: [
tsConfigPaths({
projects: ["./tsconfig.json"]
})
]
}
});
export {
app_config_default as default
};
18 changes: 18 additions & 0 deletions app.config.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
import { defineConfig } from '@tanstack/react-start/config'
import tsConfigPaths from 'vite-tsconfig-paths'

export default defineConfig({
server: {
preset: 'node-server',
},
tsr: {
appDirectory: 'src',
},
vite: {
plugins: [
tsConfigPaths({
projects: ['./tsconfig.json'],
}),
],
},
})
18 changes: 0 additions & 18 deletions next.config.js

This file was deleted.

45 changes: 21 additions & 24 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,15 +4,13 @@
"private": true,
"type": "module",
"scripts": {
"build": "next build",
"check": "next lint && tsc --noEmit",
"dev": "PORT=3001 next dev --turbo",
"build": "vinxi build",
"dev": "PORT=3001 vinxi dev",
"start": "vinxi start",
"format:check": "prettier --check \"**/*.{ts,tsx,js,jsx,mdx}\" --cache",
"format:write": "prettier --write \"**/*.{ts,tsx,js,jsx,mdx}\" --cache",
"lint": "next lint",
"lint:fix": "next lint --fix",
"preview": "next build && next start",
"start": "next start",
"lint": "eslint src",
"lint:fix": "pnpm run lint --fix",
"typecheck": "tsc --noEmit"
},
"dependencies": {
Expand All @@ -30,49 +28,48 @@
"@radix-ui/react-separator": "^1.1.0",
"@radix-ui/react-slot": "^1.1.0",
"@radix-ui/react-tooltip": "^1.1.4",
"@t3-oss/env-nextjs": "^0.10.1",
"@t3-oss/env-core": "^0.12.0",
"@tanstack/react-query": "^5.74.3",
"@tanstack/react-router": "^1.116.0",
"@tanstack/react-start": "^1.116.0",
"@tanstack/react-table": "^8.21.2",
"@trpc/client": "^11.1.0",
"@trpc/next": "^11.1.0",
"@trpc/react-query": "^11.1.0",
"@trpc/tanstack-react-query": "^11.1.0",
"better-auth": "^1.2.7",
"class-variance-authority": "^0.7.1",
"clsx": "^2.1.1",
"cmdk": "^1.1.1",
"geist": "^1.3.0",
"lucide-react": "^0.475.0",
"next": "^15.3.0",
"next-themes": "^0.4.4",
"postgres": "^3.4.4",
"react": "^18.3.1",
"react-dom": "^18.3.1",
"react": "^19.1.0",
"react-dom": "^19.1.0",
"react-hook-form": "^7.55.0",
"server-only": "^0.0.1",
"sonner": "^2.0.3",
"superjson": "^2.2.1",
"tailwind-merge": "^3.0.1",
"tailwindcss-animate": "^1.0.7",
"vinxi": "^0.5.3",
"zod": "^3.23.3"
},
"devDependencies": {
"@tailwindcss/postcss": "^4.1.4",
"@tanstack/eslint-plugin-router": "^1.115.0",
"@types/eslint": "^8.56.10",
"@types/node": "^20.14.10",
"@types/react": "^18.3.3",
"@types/react-dom": "^18.3.0",
"@types/node": "^22.14.1",
"@types/react": "^19.1.2",
"@types/react-dom": "^19.1.2",
"@typescript-eslint/eslint-plugin": "^8.1.0",
"@typescript-eslint/parser": "^8.1.0",
"@vitejs/plugin-react": "^4.4.1",
"eslint": "^8.57.0",
"eslint-config-next": "^15.0.1",
"postcss": "^8.4.39",
"prettier": "^3.3.2",
"prettier-plugin-tailwindcss": "^0.6.5",
"tailwindcss": "^3.4.3",
"typescript": "^5.5.3"
},
"ct3aMetadata": {
"initVersion": "7.38.1"
"prettier-plugin-tailwindcss": "^0.6.11",
"tailwindcss": "^4.1.4",
"typescript": "^5.7.3",
"vite-tsconfig-paths": "^5.1.4"
},
"packageManager": "[email protected]+sha512.c50088ba998c67b8ca8c99df8a5e02fd2ae2e2b29aaf238feaa9e124248d3f48f9fb6db2424949ff901cffbb5e0f0cc1ad6aedb602cd29450751d11c35023677"
}
Loading