-
Notifications
You must be signed in to change notification settings - Fork 16
Closed
Labels
enhancementNew feature or requestNew feature or requestphase-1Phase 1: Core FoundationPhase 1: Core FoundationsetupProject setup and configurationProject setup and configuration
Description
Set up the basic TypeScript project infrastructure for the Hatchbox AI CLI tool.
Tasks:
- Create
package.jsonwith correct metadata and dependencies - Configure TypeScript with
tsconfig.json - Set up build system using
tsupfor CLI and library builds - Configure ESLint and Prettier for code quality
- Set up Vitest with comprehensive test configuration
- Configure test coverage reporting (95% minimum threshold)
- Create mock factory infrastructure for all external dependencies
- Set up property-based testing with fast-check
- Create basic project structure with dedicated test directories
- Configure npm scripts for development workflow including test commands
- Set up GitHub Actions for CI/CD with comprehensive testing pipeline
- Configure pre-commit hooks for automated test runs
Dependencies:
commander- CLI frameworkexeca- Shell command executionfs-extra- File system operationschalk- Terminal colorsora- Loading spinnersinquirer- Interactive promptsvitest- Testing framework@vitest/coverage-v8- Coverage reportingfast-check- Property-based testing
Testing Requirements:
- Comprehensive Vitest configuration with 95% coverage threshold
- Mock factories for Git, GitHub CLI, Neon CLI, Claude CLI, file system
- Property-based testing setup for edge case discovery
- Pre-commit hooks preventing commits without passing tests
- CI/CD pipeline with automated test gates and performance benchmarks
Acceptance Criteria:
- Package builds successfully with
npm run build - CLI executable works with basic
--helpcommand - TypeScript compilation passes without errors
- Linting and formatting work correctly
- Test framework functional with sample tests achieving 95%+ coverage
- Mock factories working for all external dependencies
- CI/CD pipeline running comprehensive test suite automatically
- Pre-commit hooks preventing untested code commits
Definition of Done:
- All tasks completed following TDD approach
- Code follows established patterns with >95% test coverage
- All tests pass including unit, integration, and property-based tests
- Mock factories validated for all external dependencies
- Performance benchmarks established
- Documentation updated including testing guidelines
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
enhancementNew feature or requestNew feature or requestphase-1Phase 1: Core FoundationPhase 1: Core FoundationsetupProject setup and configurationProject setup and configuration