当前位置:网站首页>ts环境搭建
ts环境搭建
2022-06-25 06:40:00 【妙团团】
如何快速搭建一个ts开发环境
1, 安装 node ,前端标配,不明百度查,
2, 全局安装 ts
npm install -g typescript
3,查看版本
tsc -v
4, 选择项目文件生成 package
tsc -init // 生成ts配置文件
npm init -y // 生成项目配置文件
5, 修改配置文件
找到tsconfig.json ,打开圈出来这段注释,作用是编译之后的 js文件放置目录,
设置要编译的 ts 文件目录,这一段需要手动添加。 作用是编译该目录下的 ts。
找到 package.json。项目配置文件 把 npm run 命令设置成 tsc ,同时用 watch 监听 ,可以做到实时编译。
以上就是快速使用 ts 的简单方法
边栏推荐
- 【pytest】修改allure报告中的logo及参数化
- Harmony food menu interface
- 用动图讲解分布式 Raft
- 【批处理DOS-CMD命令-汇总和小结】-外部命令-cmd下载命令、抓包命令(wget)
- 不同路径II[针对DFS的动态规划改进]
- 点云智绘在智慧工地中的应用
- [distillation] pointdistiller: structured knowledge distillationwards efficient and compact 3D detection
- [batch dos-cmd command - summary and summary] - CMD extended command and function (CMD /e:on, CMD /e:off)
- Leetcode daily question - 515 Find the maximum value in each tree row
- Evolution of Alibaba e-commerce architecture
猜你喜欢

【批处理DOS-CMD命令-汇总和小结】-应用程序启动和调用、服务和进程操作命令(start、call、)

What is the difference between norflash and nandflash

Construction of occupancy grid map

Vscode official configuration synchronization scheme

Introduction to Sichuan Tuwei ca-is3082wx isolated rs-485/rs-422 transceiver

Sichuan Tuwei ca-if1051 can transceiver has passed aec-q100 grade 1 certification

el-input实现尾部加字

函数模板_类模板
![[batch dos-cmd command - summary and summary] - add comment command (REM or::)](/img/e9/151885ecd490b0aa83cce0f3a49124.png)
[batch dos-cmd command - summary and summary] - add comment command (REM or::)

Cocos learning diary 3 - API acquisition nodes and components
随机推荐
Notes: [open class] neural network and deep learning -- tensorflow2.0 actual combat [Chinese course]
國外LEAD域名郵箱獲取途徑
VectorDraw Developer Framework 10.10
Unity3D邪门实现之GUI下拉菜单Dropdown设计无重复项
Pit encountered by pytorch: why can't l1loss decrease during model training?
图扑软件数字孪生 3D 风电场,智慧风电之海上风电
双三次差值bicubic
为什么要“除夕”,原来是内存爆了!
Audio (V) audio feature extraction
Storage of Galileo broadcast ephemeris in rtklib-b33
栅格地图(occupancy grid map)构建
shell小技巧(一百三十四)简单的键盘输入记录器
Estimation of dense forest volume based on LIDAR point cloud with few ground points
Without "rice", you can cook "rice". Strategy for retrieving missing ground points under airborne lidar forest using "point cloud intelligent mapping"
【批处理DOS-CMD命令-汇总和小结】-添加注释命令(rem或::)
韩信大招:一致性哈希
Vscode official configuration synchronization scheme
el-input实现尾部加字
OpenMP入门
Ltpowercad II and ltpowerplanner III