Permalink
Browse files

Debugging Travis CI

  • Loading branch information...
winton committed Jul 10, 2012
1 parent 7b1e829 commit 4dbe547c09f3413a4edb07380d0bbb6204b5ec14
Showing with 5 additions and 0 deletions.
  1. +5 −0 lib/smart_asset.rb
View
@@ -74,10 +74,15 @@ def compress(type)
File.open(tmp, 'w') { |f| f.write(data) }
puts "\nCreating #{package}..."
warning = ENV['WARN'] ? " -v" : nil
+
unless @bin
@bin = Dir.chdir(@root) { `npm bin` }
+ puts '!'*50
+ puts @root
+ puts @bin
@bin = File.exists?(@bin) ? "#{@bin}/" : nil
end
+
if ext == 'js'
cmd = "#{@bin}uglifyjs --output #{package}#{warning} -nc #{tmp}"
elsif ext == 'css'

0 comments on commit 4dbe547

Please sign in to comment.