A simple typescript project template for scaffolding Node.js library with preconfigured tools for development, linting, testing, and bundling. This scaffold is designed to quickly start a new TypeScript project with minimal setup.
- TypeScript for Node.js
- ESLint with TypeScript support
- Jest for testing (with ts-jest)
- tsup for bundling TypeScript to CJS/ESM
- Rimraf for removing build directories
- npm scripts:
build,test,lint,clean
- Check TypeScript types
pnpm run check- Build project
pnpm run build- Run tests
pnpm run test- Clean build folder
pnpm run clean- Clean build + node_modules
pnpm run clean:all- Lint code
pnpm run lint- Lint & fix code
pnpm run lint:fix