A always up-to-date starter template for Node.js projects with TypeScript, Nodemon, Prettier, ESLint, Docker, and docker-compose support.
Just use this as a template for your new project and you are good to go.
Command | Action | preCommands |
---|---|---|
npm install |
Install all necessary dependencies | |
npm run dev |
Run and monitor changes using nodemon | |
npm run build |
Compile Typescript files to JavaScript. (Output directory=/dist ) |
npm run format && npm run lint |
npm run format |
Format files using Prettier | |
npm run lint |
Check and Fix Linting issues using ESLint | |
npm run start |
Compile TypeScript Files to JavaScript and run. | npm run build |
npm run docker:up |
Prepare, build and run Docker container using docker-compose up command | docker-compose build --no-cache |
npm run docker:down |
Stop Docker container using docker-compose down command |