0%

How to setup a typescript Project as fast as possible

How to setup a typescript Project as fast as possible

Simply type in

1
npm gts init

And then, boom, well-done, a well typescript project is initialized, and it’s very nice.

Some useful knowledge about this quick generate

Compile

1
npm run compile

Run

1
node <file_dir>/<file_name>

for more info, check out gts offical documentation.

Or you meant to start a minimal typescript project

You can use my minimal typescript project starter

Quick start

  1. clone this project
1
git clone https://github.com/ryankert01/ts-starter.git
  1. initialize
1
npm i

Scripts

1
2
3
yarn compile   // compile ts file
yarn dev // watch ts file
yarn start // run this project

End of story…

Welcome to my other publishing channels