17-how to set up typescirpt for real projects.



This content originally appeared on DEV Community and was authored by bin

  1. create a ts config file.
mac@MacBook-Pro 03purets % tsc --init

Created a new tsconfig.json                                                                                             
                                                                                                                     TS 
You can learn more at https://aka.ms/tsconfig

2.init a node.js project.

mac@MacBook-Pro 03purets % npm init -y

3.below is a common project structure.

dist is something that get onto the production that server the users. so we don’t create anything in dist folder.


This content originally appeared on DEV Community and was authored by bin