2023-07-12 10:47:54 +03:00
|
|
|
# frozen_string_literal: true
|
|
|
|
|
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.
|
|
|
|
|
2023-07-12 10:47:54 +03:00
|
|
|
require File.expand_path('config/application', __dir__)
|
2016-02-20 23:53:20 +02:00
|
|
|
|
|
|
|
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
|