DEV Community

bin
bin

Posted on

17-how to set up typescirpt for real projects.

  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

Enter fullscreen mode Exit fullscreen mode

2.init a node.js project.

mac@MacBook-Pro 03purets % npm init -y
Enter fullscreen mode Exit fullscreen mode

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.

Top comments (0)