Sha256: 04cb982aaa28c04e888ed7dd500f046834f5b014ce133a6b7cda3cebe8355497
Contents?: true
Size: 1.7 KB
Versions: 6
Compression:
Stored size: 1.7 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 after_bundler do say_wizard "recipe running after 'bundle install'" # 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 'foundation4' generate 'layout:install foundation4 -f' when 'foundation5' generate 'layout:install foundation5 -f' end # generate Devise views with appropriate styling if prefer :authentication, 'devise' case prefs[:frontend] when 'bootstrap3' generate 'layout:devise bootstrap3 -f' when 'foundation5' generate 'layout:devise foundation5 -f' end end ### GIT ### git :add => '-A' if prefer :git, true git :commit => '-qm "rails_apps_composer: front-end framework"' if prefer :git, true end # after_bundler after_everything do say_wizard "recipe running after everything" # create navigation links using the rails_layout gem generate 'layout:navigation -f' # replace with specialized navigation partials copy_from_repo 'app/views/layouts/_navigation-subdomains_app.html.erb', :prefs => 'subdomains_app' ### GIT ### git :add => '-A' if prefer :git, true git :commit => '-qm "rails_apps_composer: navigation links"' if prefer :git, true end # after_everything __END__ name: frontend description: "Install a front-end framework for HTML5 and CSS." author: RailsApps requires: [setup, gems] run_after: [setup, gems] category: frontend
Version data entries
6 entries across 6 versions & 1 rubygems