Skip to content
Browse files

compile js into subdirectory

  • Loading branch information...
1 parent d1662e5 commit d6189b819cb76d53f211820123257f3baa93b2dc @sdball sdball committed Feb 15, 2012
Showing with 5 additions and 3 deletions.
  1. +1 −0 .gitignore
  2. +4 −3 Rakefile
View
1 .gitignore
@@ -0,0 +1 @@
+js/
View
7 Rakefile
@@ -20,8 +20,9 @@ def recompile_coffee
Dir.glob("coffee/**/*.coffee").each do |f|
code << IO.read(f)
end
- f = File.new('main.js', 'w')
- f.write CoffeeScript.compile code.string
- f.close
+ Dir.mkdir('js') unless Dir.exists? 'js'
+ File.open('js/main.js', 'w') do |f|
+ f.write CoffeeScript.compile code.string
+ end
puts "Recompiled."
end

0 comments on commit d6189b8

Please sign in to comment.
Something went wrong with that request. Please try again.