You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
18 lines
589 B
18 lines
589 B
# frozen_string_literal: true
|
|
|
|
# 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', __dir__)
|
|
|
|
Rails.application.load_tasks
|
|
|
|
# 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
|