A node.js starter project using TypeScript.
- Typescript (selected ES2020 as target because I assume Node.js version 14 or higher is being used, please change the configuration for whatever version you want to use)
- Node.js
- ts-node-dev for live reloading during development
- dotenv to load environment variables only for development (preload approach is being used)
- ESLint + Prettier + Husky
- Yarn
- jest for testing + ESLint Plugin + Coverage
Runs tests
Runs tests in development mode which will include coverage and live reloading
Builds the project for production mode
Runs the project in development mode (live reloading)
Starts the project in production mode (this expects that all the environment variables are set in the runtime environment)
Runs the linter
Runs the linter and fixes the issues
Formats the code
(other scripts are available in the scripts
section of the package.json)
MIT License © alexmarqs