1
0
Fork 0
mirror of https://github.com/twbs/bootstrap-sass.git synced 2022-11-09 12:27:02 -05:00
twbs--bootstrap-sass/test/dummy_sass_only/compile.rb
2014-09-02 23:49:24 +02:00

13 lines
311 B
Ruby

require 'sass'
require 'bootstrap-sass'
require 'fileutils'
scss_path = File.expand_path('./import_all.sass', File.dirname(__FILE__))
css = Sass.compile File.read(scss_path), syntax: 'sass'
if ARGV[0]
FileUtils.mkdir_p File.dirname(ARGV[0])
File.open(ARGV[0], 'w') { |f| f.write css }
else
puts css
end