After cloning the repository, run the following commands:
# Install dependencies
npm install
# Initialize Husky (Git hooks)
npm run prepare
# Generate TanStack Router route tree
npm run devHusky is configured to run the following checks before every commit:
- Linting - Standard JS and TS Standard
- Formatting - Automatic code formatting
- Type Checking - TypeScript type validation
- Unit Tests - All tests must pass
- Code Coverage - Minimum 80% coverage required
- Install dependencies:
npm install - Husky will be installed automatically via
preparescript - Run
npm run devto generate route tree for TanStack Router - All pre-commit hooks will be active
If you see errors about routeTree.gen.ts, run:
npm run devThis will generate the route tree automatically.
If pre-commit hooks aren't running:
npm run prepareEnsure you have at least 80% code coverage:
npm run test:coverage