mastodon/Rakefile

18 lines
589 B
Ruby
Raw Normal View History

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