Sha256: c8ffb01cbca59a4617f1cc283d73f2fcdfa459d5c960f330b4c855342bf565c6
Contents?: true
Size: 1.3 KB
Versions: 10
Compression:
Stored size: 1.3 KB
Contents
# Application template recipe for the rails_apps_composer. Change the recipe here: # https://github.com/RailsApps/rails_apps_composer/blob/master/recipes/frontend.rb stage_two do say_wizard "recipe stage two" # set up a front-end framework using the rails_layout gem case prefs[:frontend] when 'simple' generate 'layout:install simple -f' when 'bootstrap2' generate 'layout:install bootstrap2 -f' when 'bootstrap3' generate 'layout:install bootstrap3 -f' when 'bootstrap4' generate 'layout:install bootstrap4 -f' when 'foundation4' generate 'layout:install foundation4 -f' when 'foundation5' generate 'layout:install foundation5 -f' else case prefs[:jquery] when 'gem', 'yarn' say_wizard "modifying application.js for jQuery" insert_into_file('app/assets/javascripts/application.js', "//= require jquery\n", :before => /^ *\/\/= require rails-ujs/, :force => false) end end ### GIT ### git :add => '-A' if prefer :git, true git :commit => '-qm "rails_apps_composer: front-end framework"' if prefer :git, true end __END__ name: frontend description: "Install a front-end framework for HTML5 and CSS." author: RailsApps requires: [setup, gems] run_after: [setup, gems, devise, omniauth, roles] category: frontend
Version data entries
10 entries across 10 versions & 1 rubygems