lib/classy_assets/tasks.rb in classy_assets-0.12.0 vs lib/classy_assets/tasks.rb in classy_assets-0.13.0

- old
+ new

@@ -5,18 +5,19 @@ require 'classy_assets' module ClassyAssets class Tasks < Rake::SprocketsTask def define_precompile_task + desc "Clean and Precompile Classy Assets" task "assets:precompile" => [:environment, :clean_assets, :assets] - task :assets => :environment - task :clean_assets => :environment - task :clobber_assets => :environment + task :assets => [:environment, :classy_assets] + task :clean_assets => [:environment, :clean_classy_assets] + task :clobber_assets => [:environment, :clobber_classy_assets] end end end -ClassyAssets::Tasks.new do |t| +ClassyAssets::Tasks.new(:classy_assets) do |t| t.define_precompile_task t.environment = ->{ ClassyAssets.sprockets } t.output = ->{ ClassyAssets.config.asset_precompile_path } t.assets = ClassyAssets.config.asset_precompile t.keep = ClassyAssets.config.asset_precompile_keep