Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Debugging Travis CI

  • Loading branch information...
commit 4dbe547c09f3413a4edb07380d0bbb6204b5ec14 1 parent 7b1e829
Winton Welsh authored
Showing with 5 additions and 0 deletions.
  1. +5 −0 lib/smart_asset.rb
5 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'
Please sign in to comment.
Something went wrong with that request. Please try again.