Open History to see the last commit
1# Package Manager Instructions
2
3Always use pnpm instead of npm for all package management tasks:
4
5- Use `pnpm install` instead of `npm install`
6- Use `pnpm add <package>` instead of `npm install <package>`
7- Use `pnpm add -D <package>` instead of `npm install --save-dev <package>`
8- Use `pnpm remove <package>` instead of `npm uninstall <package>`
9- Use `pnpm run <script>` instead of `npm run <script>`
10- Use `pnpm <command>` for any other npm commands
11- Use `pnpm dlx <command>` instead of `npx <command>`
12- Use `pnpm create <template>` instead of `npm create <template>`
13
14## Project-Specific Scripts
15
16When running scripts from package.json, always use:
17
18- `pnpm dev` for development server
19- `pnpm build` for production build
20- `pnpm run test` for running tests
21- `pnpm lint` for linting
22- `pnpm typecheck` for type checking
23- `pnpm format` for code formatting
24
25## Database Commands
26
27For database-related tasks:
28
29- `pnpm db.generate` to generate database migrations
30- `pnpm db.local.migrate` to apply local migrations
31- `pnpm db.prod.migrate` to apply production migrations
32
33## Use pnpm
34
35Never use npm, yarn, or any other package manager in this project. All package operations should be performed with pnpm.
36
37## Tech Stack
38
39This project uses TanStack Start. The root route is at `src/route/__root.tsx`.
40
41Here's the tech stack:
42
43- framework: TanStack Start (`@tanstack/start`) with `react`
44- router: TanStack Router (`@tanstack/router`)
45- ui: `shadcn/ui`
46- css: `tailwindcss` (v4)
47
48# Tests
49
50We use `vitest` for the tests.
51
52All tests are in `__test__/`.
53
54# Validating your code
55
56- NEVER run the dev server (e.g.: `pnpm dev`)!
57- always ensure no formatting/linting issues exist in your code
58 - this command automatically fixes these issues where possible: `pnpm check --fix`
59- NEVER deploy anything (e.g. with `pnpm preview.deploy`, or `pnpm run deploy`)
60
61# Coding style
62
63- Prefer functions over arrow functions for React components and everything else
64- Prefer `type`-s over `interface`-s