Development
This page summarizes the local development workflow for varvis-download.
Quick Commands
Use Make for streamlined workflows:
bash
make help # Show all available commands
make dev # Setup: install dependencies, lint, and test
make ci # Run all quality checks (lint, format, type-check, test)Testing
bash
# Using Make
make test # Run unit tests
make test-int # Run live integration tests when credentials are available
# Using npm
npm test # Run unit tests
npm test -- --coverage # Run unit tests with coverage report
npm run test:integration # Run live integration testsLive integration tests use the varvis® Playground target and depend on external service availability. Unit tests and local CI checks do not require Playground credentials.
Code Quality
bash
# Using Make
make lint # Check code quality
make lint-fix # Auto-fix lint issues where possible
make format # Format with Prettier
make type-check # Verify types
# Using npm
npm run lint
npm run lint:fix
npm run format
npm run type-checkSecurity Checks
bash
make audit # Check production dependencies
make audit-all # Check all dependencies
make audit-fix # Apply npm audit fixes where available
make security # Run audit and security-focused lint checksThe project uses dependency vulnerability scanning, ESLint security rules, and secret-detection linting to reduce common development risks.
Version Management
bash
npm version patch # Bug fixes
npm version minor # New features
npm version major # Breaking changesContributing
Before opening or merging changes:
- Run
make ci. - Add or update tests for behavior changes.
- Update documentation for new user-facing behavior.
- Keep generated documentation in sync when API comments change.
