Sha256: 6738e80174a0633f2f8a18040ab5b806ac8277e8e65c8c5db0849042a2cdc820
Contents?: true
Size: 1015 Bytes
Versions: 10
Compression:
Stored size: 1015 Bytes
Contents
module Teleport 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' copy_file 'bootstrap/bootstrap-init.coffee', 'app/assets/javascripts/shared/bootstrap-init.coffee' copy_file 'bootstrap/bootstrap_flash_helper.rb', 'app/helpers/bootstrap_flash_helper.rb' 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 //= require_tree ./shared\n" end end end
Version data entries
10 entries across 10 versions & 1 rubygems