Sha256: 1d26ba68f75c9e1ae9469830b9f0e054aec7048a6b68323b3d6ef2aebd22bdfe
Contents?: true
Size: 729 Bytes
Versions: 12
Compression:
Stored size: 729 Bytes
Contents
module Initial class BootstrapGenerator < Rails::Generators::Base source_root File.expand_path("../templates", __FILE__) def add gem 'bootstrap-sass' gem 'kaminari-bootstrap' gem 'bh' gem 'autoprefixer-rails' Bundler.with_clean_env do run "bundle install" end copy_file 'bootstrap/bootstrap-base.scss', 'app/assets/stylesheets/shared/bootstrap-base.scss' insert_into_file "app/assets/stylesheets/application.css", "*= require shared/bootstrap-base\n", after: "/*\n" prepend_to_file "app/assets/javascripts/application.js", " //= require bootstrap\n" end end end
Version data entries
12 entries across 12 versions & 1 rubygems