Minimalistic project template for a Node.js & TypeScript apps with native ESM
- 💎 Node.js 18+
- 🛠️ TypeScript 5.3
- ⚡️ tsx: Node.js enhanced to run TypeScript & ESM files
- 📁 tsc-alias: Import path alias using
@/
prefix - 🔍 ESLint — To find and fix problems in your code
- 📝 Prettier — Format your code consistently
- 🌍 Express.js
clone repo without commit history
git clone --depth=1 https://github.com/ibnumusyaffa/node-typescript-esm-starter my-project-name
npm install
npm run dev
npm run dev
— Starts the application in development mode at.npm run build
— Compile the application.npm start
— Starts the application in production mode.npm run lint
— Check code using ESLint.npm run lint:fix
— Fix autofixable ESLint problem.npm run format:all
— Format code using Prettier for all files.npm run format:check
— Check code format using prettier.