forked from kevinburke/2013
-
Notifications
You must be signed in to change notification settings - Fork 0
/
observr.rb
executable file
·20 lines (17 loc) · 1.08 KB
/
observr.rb
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
#!/usr/bin/env observr
main = "sass --style compressed scss/main.scss > style.css"
home = "sass --style compressed scss/home.scss > css/home.css"
blog = "sass --style compressed scss/blog.scss > css/blog.css"
twitter = "sass --style compressed scss/twitter.scss > css/twitter.css"
core = "sass --style compressed /Users/kevin/code/syntaxhighlighter/trunk/syntaxhighlighter3/scss/shCore.scss > /Users/kevin/code/syntaxhighlighter/trunk/syntaxhighlighter3/styles/shCore.css"
rdark = "sass --style compressed /Users/kevin/code/syntaxhighlighter/trunk/syntaxhighlighter3/scss/shThemeRDark.scss > /Users/kevin/code/syntaxhighlighter/trunk/syntaxhighlighter3/styles/shThemeRDark.css"
watch( 'scss/(license|normalize|main|colors|genericons)\.scss' ) {|md| puts main; system(main) }
watch( 'scss/blog\.scss' ) {|md| puts blog; system(blog) }
watch( 'scss/twitter\.scss' ) {|md| puts twitter; system(twitter) }
watch( 'scss/home\.scss' ) {|md| puts home; system(home) }
watch( 'scss/colors\.scss' ) {|md|
[main, blog, home, core, rdark].each do |css_file|
puts css_file
system css_file
end
}