0.5.0 • Published 7 years ago

steal-typescript v0.5.0

Weekly downloads
144
License
MIT
Repository
github
Last release
7 years ago

steal-typescript

Build Status npm version

Use StealJS to load TypeScript modules — no build required. Here are the steps to get started:

Install steal and steal-typescript.

npm install --save steal steal-typescript

Update your package.json to add steal-typescript as a steal plugin

  "steal": {
    "plugins": [
      "steal-typescript"
    ]
  }

Create your index.html file:

<!doctype html>
<html>
  <body>
    <script src="./node_modules/steal/steal.js" main="index.ts"></script>
  </body>
</html>

Create your index.ts file:

class Greeter {
    constructor(public greeting: string) { }
    greet() {
        return "<h1>" + this.greeting + "</h1>";
    }
};

var greeter = new Greeter("Hello, world!");
    
document.body.innerHTML = greeter.greet();

Load your app in a browser

That's it. Your app is ready to go.

0.5.0

7 years ago

0.4.2

7 years ago

0.4.1

7 years ago

0.4.0

7 years ago

0.3.5

7 years ago

0.3.4

7 years ago

0.3.3

7 years ago

0.3.2

7 years ago

0.3.1

7 years ago

0.3.0

7 years ago

0.2.0

7 years ago

0.1.0

7 years ago