# AGENTS.md

Next generation frontend tooling. It's fast!

## Setup

```
pnpm install
```

## Commands

```
pnpm dev           # run locally
pnpm build         # produce a build
pnpm test          # run the test suite, must pass before any commit
pnpm typecheck     # type check without emitting
pnpm lint          # lint
pnpm format        # format
pnpm preinstall
pnpm postinstall
```

## Layout

- `playground/` 1067 source files
- `packages/`   486 source files
- `docs/`       29 source files
- `scripts/`    7 source files

## Conventions

- Tests live alongside the code they cover, following `packages/create-vite/__tests__/cli.spec.ts`.
- CI defines what passing means. See `.github/workflows/bot.yml`, and keep it green.
- TODO: add the two or three conventions a newcomer always gets wrong here.

## Gotchas

- `packages/vite/src/node/plugins/css.ts` is 114KB. It will not fit comfortably in context, so read it in parts.

---

Drafted by agentreadme.com from what is in this repository. Everything marked TODO
needs a human. Check it in as AGENTS.md at the root.
