You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
refactor: update routeTree and file routes for consistency; change import styles to use double quotes
fix: update installation commands in RouteComponent to use pnpm and vp
feat: integrate FastResponse from srvx into global Response in server.ts
chore: adjust auto-imports in types to use consistent formatting
chore: remove bun types from tsconfig.json for cleaner type management
fix: update nitro plugin import and configuration in vite.config.ts
fix: remove unused bun-sqlite-dialect from advanced chunks database test
Copy file name to clipboardExpand all lines: AGENTS.md
+11-11Lines changed: 11 additions & 11 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -6,24 +6,24 @@ Core application code lives in `src/`. Use `src/routes/` for TanStack Router fil
6
6
7
7
## Build, Test, and Development Commands
8
8
9
-
Use Bun for all local workflows:
10
-
11
-
-`bun dev`: start the Vite/TanStack Start dev server on port `3000`.
12
-
-`bun build`: create a production build.
13
-
-`bun typecheck`: run TypeScript checks for app and node configs.
14
-
-`bun lint`: run `oxlint --fix` on the codebase.
15
-
-`bun format`: format files with `oxfmt`.
16
-
-`bun test`: run the Vitest suite.
17
-
-`bun db:generate` / `bun db:migrate`: generate and apply Drizzle migrations.
9
+
Use Vite+ (`vp`) for all local workflows:
10
+
11
+
-`vp dev --port 3000`: start the Vite/TanStack Start dev server on port `3000`.
12
+
-`vp build`: create a production build.
13
+
-`vp check`: format, lint, and type-check in one pass.
14
+
-`vp lint--fix`: run Oxlint on the codebase.
15
+
-`vp fmt`: format files with Oxfmt.
16
+
-`vp test`: run the Vitest suite.
17
+
-`pnpm db:generate` / `pnpm db:migrate`: generate and apply Drizzle migrations.
18
18
-`docker-compose up -d`: start the local PostgreSQL service when needed.
19
19
20
20
## Coding Style & Naming Conventions
21
21
22
-
Write TypeScript with 2-space indentation, no semicolon style, and ESM imports, matching the existing codebase. Prefer `PascalCase` for React components, `camelCase` for hooks and utilities, and descriptive route filenames such as `index.tsx` and `__root.tsx`. Keep shared UI in `src/components/ui/`, app-wide providers in `src/components/providers/`, and avoid bypassing `src/core/utils/` for common helpers. Run `bun lint` and `bun format` before opening a PR.
22
+
Write TypeScript with 2-space indentation, no semicolon style, and ESM imports, matching the existing codebase. Prefer `PascalCase` for React components, `camelCase` for hooks and utilities, and descriptive route filenames such as `index.tsx` and `__root.tsx`. Keep shared UI in `src/components/ui/`, app-wide providers in `src/components/providers/`, and avoid bypassing `src/core/utils/` for common helpers. Run `vp check` before opening a PR.
23
23
24
24
## Testing Guidelines
25
25
26
-
This repo uses Vitest with `happy-dom`. Name tests `*.test.ts` or `*.test.tsx`; place broad setup-style tests in `src/__tests__/` and keep feature-specific tests close to the code when practical. No coverage threshold is enforced in config, so contributors should add or update tests for new route logic, state transitions, and utility behavior. Run `bun test` locally before pushing.
26
+
This repo uses Vitest with `happy-dom`. Name tests `*.test.ts` or `*.test.tsx`; place broad setup-style tests in `src/__tests__/` and keep feature-specific tests close to the code when practical. No coverage threshold is enforced in config, so contributors should add or update tests for new route logic, state transitions, and utility behavior. Run `vp test` locally before pushing.
Copy file name to clipboardExpand all lines: README.md
+17-19Lines changed: 17 additions & 19 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -1,6 +1,6 @@
1
1
# 🚀 React Template
2
2
3
-
A modern, high-performance full-stack React template powered by **Bun** and **TanStack Start**. Designed for developer experience, type-safety, and modularity.
3
+
A modern, high-performance full-stack React template powered by **Vite+** and **TanStack Start**. Designed for developer experience, type-safety, and modularity.
4
4
5
5
## 📋 Overview
6
6
@@ -10,7 +10,7 @@ This template provides a solid foundation for building full-stack applications w
10
10
11
11
- ⚛️ **React 19**: Leveraging the latest React features and improvements.
12
12
- 🚀 **TanStack Start**: Full-stack React framework with type-safe routing and SSR.
13
-
- ⚡ **Bun**: Ultra-fast runtime, package manager, and test runner.
13
+
- ⚡ **Vite+**: Unified toolchain for dev, build, lint, format, and test.
14
14
- 🗄️ **Drizzle ORM**: Type-safe TypeScript ORM for PostgreSQL.
15
15
- 🎨 **Tailwind CSS v4**: Utility-first styling with the latest engine.
16
16
- 🧩 **Shadcn UI**: 50+ accessible UI components built on `@base-ui/react`.
@@ -20,14 +20,14 @@ This template provides a solid foundation for building full-stack applications w
20
20
21
21
### Prerequisites
22
22
23
-
-[Bun](https://bun.sh) installed on your machine.
23
+
-[Node.js](https://nodejs.org) v22+ and [pnpm](https://pnpm.io) installed on your machine.
24
24
-[Docker](https://www.docker.com/) (optional, for local PostgreSQL).
25
25
26
26
### Installation
27
27
28
28
```bash
29
29
# Install dependencies
30
-
bun install
30
+
pnpm install
31
31
32
32
# Setup environment variables
33
33
cp .env.example .env.local
@@ -41,13 +41,13 @@ cp .env.example .env.local
41
41
docker-compose up -d
42
42
43
43
# Run migrations
44
-
bun db:migrate
44
+
pnpm db:migrate
45
45
```
46
46
47
47
### Development
48
48
49
49
```bash
50
-
bun dev
50
+
vp dev
51
51
```
52
52
53
53
Open [http://localhost:3000](http://localhost:3000) to see the application.
@@ -56,12 +56,11 @@ Open [http://localhost:3000](http://localhost:3000) to see the application.
0 commit comments