use the rake-pipeline project directly. cuts asset build time by 50%

This commit is contained in:
Sven Fuchs 2012-10-12 02:41:15 +02:00
parent f16c83d10f
commit d2cbde2cfa
2 changed files with 7 additions and 4 deletions

View File

@ -2,6 +2,7 @@ $stdout.sync = true
require 'guard' require 'guard'
require 'guard/guard' require 'guard/guard'
require 'rake-pipeline'
module Guard module Guard
class Assets < Guard class Assets < Guard
@ -28,11 +29,13 @@ module Guard
def run def run
started = Time.now started = Time.now
print 'Compiling ... ' print 'Compiling ... '
system 'bundle exec rakep' project.invoke_clean
puts "done (#{(Time.now - started).round(2)}s)." puts "done (#{(Time.now - started).round(2)}s)."
end end
def project
@project ||= Rake::Pipeline::Project.new('./Assetfile')
end
end end
end end

View File

@ -1 +1 @@
3e9dccd4 f480d531