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 10, 2023
1 parent 8d0acff commit 0078eb3
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
raise if File.exist?("yarn.lock") && !(system "yarn install --frozen-lockfile")
end
end

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

0 comments on commit 0078eb3

Please sign in to comment.