⚡️ Tools included and configured:
- TypeScript 4.8
- ESLint with some initial rules recommendation
- Prettier to enforce consistent code style
- Vitest for testing
- NPM scripts for common operations
- Example configuration for GitHub Actions
Works out of the box for most Node.js projects.
This project is intended to be used with the latest Active LTS release of Node.js.
To start, just click the Use template link or the green button.
To clone the repository, use the following commands:
git clone https://github.com/rmoralp/node-ts-boilerplate
cd node-ts-boilerplate
npm install
build
- Transpile TypeScript to ES6dev
- Interactive watch mode to automatically transpile source fileslint
- Lint source files and testslint:fix
- Lint source files and tests and fix issuesphoenix
- Clean install dependenciesprettier
- Reformat filesstart
- Run the built apptest
- Run tests oncetest:watch
- Run tests but watch for changes and rerun when they change