A cli tool to quickly create Typescript Projects in Node.js
Create a new project
npx ts-tipi
Pick a template
ts-template
express
apollo-server
Access your project
cd <your-project-name>
Install the dependencies
npm i
# or
yarn
Dev command
npm run dev
#or
yarn dev
Every template comes with:
- typescript
- ts-node
- ts-node-dev
- nodemon
- @types/node
- prettier
"start": "node ./dist/index.js",
"start:ts": "ts-node ./src/index.ts",
"ts:build": "tsc",
"ts:watch": "tsc --watch",
"ts:nodemon": "nodemon ./dist/index.js",
"dev": "ts-node-dev --respawn ./src/index.ts",
"dev:nodemon": "nodemon ./src/index.ts"
To run ts-node-dev
npm run dev
#or
yarn dev
npm run dev:nodemon
#or
yarn dev:nodemon
npm run start:ts
# or
yarn start:ts
npm run ts:build
#or
yarn ts:build
Then to run the compiled js files
npm run start
#or
yarn start
Watch for changes in src/index.ts
npm run ts:watch
#or
yarn ts:watch
Watch for changes in dist/index.js
npm run ts:nodemon
#or
yarn ts:nodemon