This project is read-only.

Usage in Rails

Topics: General
Oct 3, 2012 at 11:27 AM
Edited Oct 3, 2012 at 11:27 AM

I've put together a little Gem that lets you use TypeScript within the Asset Pipeline of a rails application.


Just add 


gem 'typescript-rails'

to your Gemfile and start adding .ts files to your app/assets/javascripts folder. they are automatically compiled to JS for you and when you deploy your app also minified and versioned. 


Have fun ;)

Oct 5, 2012 at 4:52 PM

Thanks for the heads up!

Mar 10, 2014 at 6:47 PM
It does not work for me. I have rails 4 installed and I see uncompiled ts being concatenated in my overall js file. Any ideas ?