A CLI tool to quickly create typescript projects in node.js
- How to get started
- Simply running ts files
- Instructions for nodemon-watch
- Instructions for ts-node-dev
- Compile to js
Create a new project
npx ts-tipi
Pick a template
- nodemon-watch:
nodemon and ts-node
- ts-node-dev:
ts-node-dev and ts-node
Access your project
cd <project-name>
Install the dependencies
npm i
# or
yarn
By default every template has ts-node as a dependency. Run the following command to run your ts files:
npm run start:ts
#or
yarn start:ts
Runs nodemon watching for changes inside the src folder
npm run dev
#or
yarn dev
Restarts everytime a ts file changes inside the src folder
npm run dev
#or
yarn dev
Runs tsc to cimpile your ts files into js files inside the dist folder
npm run build
#or
yarn build
Then to run the compiled js files you could also run:
npm run start
#or
yarn start