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

Version Path
teleporter-0.0.32 lib/generators/initial/bootstrap.rb
teleporter-0.0.31 lib/generators/initial/bootstrap.rb
teleporter-0.0.30 lib/generators/initial/bootstrap.rb
teleporter-0.0.29 lib/generators/initial/bootstrap.rb
teleporter-0.0.28 lib/generators/initial/bootstrap.rb
teleporter-0.0.27 lib/generators/initial/bootstrap.rb
teleporter-0.0.26 lib/generators/initial/bootstrap.rb
teleporter-0.0.25 lib/generators/initial/bootstrap.rb
teleporter-0.0.24 lib/generators/initial/bootstrap.rb
teleporter-0.0.23 lib/generators/initial/bootstrap.rb
teleporter-0.0.22 lib/generators/initial/bootstrap.rb
teleporter-0.0.21 lib/generators/initial/bootstrap.rb