本文分享笔者使用 TypeScript 编写运行 Node 应用的一些些经验。基本只需要 3 分钟,即可实现 node + ts 的开发环境配置。 开发环境配置 比如笔者要用 ts 写个 socket Node 应用。先用 tree 命令看项目结构。 $ tree -L 1 socket/ socket/ ├── main.ts ├── node_modules ├── package.json ├── static └── tsconfig.js...
本文分享笔者使用 TypeScript 编写运行 Node 应用的一些些经验。基本只需要 3 分钟,即可实现 node + ts 的开发环境配置。 开发环境配置 比如笔者要用 ts 写个 socket Node 应用。先用 tree 命令看项目结构。 $ tree -L 1 socket/ socket/ ├── main.ts ├── node_modules ├── package.json ├── static └── tsconfig.js...