Sha256: 93119629868eb4022be76ad6745ee38b1dff059e41eef70f6eec14d74284f851

Contents?: true

Size: 672 Bytes

Versions: 8

Compression:

Stored size: 672 Bytes

Contents

class RioComponentGenerator < Rails::Generator::NamedBase
  def manifest
    record do |m|
      m.directory "public/javascripts/components"
      m.template "component.js", "public/javascripts/components/#{file_name}.js"

      m.directory "public/stylesheets/components"
      m.file "component.css", "public/stylesheets/components/#{file_name}.css"

      m.directory "public/javascripts/specs/fixtures/components"
      m.template "fixture.js", "public/javascripts/specs/fixtures/components/#{file_name}.js"
      m.directory "public/javascripts/specs/components"
      m.template "spec.js", "public/javascripts/specs/components/#{file_name}_spec.js"
    end
  end
end

Version data entries

8 entries across 8 versions & 1 rubygems

Version Path
riojs-0.0.7 generators/rio_component/rio_component_generator.rb
riojs-0.0.6 generators/rio_component/rio_component_generator.rb
riojs-0.0.5 generators/rio_component/rio_component_generator.rb
riojs-0.0.4 generators/rio_component/rio_component_generator.rb
riojs-0.0.3 generators/rio_component/rio_component_generator.rb
riojs-0.0.2 generators/rio_component/rio_component_generator.rb
riojs-0.0.1 generators/rio_component/rio_component_generator.rb
riojs-0.0.0 generators/rio_component/rio_component_generator.rb