# @kalika/web

Kalika notebook workbench web application

Vite-built web app. `pnpm dev` starts the dev server; `pnpm build` produces a
static bundle in `dist/`.

## Scripts

| Command          | Definition                                    |
| ---------------- | --------------------------------------------- |
| `pnpm dev`       | vite --host 0.0.0.0                           |
| `pnpm build`     | tsc --noEmit && vite build                    |
| `pnpm preview`   | vite preview --host 0.0.0.0                   |
| `pnpm test`      | vitest run                                    |
| `pnpm e2e`       | playwright test --config=playwright.config.ts |
| `pnpm typecheck` | tsc --noEmit                                  |
| `pnpm lint`      | eslint src                                    |

## Layout

- `e2e/`
- `src/`

## Working on this package

The fastest local loop is via Nx:

```bash
pnpm nx test kalika-web
pnpm nx lint kalika-web
pnpm nx build kalika-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.
