Sha256: 87e897efabd38e9fee1d6c57c3030728e7bfdbbb164c677611a25b7e8011d5e8
Contents?: true
Size: 1.14 KB
Versions: 3
Compression:
Stored size: 1.14 KB
Contents
# frozen_string_literal: true # lib/rails_app_generator/rag_initializer.rb # config.rag.add_option :add_<%= data.name_snake %> , type: :boolean, default: false module RailsAppGenerator # Custom add-ons for RailsAppGenerator module AddOns # Add <%= data.name_camel %> to rails application class <%= data.name_camel %> < RailsAppGenerator::Addon <%= data.addon_config_code %> def apply say 'Setting up <%= data.name_camel %>' # template('<%= data.name_snake%>_template.rb', 'target/<%= data.name_snake%>.rb', force: true) # template('app/javascript/stylesheets/components.scss') # create_file('target/<%= data.name_snake%>.rb', 'put your content here') # directory 'app/template', 'app/target', force: true # empty_directory 'app/target' # inject_into_file('app/application.js', "some content") # rails_command('tailwindcss:install') end def before_bundle say 'Setting up <%= data.name_camel %> - before bundle install' end def after_bundle say 'Setting up <%= data.name_camel %> - after bundle install' end end end end
Version data entries
3 entries across 3 versions & 1 rubygems
Version | Path |
---|---|
rails_app_generator-0.2.2 | templates/thor_task/addon/addon.tt |
rails_app_generator-0.2.1 | templates/thor_task/addon/addon.tt |
rails_app_generator-0.2.0 | templates/thor_task/addon/addon.tt |