1.7 KiB
1.7 KiB
⚠️ IMPORTANT
- Read the README.md
- Read the agent-guidelines.md
Commands
Development
bun i- Install dependenciesbun test- Run testsbun run format- Format code with Biomebun run lint- Lint and auto-fix with Biomebun run check- Run all Biome checks (format + lint)bun run build- Build the CLI toolbun run cli- Uses the CLI tool directly
Testing
bun test- Run all testsbun test <filename>- Run specific test file
Configuration Management
bun run cli config list- View all configuration valuesbun run cli config get <key>- Get a specific config value (e.g. defaultEditor)bun run cli config set <key> <value>- Set a config value with validation
Core Structure
- CLI Tool: Built with Bun and TypeScript as a global npm package (
npm i -g backlog.md) - Source Code: Located in
/srcdirectory with modular TypeScript structure - Task Management: Uses markdown files in
backlog/directory structure - Workflow: Git-integrated with task IDs referenced in commits and PRs
Code Standards
- Runtime: Bun with TypeScript 5
- Formatting: Biome with tab indentation and double quotes
- Linting: Biome recommended rules
- Testing: Bun's built-in test runner
- Pre-commit: Husky + lint-staged automatically runs Biome checks before commits
The pre-commit hook automatically runs biome check --write on staged files to ensure code quality. If linting errors
are found, the commit will be blocked until fixed.
Git Workflow
- Branching: Use feature branches when working on tasks (e.g.
tasks/task-123-feature-name) - Committing: Use the following format:
TASK-123 - Title of the task