Skip to content

Commit

Permalink
fix: ensure that frontend assets are installed before (pre)compiling
Browse files Browse the repository at this point in the history
  • Loading branch information
G-Rath committed Aug 3, 2023
1 parent 6b2e1b5 commit 4eb56c6
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions variants/backend-base/lib/tasks/assets.rake
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
namespace :assets do
desc "Ensures that dependencies required to compile assets are installed"
task install_dependencies: :environment do
system "yarn install --frozen-lockfile" if File.exist?("yarn.lock")
end
end

Rake::Task["assets:precompile"].enhance ["assets:install_dependencies"]

0 comments on commit 4eb56c6

Please sign in to comment.