Development
This repository uses Bun for tests and scripts, Rolldown for package bundling, and VitePress for documentation.
Setup
bash
bun installVerification
bash
bun test
bun run lint
bun run format:check
bun run build
bun run docs:buildRelease Builds
Build npm package output:
bash
bun run buildBuild standalone binaries:
bash
bun run build:binaryLimit local builds to selected targets:
bash
BINARY_TARGETS=bun-windows-x64 bun run build:binary
# PowerShell: $env:BINARY_TARGETS="bun-windows-x64"; bun run build:binaryBinary builds fail the process if any target fails, so CI catches partial releases.
Documentation
Start the docs site locally:
bash
bun run docs:devPreview the production build:
bash
bun run docs:previewEnglish pages live at docs/. Chinese pages live at docs/zh/.