1
0
Fork 0
mirror of https://github.com/twbs/bootstrap-sass.git synced 2022-11-09 12:27:02 -05:00

Alter rake debug to compile bootstrap-responsive

This commit is contained in:
Thomas McDonald 2012-06-04 11:34:57 +01:00
parent a2c99397c4
commit bc90e37c6c
2 changed files with 6 additions and 3 deletions

3
.gitignore vendored
View file

@ -1,3 +1,4 @@
*.gem
.sass-cache
debug.css
bootstrap.css
bootstrap-responsive.css

View file

@ -11,8 +11,10 @@ task :debug do
require './lib/bootstrap-sass/compass_functions'
require './lib/bootstrap-sass/rails_functions'
path = './vendor/assets/stylesheets'
engine = Sass::Engine.for_file("#{path}/_bootstrap.scss", syntax: :scss, load_paths: [path])
File.open('./debug.css', 'w') { |f| f.write(engine.render) }
%w(bootstrap bootstrap-responsive).each do |file|
engine = Sass::Engine.for_file("#{path}/_#{file}.scss", syntax: :scss, load_paths: [path])
File.open("./#{file}.css", 'w') { |f| f.write(engine.render) }
end
end
task default: :test