Skip to content

Commit

Permalink
Enhance spec:prepare command with tailwindcss:build command
Browse files Browse the repository at this point in the history
jsbundling-rails (rails/jsbundling-rails#128)
and cssbundling-rails (rails/cssbundling-rails#116)
do the same and it's useful for people who are using RSpec.
  • Loading branch information
rmehner committed Jun 20, 2023
1 parent 7a61798 commit 8a47f52
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions lib/tasks/build.rake
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,8 @@ Rake::Task["assets:precompile"].enhance(["tailwindcss:build"])

if Rake::Task.task_defined?("test:prepare")
Rake::Task["test:prepare"].enhance(["tailwindcss:build"])
elsif Rake::Task.task_defined?("spec:prepare")
Rake::Task["spec:prepare"].enhance(["tailwindcss:build"])
elsif Rake::Task.task_defined?("db:test:prepare")
Rake::Task["db:test:prepare"].enhance(["tailwindcss:build"])
end

0 comments on commit 8a47f52

Please sign in to comment.