Permalink
Switch branches/tags
Nothing to show
Find file
Fetching contributors…
Cannot retrieve contributors at this time
62 lines (52 sloc) 1.72 KB
# Install twitter-bootstrap css defaultness
puts "Setting up HTML5 Boilerplate with HAML, SASS, and Compass ...".magenta
copy_static_file 'config/compass.rb'
copy_static_file 'app/assets/stylesheets/bootstrap.sass'
copy_static_file 'app/views/misc/bootstrap_demo.html.erb'
inject_into_file 'config/application.rb', :after => "config.assets.enabled = true\n" do
<<-RUBY
# Compass integration
config.sass.load_paths << Compass::Frameworks['compass'].stylesheets_directory
config.sass.load_paths << Compass::Frameworks['twitter_bootstrap'].stylesheets_directory
RUBY
end
%w[
bootstrap/bootstrap-dropdown.js
bootstrap/bootstrap-scrollspy.js
bootstrap/bootstrap-twipsy.js
bootstrap/demo/bootstrap_demo.css
bootstrap/demo/bootstrap_demo.js
bootstrap/demo/grid-18px.png
google-code-prettify/prettify.css
google-code-prettify/prettify.js
jquery.tablesorter.js
].each{|asset| copy_static_file("public/assets/#{asset}")}
git :add => '.'
git :commit => "-am 'Twitter Bootstrap Helpers.'"
%w[
jasmine/jasmine.js
jasmine/jasmine-fixture.js
jasmine/jasmine-html.js
jasmine/jasmine-jquery.js
jasmine/jasmine-stealth.js
].each{|asset| copy_static_file("public/assets/#{asset}")}
git :add => '.'
git :commit => "-am 'Jasmine - javascript test framework.'"
%w[
hashgrid.js
].each{|asset| copy_static_file("public/assets/#{asset}")}
git :add => '.'
git :commit => "-am 'Hashgrid grid visualizer.'"
%w[
jquery.bbq.js
jquery.touch_events.js
sprintf.js
].each{|asset| copy_static_file("public/assets/#{asset}")}
git :add => '.'
git :commit => "-am 'jQuery helpers.'"
%w[
coffee-script.js
underscore.coffee
].each{|asset| copy_static_file("public/assets/#{asset}")}
git :add => '.'
git :commit => "-am 'javascript utils.'"