|
|
@ -14,7 +14,9 @@ class AssetsCLI < Thor
|
|
|
|
option :keep, type: :numeric, default: 0, desc: 'Number of old assets to keep'
|
|
|
|
option :keep, type: :numeric, default: 0, desc: 'Number of old assets to keep'
|
|
|
|
option :verbose, type: :boolean
|
|
|
|
option :verbose, type: :boolean
|
|
|
|
def compile
|
|
|
|
def compile
|
|
|
|
|
|
|
|
load 'tasks/sprites.thor'
|
|
|
|
invoke 'sprites:generate', [], :verbose => options[:verbose]
|
|
|
|
invoke 'sprites:generate', [], :verbose => options[:verbose]
|
|
|
|
|
|
|
|
|
|
|
|
manifest.compile App.assets_compile
|
|
|
|
manifest.compile App.assets_compile
|
|
|
|
manifest.clean(options[:keep]) if options[:clean]
|
|
|
|
manifest.clean(options[:keep]) if options[:clean]
|
|
|
|
end
|
|
|
|
end
|
|
|
|