Sha256: f56cfdccba867c345e9bf8a99242d6ada09446e7f543bd53f158b50257a336e1
Contents?: true
Size: 824 Bytes
Versions: 12
Compression:
Stored size: 824 Bytes
Contents
require 'rails/generators/base' require 'thor' module AmpHtml module Generators class AssetsGenerator < Rails::Generators::Base source_root File.expand_path '../../templates/assets', __FILE__ desc 'Generate assets to allow for use of the asset pipeline.' # ASSETS class_option :stylesheets, desc: 'Generate stylesheet assets', type: :boolean, default: false, aliases: '-st' def create_stylesheet_assets if options.size < 0 || options[:stylesheets] template 'stylesheets/application.scss', 'app/assets/stylesheets/amp/application.scss' end end def show_readme readme 'README.md' end end end end
Version data entries
12 entries across 12 versions & 1 rubygems