typescript-ruby / typescript-rails

An asset pipeline wrapper for the TypeScript language
MIT License
255 stars 30 forks source link

Add typescript template generator (not defaulted) #48

Closed mjfaga closed 7 years ago

mjfaga commented 7 years ago

Adds all of the plumbing to support a .ts file template generator. In the spirit of maintiaining existing functionality, we do not default the default javascript generator to typescript. However, anyone can opt into this functionality by adding the following to their config/application.rb:

config.generators do |g|
  g.javascript_engine :typescript
end
coveralls commented 7 years ago

Coverage Status

Coverage increased (+1.0%) to 91.827% when pulling e4fa4ea7915f7a6f7598071242985f3c81bc3182 on mjfaga:generate_ts_file into 2c8c0065089b18bf66e573f95cae7aa073c2bc5d on typescript-ruby:master.