mirror of
https://github.com/twbs/bootstrap-sass.git
synced 2022-11-09 12:27:02 -05:00
3e40c4caea
Prior to this, functions in sprockets-sass conflicted with ours and caused an infinite loop and StackError. This fixes thomas-mcdonald/bootstrap-sass#257 Note that Sprockets' asset_path requires configuration if it's not already configured by your framework. For example, in a simple Rack app, add the following to your config.ru: environment.context_class.class_eval do def asset_path(path, options = {}) "/assets/#{path}" end end
20 lines
No EOL
596 B
Ruby
20 lines
No EOL
596 B
Ruby
require 'rake/testtask'
|
|
Rake::TestTask.new do |t|
|
|
t.libs << "test"
|
|
t.test_files = FileList['test/*_test.rb']
|
|
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/sass_functions'
|
|
path = './vendor/assets/stylesheets'
|
|
%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 |