Sha256: d4063edf2055561184317f6b3c5f889b111004202e41e5b6906103fc40a11213
Contents?: true
Size: 701 Bytes
Versions: 2
Compression:
Stored size: 701 Bytes
Contents
# frozen_string_literal: true namespace :parcel do desc 'Compiles assets using parcel bundler' task compile: :environment do Parcel::Rails::Runner.from_config.compile end desc 'Compiles assets using parcel bundler' task serve: :environment do Parcel::Rails::Runner.from_config.serve end desc 'Removes compiled assets' task clobber: :environment do command = "rm -rf #{::Rails.application.config.parcel.destination}" logger = Logger.new(STDOUT) logger.info(command) exec(command) end end Rake::Task['assets:precompile'].enhance do Rake::Task['parcel:compile'].invoke end Rake::Task['assets:clobber'].enhance do Rake::Task['parcel:clobber'].invoke end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
parcel-rails-0.9.3 | lib/parcel/rails/tasks.rake |
parcel-rails-0.9.2 | lib/parcel/rails/tasks.rake |