Sha256: 16cfbf31050c044242c5ee82a6d5ba747e64a928e17514f76b6c9561a1979d97

Contents?: true

Size: 788 Bytes

Versions: 1

Compression:

Stored size: 788 Bytes

Contents

# encoding: utf-8

require 'rake'
require 'rake/sprocketstask'
require 'classy_assets'

module ClassyAssets 
  class Tasks < Rake::SprocketsTask
    def define_precompile_task
      task "assets:precompile" => [:environment, :clean_assets, :assets]
      task :assets => :environment
      task :clean_assets => :environment
      task :clobber_assets => :environment
    end
  end
end

ClassyAssets::Tasks.new 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
  t.manifest     = ->{ ::Sprockets::Manifest.new(t.environment, ClassyAssets.config.asset_manifest_path) }
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
classy_assets-0.12.0 lib/classy_assets/tasks.rb