Opinionated Node.js and TypeScript boilerplate
- Node.js and TypeScript, obviously
- ESLint + typescript-eslint for linting
- Prettier for code formatting
- Renovate for automatic dependency updates
- Visual Studio Code workspace config
- Docker support for reproducible builds
- tsup for bundling TypeScript code with esbuild
- Import aliases for simplified imports (by default
@/
is aliased to./src/
) - Vitest for testing
- Nest.js default project structure
- Starting a TypeScript Project in 2021 by Chris Hager
- Clone the repository:
git clone https://github.com/iipanda/node-typescript-boilerplate.git
-
Install pnpm if you haven't already. This project assumes pnpm and won't allow you to install dependencies with other package managers.
-
Install dependencies:
cd node-typescript-boilerplate
pnpm install
build
: Runstsup
to compile and bundle the TypeScript codestart
: Runs the compiled codeformat
: Formats the code with Prettierlint
: Runs ESLintlint:fix
: Runs ESLint with the--fix
flag to attempt to fix the issues automaticallytest
: Runs the test suite
This project is licensed under the MIT License.