projects
/
yaffs-website
/ blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
history
|
raw
|
HEAD
Minor dependency updates
[yaffs-website]
/
vendor
/
twbs
/
bootstrap-sass
/
test
/
dummy_sass_only
/
compile.rb
1
require 'sass'
2
require 'bootstrap-sass'
3
require 'fileutils'
4
5
scss_path = File.expand_path('./import_all.sass', File.dirname(__FILE__))
6
css = Sass.compile File.read(scss_path), syntax: 'sass'
7
8
if ARGV[0]
9
FileUtils.mkdir_p File.dirname(ARGV[0])
10
File.open(ARGV[0], 'w') { |f| f.write css }
11
else
12
puts css
13
end