Sha256: 95b51f4a02dff5624169eddaae96513d16bb1e970b74ccdb962ecb8f04b728d3
Contents?: true
Size: 673 Bytes
Versions: 2
Compression:
Stored size: 673 Bytes
Contents
# frozen_string_literal: true require 'fileutils' module ::AmberComponent module Generators # A Rails generator which installs the `amber_component` # library in a Rails project. class InstallGenerator < ::Rails::Generators::Base desc 'Install the AmberComponent gem' source_root ::File.expand_path('templates', __dir__) # copy rake tasks def copy_tasks copy_file 'application_component.rb', 'app/components/application_component.rb' inject_into_file 'app/assets/stylesheets/application.css', after: "*= require_tree .\n" do " *= require_tree ./../../components\n" end end end end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
amber_component-0.0.4 | lib/generators/amber_component/install_generator.rb |
amber_component-0.0.3 | lib/generators/amber_component/install_generator.rb |