当前位置:网站首页>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 的简单方法
边栏推荐
- test
- Runtime——methods成员变量,cache成员变量
- (tool class) use SecureCRT as the communication medium
- Shell tips (134) simple keyboard input recorder
- Construction of occupancy grid map
- (tool class) quickly add time to code in source insight
- Common functions of OrCAD schematic
- 不同路径II[针对DFS的动态规划改进]
- Advanced mathematics foundation_ Parity of functions
- Chuantu microelectronics ca-if1051 can-fd transceiver
猜你喜欢
PI Ziheng embedded: This paper introduces the multi-channel link mode of i.mxrt timer pit and its application in coremark Test Engineering
一“石”二“鸟”,PCA有效改善机载LiDAR林下地面点部分缺失的困局
无“米”,也能煮“饭”利用“点云智绘”反演机载LiDAR林下缺失地面点攻略
搞清信息化是什么,让企业转型升级走上正确的道路
Keil and Proteus joint commissioning
Five causes of PCB board deformation and six solutions 2021-10-08
China Mobile MCU product information
“空间转换”显著提升陡崖点云的地面点提取质量
Construction of occupancy grid map
【批处理DOS-CMD命令-汇总和小结】-cmd扩展命令、扩展功能(cmd /e:on、cmd /e:off)
随机推荐
[leetcode] two num · sum of two numbers
The principle of Zener diode, what is its function?
Research on 3D model retrieval method based on two channel attention residual network - Zhou Jie - paper notes
Sichuan earth microelectronics ca-is1200 isolated operational amplifier for current detection
Keil and Proteus joint commissioning
What is the difference between norflash and nandflash
Modular programming of wireless transmission module nRF905 controlled by single chip microcomputer
C#获取exe的版本号-文件版本and程序集版本
useMemo模拟useCallback
GUI pull-down menu of unity3d evil door implementation dropdown design has no duplicate items
Sichuan earth microelectronics 8-channel isolated digital input receiver
Collection of common terms and meanings in forestry investigation based on lidar
China Mobile MCU product information
Chuantuwei ca-is3720lw alternative material No. iso7820fdw
用动图讲解分布式 Raft
This year, I graduated
对链表进行插入排序[dummy统一操作+断链核心--被动节点]
My debut is finished!
How to use printf of 51 single chip microcomputer
LeetCode 每日一题——515. 在每个树行中找最大值