Local Development
How to set up LightMem2 for local development.
Prerequisites
Same as installation prerequisites:
- Node.js ≥ 18 (v20+ recommended)
- pnpm ≥ 9
- Git
Setup
bash
git clone https://github.com/zjunlp/LightMem2.git
cd LightMem2
corepack enable
pnpm install
pnpm buildDevelopment Workflow
bash
# Build all packages
pnpm build
# Typecheck
pnpm typecheck
# Build the CLI
pnpm lightmem2:build
# Install the CLI locally
pnpm lightmem2:install
# Run tests
pnpm lightmem2:testPer-Package Commands
bash
# Build a specific adapter
npm --prefix components/adapters/openclaw run build
# Typecheck a specific package
npm --prefix components/packages/foundation/runtime-core run typecheckDocumentation Site
bash
# Start dev server
pnpm docs:dev
# Build for production
pnpm docs:build
# Preview production build
pnpm docs:preview