feat: add serve command for landing page preview

Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>
This commit is contained in:
2026-05-27 11:47:18 +08:00
parent a2bdfcafc5
commit 3ac00a588a
3 changed files with 551 additions and 1 deletions
+4
View File
@@ -55,9 +55,13 @@ pnpm run dev # Dev server for demo deck (http://localhost:3030)
pnpm run dev:<deck> # Dev server for a specific deck
pnpm run build # Build all decks → dist/
pnpm run build:<deck> # Build a single deck
pnpm run serve # Build all + serve dist/ on port 3030 (landing page with deck selection)
pnpm run export # Export to PDF (requires playwright-chromium)
```
- **dev mode** — hot-reload single deck for editing, use `pnpm run dev` or `pnpm run dev:<deck>`
- **serve mode** — build all decks and serve the landing page at `http://localhost:3030`, choose which deck to present
## CI/CD Pipeline
- **Trigger:** push to `main` branch