OfficialDarkComet / typescript-compile

Automatically compile TypeScript to JavaScript on the fly

Home Page:http://niutech.github.com/typescript-compile/demo/demo.html

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

TypeScript Compile

TypeScript is a brand new language which compiles on JavaScript. However, this operation has to be performed manually, using the command-line compiler tsc or other tools. But now it has drastically improved, thanks to TypeScript Compile!

TypeScript Compile automatically transforms your TypeScript code into JavaScript on the fly! Just write your TS code between:

<script type="text/typescript">
    ...
</script>

or include your TS file:

<script type="text/typescript" src="demo.ts"></script>

and add these two JS files at the end of the HTML body:

<script type="text/javascript" src="typescript.min.js"></script>
<script type="text/javascript" src="typescript.compile.min.js"></script>

That's it! TypeScript will be compiled to JavaScript and immediately run, by appending the compiled script to the HTML body. You can see any compilation errors in the web console. If you wish to perform a complex compilation with type checking, use the typescript.compile.dev.js file instead.

Demo

Here is a live demo

Download

TypeScript 0.8 (minified JS)

TypeScript Compile 0.3 (minified JS)

TypeScript Compile 0.3 (development JS)

Authors & License

TypeScript is developed by Microsoft Corp. under Apache 2.0 License.

TypeScript Compile is developed by Jerzy Głowacki under Apache 2.0 License.

About

Automatically compile TypeScript to JavaScript on the fly

http://niutech.github.com/typescript-compile/demo/demo.html


Languages

Language:JavaScript 100.0%