当前位置:网站首页>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 的简单方法
边栏推荐
- [distillation] pointdistiller: structured knowledge distillationwards efficient and compact 3D detection
- Pit encountered by pytorch: why can't l1loss decrease during model training?
- STL教程4-输入输出流和对象序列化
- Tuwei Digital Isolator and interface chip can perfectly replace imported brands Ti and ADI
- 【批处理DOS-CMD命令-汇总和小结】-文件与目录操作命令(md、rd、xcopy、dir、cd、set、move、copy、del、type、sort)
- Sichuan earth microelectronics high performance, high integration and low cost isolated 485 transceiver
- 【批处理DOS-CMD命令-汇总和小结】-添加注释命令(rem或::)
- 三年营收连续下滑,天地壹号困在醋饮料里
- Explain distributed raft with dynamic diagram
- 指南针可以开股票账户吗?安全吗?
猜你喜欢

Zhugeliang vs pangtong, taking distributed Paxos

无“米”,也能煮“饭”利用“点云智绘”反演机载LiDAR林下缺失地面点攻略

smartBugs安装小问题总结

What is the difference between norflash and nandflash

Genuine photoshop2022 purchase experience sharing

Three years of continuous decline in revenue, Tiandi No. 1 is trapped in vinegar drinks

PI Ziheng embedded: This paper introduces the multi-channel link mode of i.mxrt timer pit and its application in coremark Test Engineering

海思3559 sample解析:vio

【蒸馏】PointDistiller: Structured Knowledge DistillationTowards Efficient and Compact 3D Detection
![[Batch dos - cmd Command - Summary and Summary] - cmd extension Command, extension Function (CMD / E: on, CMD / E: off)](/img/2b/4495a6cd41a2dd4e7a20ee60b398c9.png)
[Batch dos - cmd Command - Summary and Summary] - cmd extension Command, extension Function (CMD / E: on, CMD / E: off)
随机推荐
Sichuan earth microelectronics ca-is1300 isolated operational amplifier for current detection is on the market
Application of point cloud intelligent drawing in intelligent construction site
How to use printf of 51 single chip microcomputer
What if there is no point in data visualization?
[batch dos-cmd command - summary and summary] - CMD window setting and operation commands (CD, title, mode, color, pause, CHCP, exit)
Mysql database import SQL file display garbled code
三年营收连续下滑,天地壹号困在醋饮料里
GUI pull-down menu of unity3d evil door implementation dropdown design has no duplicate items
Audio (V) audio feature extraction
NSIS 静默安装vs2013运行时
[single chip microcomputer project training] multipoint temperature wireless acquisition system based on nRF905
【批处理DOS-CMD命令-汇总和小结】-上网和网络通信相关命令(ping、telnet、nslookup、arp、tracert、ipconfig)
What common APIs are involved in thread state changes
Modular programming of oled12864 display controlled by single chip microcomputer
IAR compiler flashback
Home environment monitoring system design (PC version) (mobile app version to be determined)
【pytest】修改allure报告中的logo及参数化
Runtime——methods成员变量,cache成员变量
CGLIB动态代理
Keil and Proteus joint commissioning