Sha256: b6a61f5c4531493aa179d5efcc70aaf23aef101cb0dc1f9e31e815f72b366688
Contents?: true
Size: 1.28 KB
Versions: 54
Compression:
Stored size: 1.28 KB
Contents
# Add your own tasks in files placed in lib/tasks ending in .rake, # for example lib/tasks/capistrano.rake, and they will automatically be available to Rake. puts "Loading engine rake tasks" begin require "bundler/setup" rescue LoadError puts "You must `gem install bundler` and `bundle install` to run rake tasks" end # We can use rake tasks like app:db:reset when APP_RAKEFILE set unless defined?(APP_RAKEFILE) APP_RAKEFILE = File.expand_path("../spec/dummy/Rakefile", __FILE__) end load "rails/tasks/engine.rake" load "rails/tasks/statistics.rake" require "bundler/gem_tasks" # Bundler::GemHelper.install_tasks # assets:* tasks for For Heroku only # When deploying the engine to Heroku, we are actually deployment the spec/dummy app. # Heroku however loads this Rakefile first hunting for an assets:precompile task to indicate # it should compile the assets. If not found it won't compile assets and we won't have any styling. namespace :assets do desc "Clean any assets within dummy app" task :clean do Rake::Task["app:assets:clean"].invoke end desc "Precompile assets within dummy app" task :precompile do Rake::Task["app:assets:precompile"].invoke end desc "Clobbers assets within dummy app" task :clobber do Rake::Task["app:assets:clobber"].invoke end end
Version data entries
54 entries across 54 versions & 1 rubygems