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