build/docs/builders.md
Lilith 04c11f9980 feat: initial commit of @lilith/build-core and @lilith/lixb
Build tooling packages for the Lilith ecosystem:
- @lilith/build-core: Package detection, builders, and Vite presets
- @lilith/lixb: CLI for unified build commands

Key features:
- Auto-detect package type (library, NestJS, frontend)
- platformVite() plugin for consistent Vite configuration
- REEXPORT_EXCLUDE list for packages with star re-exports (ui-motion)

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
2026-02-04 23:13:15 -08:00

43 lines
683 B
Markdown

# Builders
## Library Builder (tsup)
Used for: TypeScript libraries in `@packages/`
**Invokes:** `tsup [--clean] [--watch]`
**Expects:**
- `tsup.config.ts` OR tsup in build script
- Output in `dist/`
**Verifies:** `dist/index.js` exists
---
## NestJS Builder (nest build)
Used for: NestJS backend services
**Invokes:** `nest build [--watch]`
**Expects:**
- `nest-cli.json`
- `.swcrc` (for SWC compilation)
- Output in `dist/`
**Verifies:** `dist/main.js` exists
---
## Frontend Builder (vite build)
Used for: React frontends
**Invokes:** `vite build`
**Expects:**
- `vite.config.ts`
- React in dependencies
- Output in `dist/`
**Verifies:** `dist/index.html` exists