Sha256: ef111a27f3b9f79fde9fde24a1cf2470a2ca9368d1029db2d5a2086a8b8772ca
Contents?: true
Size: 724 Bytes
Versions: 1
Compression:
Stored size: 724 Bytes
Contents
require 'typescript/rails' class TypeScript::Rails::Railtie < ::Rails::Railtie config.before_initialize do |app| if ::Rails::VERSION::MAJOR >= 4 || app.config.assets.enabled require 'typescript/rails/template' require 'typescript/rails/transformer' require 'sprockets' if Sprockets.respond_to?(:register_engine) Sprockets.register_engine '.ts', TypeScript::Rails::Template, silence_deprecation: true end if Sprockets.respond_to?(:register_transformer) Sprockets.register_mime_type 'text/typescript', extensions: ['.ts'] Sprockets.register_transformer 'text/typescript', 'application/javascript', TypeScript::Rails::Transformer end end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
ts-rails-0.0.1 | lib/typescript/rails/railtie.rb |