Sha256: 53ff8e2dc8e1c47a10a05c1dc125b38a28248e6a93c18255353d5d565a40dc83
Contents?: true
Size: 728 Bytes
Versions: 1
Compression:
Stored size: 728 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
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
teleporter-0.0.20 | lib/generators/initial/bootstrap.rb |