wechat-miniprogram-typescript-builder v1.0.0
TypeScript
TypeScript is a language for application-scale JavaScript. TypeScript adds optional types to JavaScript that support tools for large-scale JavaScript applications for any browser, for any host, on any OS. TypeScript compiles to readable, standards-based JavaScript. Try it out at the playground, and stay up to date via our blog and Twitter account.
Find others who are using TypeScript at our community page.
Installing
For the latest stable version:
npm install -g typescript
For our nightly builds:
npm install -g typescript@next
Contribute
There are many ways to contribute to TypeScript.
- Submit bugs and help us verify fixes as they are checked in.
- Review the source code changes.
- Engage with other TypeScript users and developers on StackOverflow.
- Help each other in the TypeScript Community Discord.
- Join the #typescript discussion on Twitter.
- Contribute bug fixes.
- Read the language specification (docx, pdf, md).
This project has adopted the Microsoft Open Source Code of Conduct. For more information see the Code of Conduct FAQ or contact opencode@microsoft.com with any additional questions or comments.
Documentation
Building
In order to build the TypeScript compiler, ensure that you have Git and Node.js installed.
Clone a copy of the repo:
git clone https://github.com/microsoft/TypeScript.git
Change to the TypeScript directory:
cd TypeScript
Install Gulp tools and dev dependencies:
npm install -g gulp
npm install
Use one of the following to build and test:
gulp local # 将编译器编译成 built/local.
gulp clean # 删除生成的编译器.
gulp LKG # 将最后一个已知的商品替换为已构建的商品。编译程序达到稳定状态时要执行的引导步骤。
gulp tests # 使用构建的编译器构建测试基础结构.
gulp runtests #
使用构建的编译器和测试基础结构运行测试。
当不在CI计算机上时,将跳过某些低值测试-您可以使用
--skipPercent=0命令覆盖此行为并在本地运行所有测试。
您可以覆盖使用的特定套件运行程序或为此命令指定测试。
对特定测试使用--tests=<testPath>和/或对特定套件使用--runner=<runnerName>。
有效的运行程序包括一致性、编译器、四斜杠、项目、用户和docker
用户和docker运行程序是扩展测试套件运行程序-用户运行程序
在tests/cases/user目录下的磁盘上工作,而docker runner在容器中工作。
您需要在系统路径中有docker可执行文件,docker运行程序才能工作。
gulp runtests-parallel # 类似于运行测试,但可以跨多个线程拆分。使用的线程数默认等于系统核心计数。使用--workers=<number>对此进行调整。
gulp baseline-accept # 这将用gulp runtests获得的结果替换基线测试结果.
gulp lint # 在TypeScript源上运行eslint。
gulp help # List the above commands.
Usage
node built/local/tsc.js hello.ts
Roadmap
For details on our planned features and future direction please refer to our roadmap.