# @metis/web

@metis/web — part of the Oshun monorepo.

Next.js application. `pnpm dev` runs the dev server; `pnpm build && pnpm start`
runs the production server.

## Scripts

| Command           | Definition                                                    |
| ----------------- | ------------------------------------------------------------- |
| `pnpm dev`        | next dev -p 3020                                              |
| `pnpm build`      | next build                                                    |
| `pnpm start`      | next start -p 3020                                            |
| `pnpm lint`       | eslint src                                                    |
| `pnpm typecheck`  | tsc --noEmit                                                  |
| `pnpm test`       | vitest run                                                    |
| `pnpm test:e2e`   | playwright test                                               |
| `pnpm lighthouse` | pnpm dlx @lhci/cli@0.15.1 autorun --config=./lighthouserc.cjs |

## Layout

- `e2e/`
- `public/`
- `scripts/`
- `src/`

## Working on this package

The fastest local loop is via Nx:

```bash
pnpm nx test metis-web
pnpm nx lint metis-web
pnpm nx build metis-web
```

When Nx is unhappy (usually because another worktree has duplicate project
names), bypass it with the underlying tools from this directory:

```bash
npx tsc --noEmit
npx vitest run
```

See the [root README](../../../README.md) for monorepo-wide conventions (catalog
deps, commit format, git workflow). See the
[Contributor Guide](../../../docs/CONTRIBUTING.md) for the full PR workflow.
