TSNPK (TypeScript Node Project Kit) comes pre-installed with all bells and whistles you would need for your next NodeJS project:
- TypeScript: Compiler
- ESLint: Code Linter
- Prettier: Code Formatter
- Vitest: Testing Framework
- Rollup: Module Bundler
Install NPM dependencies:
pnpm installMake a copy of .env file:
cp .env.example .envRun:
pnpm devIt will watch for changes and compile as you go.
Run test with instant watch mode:
pnpm testThe compiled code is stored in build. So you may run it with:
node ./build"It's that simple!" – 🤩