Sha256: f17fa0d78672db69f97e0e5dc4e8547ca0ebdc4e4e1abe4986e41a8132c1fd86
Contents?: true
Size: 1.58 KB
Versions: 2
Compression:
Stored size: 1.58 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 simple -f' when 'bootstrap2' generate 'layout bootstrap2 -f' when 'bootstrap3' generate 'layout bootstrap3 -f' when 'foundation4' generate 'layout foundation4 -f' end # specialized navigation partials if prefer :authorization, 'cancan' case prefs[:authentication] when 'devise' copy_from_repo 'app/views/layouts/_navigation-cancan.html.erb', :prefs => 'cancan' when 'omniauth' copy_from 'https://raw.github.com/RailsApps/rails-composer/master/files/app/views/layouts/_navigation-cancan-omniauth.html.erb', 'app/views/layouts/_navigation.html.erb' end else copy_from_repo 'app/views/layouts/_navigation-devise.html.erb', :prefs => 'devise' copy_from_repo 'app/views/layouts/_navigation-omniauth.html.erb', :prefs => 'omniauth' end 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: front-end framework"' if prefer :git, true end # after_bundler __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
2 entries across 2 versions & 2 rubygems
Version | Path |
---|---|
intersect_rails_composer-0.0.2 | recipes/frontend.rb |
rails_apps_composer-2.4.12 | recipes/frontend.rb |