Sha256: cf581125e6dc79a4e45903ed738b86ee7c0908f22d5957d3139c90cb3c7659aa

Contents?: true

Size: 351 Bytes

Versions: 3

Compression:

Stored size: 351 Bytes

Contents

require "rails/generators/named_base"

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

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

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
livescript-rails-1.1.0 lib/rails/generators/ls/assets/assets_generator.rb
livescript-rails-1.0.2 lib/rails/generators/ls/assets/assets_generator.rb
livescript-rails-1.0.1 lib/rails/generators/ls/assets/assets_generator.rb