Welcome to the Git Compass developer community! This guide will help you set up your local environment and start contributing.
- Node.js: v18.0.0 or higher.
- pnpm: We use pnpm for monorepo and workspace management.
- Git: Essential for analysis testing.
git clone https://github.com/HUMBLEF0OL/git-compass.git
cd git-compass
pnpm installBefore running the CLI or tests, build all packages:
pnpm run buildTo test the CLI against a local repository:
cd packages/cli
npx tsx src/bin/git-compass.ts analyze -p /path/to/some/repoTo have your changes automatically recompiled during development:
pnpm devThis runs tsc --watch across all workspaces.
We use Vitest for our test suite.
# Run all tests
pnpm run test
# Run tests for a specific package
cd packages/core
npm testIf you see errors about missing modules, ensure you've run pnpm install at the root.
If npx tsx fails, ensure you are in the packages/cli directory or that the dependency has been installed globally.
Need help? Open an issue or reach out to the maintainers!