1.0.7 • Published 1 year ago
@suparth_ghimire/ts-template v1.0.7
Typescript Project Initializer
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.
Files Generated
- package.json
- tsconfig.json
- .gitignore
- .swcrc
- src/index.ts
Installation
- npm
npm install -g @suparth_ghimire/ts-template
- yarn
yarn add -g @suparth_ghimire/ts-template
Initialize your Project
ts-template init
Answer 3 Questions that the prompt asks you
Install Packages
- npm
npm install
- yarn
yarn
Run your Project
Development
- npm
npm run dev
- yarn
yarn dev
Build
- npm
npm run build
- yarn
yarn build
Production
- npm
npm run start
- yarn
yarn start