nodejs + typescript - create a project for typescript

Many times, i tried to speed up my dev time and just use node and es6 script. Not like it is a bad thing but later i found hard to move the code over to typescript in my actual project. 

This is where this comes into play.

To create a project, you can try to do the following:- 

- mkdir my-typescript-project

- npm init -y

- npm install typescript --save-dev

- npx tsc --init

- mkdir src && touch src/index.ts

- npm run build





Comments

Popular posts from this blog

gemini cli getting file not defined error

NodeJS: Error: spawn EINVAL in window for node version 20.20 and 18.20

vllm : Failed to infer device type