Giter VIP home page Giter VIP logo

typescript-compile's Introduction

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.

typescript-compile's People

Contributors

niutech avatar

Watchers

 avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

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

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.