use the rake-pipeline project directly. cuts asset build time by 50%
This commit is contained in:
parent
f16c83d10f
commit
d2cbde2cfa
|
@ -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
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
|
@ -1 +1 @@
|
||||||
3e9dccd4
|
f480d531
|
Loading…
Reference in New Issue
Block a user