Skip to content

Commit

Permalink
make sure we only try to compile .coffee files (js only obviously) be…
Browse files Browse the repository at this point in the history
…cause vim swp files are being compiled :(

Signed-off-by: Zachary Scott <[email protected]>
  • Loading branch information
AndrewVos authored and Zachary Scott committed Mar 29, 2011
1 parent 0f5f415 commit ca5ddc8
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion tasks/assets.rake
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ begin
javascripts = "#{File.dirname(__FILE__)}/../public/assets/src/"

Dir.foreach(source) do |cf|
unless cf == '.' || cf == '..'
unless cf == '.' || cf == '..' || cf.end_with?('.coffee') == false
js = CoffeeScript.compile File.read("#{source}#{cf}")
open "#{javascripts}#{cf.gsub('.coffee', '.js')}", 'w' do |f|
f.puts js
Expand Down

0 comments on commit ca5ddc8

Please sign in to comment.