Template react app with batteries included π
- Vite
- Vitest (testing for Vite)
- Playwright (testing end-to-end)
- Typescript
- TanStack Store
- TanStack Router
- StyleX
- React Scan (local development)
- Cosmos (local development / lightweight
Storybookalternative) - Custom
bootstrap.ts- Build scriptpersist.ts- Persister for TanStack Store- Components
- Utils and helper functions
Checkout Adrift Native to run Adrift apps natively on Windows, Mac, and Linux.
Quick start, get up an running in one command:
git clone https://github.com/hmerritt/adrift && cd adrift && bun i && bun devClone this repo and run one of the following scripts:
Available scripts (run using bun run <script>):
dev- starts Vite dev server for local developmentlint- runs fast lint (oxlint), ESLint compatibility checks, and type-checkinglint:fast- runsoxlint(primary fast lint pass)lint:eslint- runs ESLint (StyleX + React hooks/compiler compatibility rules)typecheck- runs TypeScript type-checking (tsc --noEmit)test- runs all test filespreview- similar todev, but uses production mode to simulate the final buildbuild- builds the project todistdirectorycosmos- Cosmos dev server