A TypeScript CLI application with linting, type checking, and testing configured.
- TypeScript for type safety
- ESLint for code linting
- Jest for testing
- Commander.js for CLI interface
- Comprehensive test coverage
npm install# Run in development mode
npm run dev
# Build the project
npm run build
# Run tests
npm test
# Run tests with coverage
npm run test:coverage
# Run linting
npm run lint
# Fix linting issues
npm run lint:fix
# Type checking
npm run typecheckAfter building the project:
# Run the CLI
npm start
# Or if installed globally
ts-cli greet World
# With options
ts-cli greet World --uppercasesrc/
├── index.ts # Main CLI entry point
├── commands/ # CLI commands
│ ├── greet.ts # Greet command implementation
│ └── greet.test.ts # Tests for greet command
└── utils/ # Utility functions
├── string.ts # String utilities
└── string.test.ts # Tests for string utilities
build: Compile TypeScript to JavaScriptdev: Run the application in development modestart: Run the compiled applicationtest: Run teststest:watch: Run tests in watch modetest:coverage: Run tests with coverage reportlint: Check for linting issueslint:fix: Fix auto-fixable linting issuestypecheck: Check TypeScript typesprebuild: Run lint and typecheck before building