博客
关于我
强烈建议你试试无所不能的chatGPT,快点击我
[TypeScript] Installing TypeScript and Running the TypeScript Compiler (tsc)
阅读量:7209 次
发布时间:2019-06-29

本文共 418 字,大约阅读时间需要 1 分钟。

This lesson shows you how to install TypeScript and run the TypeScript compiler against a .ts file from the command line.

 

install:

npm install -g typescripttsc -v // version

 

app.ts:

class Person{}

 

RUN:

tsc app.ts

You will see the js file with the same name.

 

If you want a different name, you can do :

tsc --out 
tsc --out bundle.js app.ts

 

Watch files changes:

tsc -w --out bundle.js app.ts

 

转载地址:http://xqrum.baihongyu.com/

你可能感兴趣的文章
MySQL修改默认字符集
查看>>
HTTP Keep-Alive是什么?如何工作?
查看>>
maven 异常解决
查看>>
实现林间的选择性身份验证
查看>>
进程的调度算法
查看>>
使用elasticsearch1.5.2实现查找附近的人
查看>>
SQL SERVER 批量将修改字段名为大、小写
查看>>
#ifdef __cplusplus extern C{}与C和C++间的关系
查看>>
lvs的nat模式实验
查看>>
利用ftp服务器实现无人值守的安装
查看>>
Vbs脚本编程简明教程之六
查看>>
德国罗森伯格荣获2013年度中国综合布线十大品牌以及数据中心标准化产品应用奖...
查看>>
使用vue开发项目需要注意的问题和可能踩到的坑
查看>>
webpack 模块标识符(Module Identifiers)
查看>>
PHP有前途吗?
查看>>
sm1、sm2、sm3、sm4简单介绍
查看>>
精读《Optional chaining》
查看>>
jQuery选择器
查看>>
c++——四种强转方式 static_cast dynamic_cast const_cast reinterpret_cast
查看>>
Swift 学习
查看>>