Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Fixed rakefile bug where coffeescript subfolders weren't listening to…

… ORDERING file
  • Loading branch information...
commit 134a4f5c3eae175b6d0657d2014a22caae89f518 1 parent e56905f
@emorikawa authored
Showing with 7 additions and 5 deletions.
  1. +7 −5 Rakefile
View
12 Rakefile
@@ -15,7 +15,7 @@ end
desc 'Runs all javascript and css related jobs'
task :default do
Rake::Task['js'].invoke
- Rake::Task['minify'].invoke
+ # Rake::Task['minify'].invoke
Rake::Task['css'].invoke
puts "==== DONE ===="
end
@@ -89,12 +89,14 @@ def compileSubFolder()
for coffee_file in coffee_files
puts " #{dname}.js <--- #{dname}/#{coffee_file}"
`coffee --compile --output #{d}tmp/ #{d}#{coffee_file}`
- end
- for compiled_coffee in FileList["#{d}tmp/*"]
+ fname_arr = coffee_file.split(".")
+ fname_arr.slice!(-1)
+ fname = fname_arr.join(".")
+
if File.exists? "#{JS_BIN}/#{dname}.js"
- `cat #{compiled_coffee} >> #{JS_BIN}/#{dname}.js`
+ `cat #{d}tmp/#{fname}.js >> #{JS_BIN}/#{dname}.js`
else
- `cat #{compiled_coffee} > #{JS_BIN}/#{dname}.js`
+ `cat #{d}tmp/#{fname}.js > #{JS_BIN}/#{dname}.js`
end
end
`rm -rf #{d}tmp/`
Please sign in to comment.
Something went wrong with that request. Please try again.