TypeScript 0,36,73,0,19,68,0,131 editorconfig travis-ci npm

TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

2 years after Apache-2.0

Build Status npm version Downloads

TypeScript

Join the chat at https://gitter.im/Microsoft/TypeScript

TypeScript is a language for application-scale JavaScript. TypeScript adds optional types, classes, and modules to JavaScript. TypeScript supports 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.

Installing

For the latest stable version:

npm install -g typescript

For our nightly builds:

npm install -g [email protected]

Contribute

There are many ways to contribute to TypeScript.

This project has adopted the Microsoft Open Source Code of Conduct. For more information see the Code of Conduct FAQ or contact [email protected] 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            # 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=<hostName> or tests=<testPath>. 
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|<more>]'.
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. 

Usage

node built/local/tsc.js hello.ts

Roadmap

For details on our planned features and future direction please refer to our roadmap.

Related Repositories

TypeScript-Sublime-Plugin

TypeScript-Sublime-Plugin

IO wrapper around TypeScript language services, allowing for easy consumption by ...

atom-typescript

atom-typescript

The only TypeScript package you will ever need ...

gulp-typescript

gulp-typescript

A TypeScript compiler for gulp with incremental compilation support. ...

plugin-typescript

plugin-typescript

TypeScript loader for SystemJS ...

awesome-typescript

awesome-typescript

A collection of awesome TypeScript resources for client-side and server-side dev ...


Top Contributors

mhegazy DanielRosenwasser ahejlsberg CyrusNajmabadi vladima yuit sheetalkamat rbuckton JsonFreeman sandersn RyanCavanaugh weswigham zhengbli andy-ms SaschaNaz paulvanbrenk riknoll billti tinganho danquirk DickvdBrink jramsay steveluc chrisbubernak ivogabe ShyykoSerhiy AbubakerB hoanhtien Arnavion ahmad-farid

Dependencies

package version
dev @types/browserify latest
@types/chai latest
@types/convert-source-map latest
@types/del latest
@types/glob latest
@types/gulp 3.X
@types/gulp-concat latest
@types/gulp-help latest
@types/gulp-newer latest
@types/gulp-sourcemaps latest
@types/merge2 latest
@types/minimatch latest
@types/minimist latest
@types/mkdirp latest
@types/mocha latest
@types/node latest
@types/q latest
@types/run-sequence latest
@types/through2 latest
browserify latest
chai latest
convert-source-map latest
del latest
gulp 3.X
gulp-clone latest
gulp-concat latest
gulp-help latest
gulp-insert latest
gulp-newer latest
gulp-sourcemaps latest
gulp-typescript latest
istanbul latest
jake latest
merge2 latest
minimist latest
mkdirp latest
mocha latest
mocha-fivemat-progress-reporter latest
q latest
run-sequence latest
sorcery latest
through2 latest
travis-fold latest
ts-node latest
tslint latest
typescript next

Releases

-   v2.0.3 zip tar
-   v2.0.2 zip tar
-   v2.0.0-beta zip tar
-   v2.0-rc zip tar
-   v1.8.10 zip tar
-   v1.8.9 zip tar
-   v1.8.7 zip tar
-   v1.8.5 zip tar
-   v1.8.2 zip tar
-   v1.8.0-beta zip tar
-   v1.7.5 zip tar
-   v1.7.3 zip tar
-   v1.7.2 zip tar
-   v1.6.2 zip tar
-   v1.6.0-beta zip tar
-   v1.5.4 zip tar
-   v1.5.3 zip tar
-   v1.5.0-beta zip tar
-   v1.5.0-alpha zip tar
-   v1.4 zip tar
-   v1.3 zip tar
-   v1.1.0.1 zip tar
-   v1.1 zip tar