5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
|
# File 'lib/generators/teleport/bootstrap.rb', line 5
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
|