Skip to content

Commit

Permalink
DummyGenerator: Add Sprockets manifest
Browse files Browse the repository at this point in the history
Rails stopped creating sprockets files but we still use sprockets. And we need to manifest so that test apps
generated during specs do not fail with a sprockets error.
  • Loading branch information
tvdeyen committed Feb 13, 2025
1 parent 8ffb532 commit 16fcb10
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 0 deletions.
1 change: 1 addition & 0 deletions core/lib/generators/spree/dummy/dummy_generator.rb
Original file line number Diff line number Diff line change
Expand Up @@ -61,6 +61,7 @@ def test_dummy_config
template "rails/application.rb.tt", "#{dummy_path}/config/application.rb", force: true
template "rails/routes.rb", "#{dummy_path}/config/routes.rb", force: true
template "rails/test.rb", "#{dummy_path}/config/environments/test.rb", force: true
template "rails/manifest.js", "#{dummy_path}/app/assets/config/manifest.js", force: true
end

def test_dummy_inject_extension_requirements
Expand Down
3 changes: 3 additions & 0 deletions core/lib/generators/spree/dummy/templates/rails/manifest.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
//= link_tree ../images
//= link_directory ../javascripts .js
//= link_directory ../stylesheets .css

0 comments on commit 16fcb10

Please sign in to comment.