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
chore: update package dependencies and scripts to use vite-plus
- Changed script commands in package.json to use `vp` instead of `vite`.
- Updated dependencies to their latest versions, including major updates for several packages.
- Modified test setup to import from `vite-plus/test`.
- Adjusted TypeScript configuration to include necessary files and settings.
- Refactored Vite configuration to utilize `vite-plus` and improved plugin setup.
- Enhanced auto-imports and environment configurations for better type support.
Copy file name to clipboardExpand all lines: AGENTS.md
+6Lines changed: 6 additions & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -1,9 +1,11 @@
1
1
# Repository Guidelines
2
2
3
3
## Project Structure & Module Organization
4
+
4
5
Core application code lives in `src/`. Use `src/routes/` for TanStack Router file-based routes, `src/components/` for reusable UI, layouts, and providers, `src/store/` for Zustand state, and `src/core/` for shared infrastructure such as env parsing, database access, schemas, and utilities. Tests currently live in `src/__tests__/`. Root config files include `vite.config.ts`, `vitest.config.ts`, `drizzle.config.ts`, and TypeScript configs.
5
6
6
7
## Build, Test, and Development Commands
8
+
7
9
Use Bun for all local workflows:
8
10
9
11
-`bun dev`: start the Vite/TanStack Start dev server on port `3000`.
@@ -16,13 +18,17 @@ Use Bun for all local workflows:
16
18
-`docker-compose up -d`: start the local PostgreSQL service when needed.
17
19
18
20
## Coding Style & Naming Conventions
21
+
19
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.
20
23
21
24
## Testing Guidelines
25
+
22
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.
23
27
24
28
## Commit & Pull Request Guidelines
29
+
25
30
Follow the commit style already used in history: Conventional Commit prefixes such as `feat:`, `fix:`, `refactor:`, `docs:`, `style:`, and `chore:` with a short imperative summary. PRs should include a concise description, linked issue when applicable, local verification steps, and screenshots or recordings for UI changes. Call out schema, environment, or migration impacts explicitly.
26
31
27
32
## Environment & Configuration Tips
33
+
28
34
Keep secrets in local env files, not in source control. Database and runtime configuration flow through `src/core/env/` and Drizzle config, so update those paths together when introducing new environment variables or database settings.
0 commit comments