This is a simple script to initialize a typescript project for development and production environment with a single command. You dont have to initialize scripts for compilers and other stuffs. This script will do it for you.
pnpm is used as default package manager. You can change it to others if you want
- 📄 package.json
- 📄 tsconfig.json
- 📄 tsup.config.ts
- 📄 .gitignore
- 📄 src/index.ts
- 📄 pnpm-lock.yaml
pnpm install -g @suparth_ghimire/ts-template
ts-template init
Answer 3 Questions that the prompt asks you
- pnpm
pnpm install
Development
pnpm run dev
Build
pnpm build
Start
pnpm start