Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse code

compile js into subdirectory

  • Loading branch information...
commit d6189b819cb76d53f211820123257f3baa93b2dc 1 parent d1662e5
Stephen Ball sdball authored

Showing 2 changed files with 5 additions and 3 deletions. Show diff stats Hide diff stats

  1. +1 0  .gitignore
  2. +4 3 Rakefile
1  .gitignore
... ... @@ -0,0 +1 @@
  1 +js/
7 Rakefile
@@ -20,8 +20,9 @@ def recompile_coffee
20 20 Dir.glob("coffee/**/*.coffee").each do |f|
21 21 code << IO.read(f)
22 22 end
23   - f = File.new('main.js', 'w')
24   - f.write CoffeeScript.compile code.string
25   - f.close
  23 + Dir.mkdir('js') unless Dir.exists? 'js'
  24 + File.open('js/main.js', 'w') do |f|
  25 + f.write CoffeeScript.compile code.string
  26 + end
26 27 puts "Recompiled."
27 28 end

0 comments on commit d6189b8

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