2012-05-06 14:50:46 -04:00
|
|
|
require 'rake/testtask'
|
|
|
|
Rake::TestTask.new do |t|
|
|
|
|
t.libs << "test"
|
|
|
|
t.test_files = FileList['test/*_test.rb']
|
|
|
|
t.verbose = true
|
|
|
|
end
|
|
|
|
|
2012-05-12 03:24:22 -04:00
|
|
|
desc 'Dumps output to a CSS file for testing'
|
|
|
|
task :debug do
|
|
|
|
require 'sass'
|
|
|
|
require './lib/bootstrap-sass/compass_functions'
|
2013-03-21 13:06:19 -04:00
|
|
|
require './lib/bootstrap-sass/sass_functions'
|
2012-05-12 03:24:22 -04:00
|
|
|
path = './vendor/assets/stylesheets'
|
2013-04-13 10:59:28 -04:00
|
|
|
%w(bootstrap).each do |file|
|
2013-01-20 09:48:46 -05:00
|
|
|
engine = Sass::Engine.for_file("#{path}/#{file}.scss", syntax: :scss, load_paths: [path])
|
2012-06-04 06:34:57 -04:00
|
|
|
File.open("./#{file}.css", 'w') { |f| f.write(engine.render) }
|
|
|
|
end
|
2012-05-12 03:24:22 -04:00
|
|
|
end
|
|
|
|
|
2012-05-06 14:50:46 -04:00
|
|
|
task default: :test
|