Template project for CLI apps using Ink v3, TypeScript, and Node.js. Testing using Jest.
Overview
The ts-ink-template is a fantastic starting point for developers looking to create CLI applications using Ink v3 with Node.js and TypeScript. It combines modern JavaScript features with robust testing capabilities through Jest, making it an efficient and user-friendly solution. The included project files for both IntelliJ IDEA and VSCode enable seamless integration, allowing for quick setup and deployment after cloning the repository.
With this template, developers can leverage convenient npm scripts that streamline the development and testing processes. You can choose to either skip compilation using tsm or follow the traditional approach of compiling TypeScript before running your JavaScript code. This flexibility accommodates different development workflows and preferences.
Features
- Easy Setup: Clone the repository and run
npm install to get started quickly with the project. - Dual Development Approaches: Choose between using tsm for quick execution without compilation or the traditional method for those who prefer a more conventional workflow.
- Comprehensive npm Scripts: Includes scripts for running, watching, testing, and linting, making it easy to manage your project.
- Real-Time Watching: The watch scripts allow for automatic re-running of tasks, which enhances development efficiency by separating compile and run tasks.
- Built-in Testing Support: With Jest integrated, running tests is straightforward, and you can opt for test-watching to see results in real time.
- Cross-IDE Compatibility: Project files for both IntelliJ IDEA and VSCode ensure a smooth experience regardless of your preferred development environment.
- Nodemon Integration: The setup helps prevent nodemon from exiting on unhandled errors, which improves stability during development.
- Parallel Task Running: Utilize npm-run-all to run multiple tasks concurrently for a more streamlined workflow.