Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/twbs/bootstrap-rubygem.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'Rakefile')
-rw-r--r--Rakefile10
1 files changed, 10 insertions, 0 deletions
diff --git a/Rakefile b/Rakefile
index cc6711f..b5dc5da 100644
--- a/Rakefile
+++ b/Rakefile
@@ -5,4 +5,14 @@ Rake::TestTask.new do |t|
t.verbose = true
end
+desc 'Dumps output to a CSS file for testing'
+task :debug do
+ require 'sass'
+ 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) }
+end
+
task default: :test \ No newline at end of file