2016-02-20 23:53:20 +02:00
|
|
|
# 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.
|
|
|
|
|
|
|
|
require File.expand_path('../config/application', __FILE__)
|
|
|
|
|
|
|
|
Rails.application.load_tasks
|
2023-03-16 05:48:03 +02:00
|
|
|
|
|
|
|
# please don't do this
|
|
|
|
if Rake::Task.task_defined?('assets:precompile') && ENV.include?('RAKE_NO_YARN_INSTALL_HACK')
|
|
|
|
task = Rake::Task['assets:precompile']
|
|
|
|
puts task.prerequisites
|
|
|
|
task.prerequisites.delete('webpacker:yarn_install')
|
|
|
|
task.prerequisites.delete('yarn:install')
|
|
|
|
puts task.prerequisites
|
|
|
|
end
|