Skip to content

πŸ“œπŸ›  Script tag support for TypeScript. Based from basarat/typescript-script with Minified Versions

License

Notifications You must be signed in to change notification settings

RinMinase/typescript-script

Folders and files

NameName
Last commit message
Last commit date

Latest commit

Β 

History

8 Commits
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 

Repository files navigation

typescript-script

πŸ“œπŸ›  Script tag support for TypeScript.
Based from basarat/typescript-script with Minified Versions

Usage

Add the following lines at the bottom of your page:

<script src="https://cdn.jsdelivr.net/gh/rinminase/typescript-script/ts-services.min.js"></script>
<script src="https://cdn.jsdelivr.net/gh/rinminase/typescript-script/ts-transpiler.min.js"></script>

And then you can use script tags that load .ts files or even have inline typescript syntax:

<script type="text/typescript" src="script.ts"></script>
<script type="text/typescript">
    setTimeout(()=>console.log('hello'));
</script>

<script type="text/typescript"> tags should be located above the transpiler and services.

Demo

https://next.plnkr.co/edit/3TCDINcd6LAGcHMm

About

πŸ“œπŸ›  Script tag support for TypeScript. Based from basarat/typescript-script with Minified Versions

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published