微軟開源TypeScript編繹器
微軟在Github上開源了TypeScript,根據其依辣關系,基于Node構建。
TypeScript 是 可規模擴展的JavaScript語言。TypeScript為JavaScript增加了可選類型,類和模塊(classes and modules)。TypeScript支持任何瀏覽器的大型JavaScript應用程序。在任何主機和任何操作系統上,TypeScript 都是被 支持的。TypeScript被編譯成可讀的,基于標準的JavaScript。您可以嘗試一下在一些平臺上通過我們的博客和推ter賬戶跟上最新 的動態。
貢獻
有許多方法向TypeScript貢獻代碼。
- 提交漏洞和幫助我們驗證補丁當因為代碼被提交的時候
- 對源代碼的改動進行審查
- 在StackOverflow上與其他TypeScript用戶和開發人員接洽。
- 加入推ter上的TypeScript討論組。
- 貢獻漏洞修復
- 閱讀語言規范書(DOCX,PDF格式)。
文檔
編繹
為了打造TypeScript,確保你已經安裝了Git和Node.js。
克隆repo的副本:
git clone https://github.com/Microsoft/TypeScript.git
更改為TypeScript目錄:
cd TypeScript
安裝Jake工具及其依賴關系:
npm install -g jake
npm install
用以下其中一個來建立和測試:
jake local # Build the compiler into built/local jake clean # Delete the built compiler jake LKG # Replace the last known good with the built one. # Bootstrapping step to be executed when the built compiler reaches a stable state. jake tests # Build the test infrastructure using the built compiler. jake runtests # Run tests using the built compiler and test infrastructure. # You can override the host or specify a test for this command. # Use host=<hostName> or tests=<testPath>. jake baseline-accept # This replaces the baseline test results with the results obtained from jake runtests. jake -T # List the above commands.
用法
node built/local/tc.js hello.ts
路線圖
有關我們計劃的特點和未來發展方向的詳細信息,請參閱我們的路線圖。
來自: sasasamoa 2014-07-22 原文 github.com
本文由用戶 jopen 自行上傳分享,僅供網友學習交流。所有權歸原作者,若您的權利被侵害,請聯系管理員。
轉載本站原創文章,請注明出處,并保留原始鏈接、圖片水印。
本站是一個以用戶分享為主的開源技術平臺,歡迎各類分享!