TypeScript

TypeScript是应用程序级JavaScript的一种语言。TypeScript为JavaScript添加了可选类型,支持任何浏览器,任何主机,任何操作系统上的大型JavaScript应用程序的工具。TypeScript编译为可读的,基于标准的JavaScript。在操场上试一试,并通过我们的博客和Twitter帐户了解最新信息。

安装
对于最新的稳定版本:

npm install -g typescript
对于我们的夜间构建:

npm install -g typescript @ next
有助于
有很多方法可以为TypeScript 做出贡献。

提交错误并帮助我们在签入时验证修复程序。
查看源代码更改。
在StackOverflow上与其他TypeScript用户和开发人员交流。
加入Twitter上的#typescript讨论。
贡献错误修复。
阅读语言规范(docx, pdf,md)。
该项目采用了Microsoft开源行为准则。有关更多信息,请参阅行为准则常见问题解答或联系opencode@microsoft.com 以及任何其他问题或意见。

文档
快速教程
编程手册
语言规范
主页
建造
为了构建TypeScript编译器,请确保安装了Git和Node.js.
上海宝山注册公司
克隆回购的副本:

git clone https://github.com/Microsoft/TypeScript.git
切换到TypeScript目录:

cd TypeScript
安装Gulp工具和dev依赖项:

npm install -g gulp
npm install
使用以下之一来构建和测试:

gulp local # Build the compiler into built/local
gulp clean # Delete the built compiler
gulp LKG # Replace the last known good with the built one.
# Bootstrapping step to be executed when the built compiler reaches a stable state.
gulp tests # Build the test infrastructure using the built compiler.
gulp runtests # Run tests using the built compiler and test infrastructure.
# You can override the host or specify a test for this command.
# Use --host= or --tests=.
gulp runtests-browser # Runs the tests using the built run.js file. Syntax is gulp runtests. Optional
parameters ‘–host=’, ‘–tests=[regex], --reporter=[list|spec|json|]’.
gulp baseline-accept # This replaces the baseline test results with the results obtained from gulp runtests.
gulp lint # Runs tslint on the TypeScript source.
gulp help # List the above commands.
用法
node built / local / tsc.js hello.ts
路线图
有关我们计划的功能和未来方向的详细信息,请参阅我们的路线图。

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值