17-how to set up typescirpt for real projects.

create a ts config file.

mac@MacBook-Pro 03purets % tsc –init

Created a new tsconfig.json


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


Print Share Comment Cite Upload Translate Updates
APA

bin | Sciencx (2025-08-27T07:41:34+00:00) 17-how to set up typescirpt for real projects.. Retrieved from https://www.scien.cx/2025/08/27/17-how-to-set-up-typescirpt-for-real-projects/

MLA
" » 17-how to set up typescirpt for real projects.." bin | Sciencx - Wednesday August 27, 2025, https://www.scien.cx/2025/08/27/17-how-to-set-up-typescirpt-for-real-projects/
HARVARD
bin | Sciencx Wednesday August 27, 2025 » 17-how to set up typescirpt for real projects.., viewed ,<https://www.scien.cx/2025/08/27/17-how-to-set-up-typescirpt-for-real-projects/>
VANCOUVER
bin | Sciencx - » 17-how to set up typescirpt for real projects.. [Internet]. [Accessed ]. Available from: https://www.scien.cx/2025/08/27/17-how-to-set-up-typescirpt-for-real-projects/
CHICAGO
" » 17-how to set up typescirpt for real projects.." bin | Sciencx - Accessed . https://www.scien.cx/2025/08/27/17-how-to-set-up-typescirpt-for-real-projects/
IEEE
" » 17-how to set up typescirpt for real projects.." bin | Sciencx [Online]. Available: https://www.scien.cx/2025/08/27/17-how-to-set-up-typescirpt-for-real-projects/. [Accessed: ]
rf:citation
» 17-how to set up typescirpt for real projects. | bin | Sciencx | https://www.scien.cx/2025/08/27/17-how-to-set-up-typescirpt-for-real-projects/ |

Please log in to upload a file.




There are no updates yet.
Click the Upload button above to add an update.

You must be logged in to translate posts. Please log in or register.