Skip to content

Commit d921914

Browse files
committed
Add spree.js to alchemy_solidus.js bundle
We need `Spree.mountedAt` in the product select, and with the move to importmaps we've lost the ability to add stuff successfully to `vendor/assets/alchemy/admin/all.js`. This does the same thing, just a little bit hacky.
1 parent 42a3b6d commit d921914

4 files changed

Lines changed: 2 additions & 6 deletions

File tree

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1 +1,2 @@
11
//= link_tree ../../../javascript .js
2+
//= link spree.js

app/assets/javascripts/alchemy/solidus/admin.js

Lines changed: 0 additions & 1 deletion
This file was deleted.

app/javascript/alchemy_solidus.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
import "spree"
12
import "alchemy_solidus/components/product_select"
23
import "alchemy_solidus/components/taxon_select"
34
import "alchemy_solidus/components/variant_select"

lib/generators/alchemy/solidus/install/install_generator.rb

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -149,11 +149,6 @@ def set_root_route
149149
end
150150
end
151151

152-
def append_assets
153-
append_file "vendor/assets/javascripts/alchemy/admin/all.js",
154-
"//= require alchemy/solidus/admin.js"
155-
end
156-
157152
private
158153

159154
def alchemy_devise_present?

0 commit comments

Comments
 (0)