Sha256: 2cc9baaa58546889ab1d8eaebba417e79203e5fcb0e52628d9c569d72151545c

Contents?: true

Size: 353 Bytes

Versions: 1

Compression:

Stored size: 353 Bytes

Contents

require "rails/generators/named_base"

module TypeScript
  module Generators
    class AssetsGenerator < ::Rails::Generators::NamedBase
      source_root File.expand_path("../templates", __FILE__)

      def copy_typescript
        template "javascript.ts", File.join('app/assets/javascripts', class_path, "#{file_name}.ts")
      end
    end
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
ts-rails-0.0.1 lib/rails/generators/typescript/assets/assets_generator.rb