Skip to content

Commit

Permalink
Add a DummyApp sprockets 4 configuration manifest
Browse files Browse the repository at this point in the history
This is needed from Sprockets, since v4. It contains
all dependencies that needs to be compiled.

Co-Authored-By: Elia Schito <[email protected]>
  • Loading branch information
kennyadsl and elia committed Jan 9, 2024
1 parent 6ef5c78 commit 4024df7
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 6 deletions.
5 changes: 0 additions & 5 deletions Gemfile
Original file line number Diff line number Diff line change
Expand Up @@ -12,11 +12,6 @@ else
end
# rubocop:enable Bundler/DuplicatedGem

# Temporarily locking sprockets to v3.x
# see https://github.com/solidusio/solidus/issues/3374
# and https://github.com/rails/sprockets-rails/issues/369
gem 'sprockets', '~> 3'

gem 'pry'
gem 'launchy', require: false

Expand Down
5 changes: 4 additions & 1 deletion core/lib/spree/testing_support/dummy_app.rb
Original file line number Diff line number Diff line change
Expand Up @@ -34,8 +34,11 @@ module ApplicationHelper
module DummyApp
def self.setup(gem_root:, lib_name:, auto_migrate: true)
ENV["LIB_NAME"] = lib_name
DummyApp::Application.config.root = File.join(gem_root, 'spec', 'dummy')
root = Pathname(gem_root).join('spec/dummy')
root.join("app/assets/config").mkpath
root.join("app/assets/config/manifest.js").write("// Intentionally empty\n")

DummyApp::Application.config.root = root
DummyApp::Application.initialize! unless DummyApp::Application.initialized?

if auto_migrate
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
// This manifest is left empty because we are already
// injecting Solidus manifests to be compiled in the
// precompile array manually.

0 comments on commit 4024df7

Please sign in to comment.