0.0
No commit activity in last 3 years
No release in over 3 years
Ruby TypeScript is a bridge to the JS TypeScript transpiler.
2005
2006
2007
2008
2009
2010
2011
2012
2013
2014
2015
2016
2017
2018
2019
2020
2021
2022
2023
2024
 Dependencies
 Project Readme

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.