Sha256: f4ada8c2b23146cfac9a537ae16cd9998cd753a048f2362dab192f451da2dcc3
Contents?: true
Size: 662 Bytes
Versions: 2
Compression:
Stored size: 662 Bytes
Contents
# frozen_string_literal: true namespace :parcel do desc 'Compiles assets using parcel bundler' task :compile do Parcel::Rails::Runner.from_config.compile end desc 'Compiles assets using parcel bundler' task :serve do Parcel::Rails::Runner.from_config.serve end desc 'Removes compiled assets' task :clobber 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.1 | lib/parcel/rails/tasks.rake |
parcel-rails-0.9.0 | lib/parcel/rails/tasks.rake |