Skip to content

Commit cec377a

Browse files
committed
Update README.md
1 parent fb752a6 commit cec377a

File tree

1 file changed

+15
-0
lines changed

1 file changed

+15
-0
lines changed

README.md

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,17 @@
11
# typescript-script
22
Script tag support for TypeScript
3+
4+
## Usage
5+
Add the following lines at the bottom of your page:
6+
```html
7+
<script src="https://rawgit.com/Microsoft/TypeScript/master/bin/typescriptServices.js"></script>
8+
<script src="https://rawgit.com/basarat/typescript-script/master/transpiler.js"></script>
9+
```
10+
11+
And then you can use script tags that load `.ts` files or even have `typescript` inline:
12+
```html
13+
<script type="text/typescript" src="script.ts"></script>
14+
<script type="text/typescript">
15+
setTimeout(()=>console.log('hello'));
16+
</script>
17+
```

0 commit comments

Comments
 (0)