Skip to content

Ruby TypeScript is a bridge to the JS TypeScript transpiler.

License

Notifications You must be signed in to change notification settings

gyuchang/ruby-type-script

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Ruby TypeScript

Ruby TypeScript is a bridge to the official TypeScript transpiler.

TypeScript.compile File.read("script.ts")

Installation

gem install type-script

Credit

General structure, most of the code and documentation was shamelessly lifted from coffee-scrit gem.

Dependencies

This library depends on the type-script-source gem which is updated any time a new version of TypeScript is released. (The type-script-source gem's version number is synced with each official TypeScript release.) This way you can build against different versions of TypeScript by requiring the correct version of the type-script-source gem.

In addition, you can use this library with unreleased versions of TypeScript by setting the TYPESCRIPT_SOURCE_PATH environment variable:

export TYPESCRIPT_SOURCE_PATH=/path/to/TypeScript/lib/typescript.js

ExecJS

The ExecJS library is used to automatically choose the best JavaScript engine for your platform. Check out its README for a complete list of supported engines.

About

Ruby TypeScript is a bridge to the JS TypeScript transpiler.

Resources

License

Stars

Watchers

Forks

Packages

No packages published