Skip to content

Commit

Permalink
Use sprockets for javascript.
Browse files Browse the repository at this point in the history
  • Loading branch information
cbeer committed Sep 20, 2024
1 parent 5526952 commit 59f108c
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions spec/test_app_templates/lib/generators/test_app_generator.rb
Original file line number Diff line number Diff line change
Expand Up @@ -75,4 +75,12 @@ def raise_on_missing_translation
uncomment_lines 'config/environments/development.rb', /config.action_view.raise_on_missing_translations/
uncomment_lines 'config/environments/test.rb', /config.action_view.raise_on_missing_translations/
end

# Temporarily force js assets to fall back to sprockets
def clean_up_js_builds
return unless File.exist?('app/assets/builds')

gsub_file 'app/assets/config/manifest.js', '//= link_tree ../builds', ''
remove_dir 'app/assets/builds'
end
end

0 comments on commit 59f108c

Please sign in to comment.