Skip to content

Latest commit

Β 

History

History
59 lines (40 loc) Β· 1.88 KB

CLAUDE.md

File metadata and controls

59 lines (40 loc) Β· 1.88 KB

CLAUDE.md

Project

vimee β€” headless Vim engine for the web. TypeScript monorepo (Bun workspaces).

Packages

  • @vimee/core β€” Vim engine (pure functions, no DOM)
  • @vimee/react β€” React useVim hook
  • @vimee/plugin-textarea β€” Textarea binding
  • @vimee/plugin-monaco β€” Monaco Editor binding
  • @vimee/plugin-codemirror β€” CodeMirror 6 binding
  • @vimee/shiki-editor β€” Shiki code editor component
  • @vimee/testkit β€” Test utilities for Vim operations
  • debug β€” Debug app for E2E testing and local development (Vite MPA, not published)

Commands

  • bun run test β€” Run all tests (vitest)
  • bun run lint β€” Lint (oxlint)
  • bun run fmt β€” Format (oxfmt)
  • bun run typecheck β€” Type check all packages (tsgo)
  • bun run build β€” Build all packages (tsup)
  • bun run e2e β€” Run E2E tests (Playwright, requires Chromium)
  • bun run debug β€” Start debug app dev server

Commit Convention

<type>(<scope>): <description>

  • Types: feat, fix, test, chore, ci, docs
  • Scope: package name (core, react, plugin-textarea, plugin-monaco, plugin-codemirror, shiki-editor, testkit) or omit for root
  • Examples: feat(core): add mark jumping, chore: update deps

Before Committing

  1. bun run test β€” tests must pass
  2. bun run lint β€” no lint errors
  3. bun run fmt β€” code formatted

Testing

  • Use @vimee/testkit for Vim operation tests. See packages/testkit/README.md
  • vitest with globals enabled. Tests live in src/__tests__/

Architecture

Git

  • Rebase, no merge commits
  • Use changesets for releases: /changeset or bun run changeset:gen

Documentation

After making code changes, run /update-docs to check and update related documentation.