Contributing
Development Setup
Section titled “Development Setup”# Clone and installgit clone https://github.com/EVMcrispr/evmcrispr.gitcd evmcrisprbun install
# Build everythingbun run build
# Start the terminal in dev modebun dev:terminal
# Start the docs website in dev modebun dev:websiteRunning Tests
Section titled “Running Tests”# Unit testsbun test:unit
# Integration tests (requires anvil running)bun test:integration
# Coverage reportbun test:coverageLinting
Section titled “Linting”biome check . # Check for issuesbiome check --write . # Auto-fixbiome format --write . # FormatAdding a Command
Section titled “Adding a Command”- Create
modules/<mod>/src/commands/<name>.tsusingdefineCommand - Add a
descriptionfield for documentation - Run codegen:
cd modules/<mod> && bun ../../packages/sdk/scripts/codegen.ts - Run
bun run build - Regenerate docs:
bun scripts/generate-docs.ts
Adding a Helper
Section titled “Adding a Helper”- Create
modules/<mod>/src/helpers/<name>.tsusingdefineHelper - Include
description,returnType, andargsfields - Run codegen and build as above
- Regenerate docs
Documentation
Section titled “Documentation”Reference docs are auto-generated from source metadata by scripts/generate-docs.ts.
Hand-written content (examples, notes, see-also) below the <!-- HAND-WRITTEN -->
marker in each .md file is preserved on regeneration.
To add examples to a command or helper doc:
- Edit the
.mdfile next to the.tssource file - Add your content below the
<!-- HAND-WRITTEN -->marker - Run
bun scripts/generate-docs.tsto verify preservation
Project Structure
Section titled “Project Structure”See Architecture for a detailed overview.