File tree 1 file changed +7
-3
lines changed
spec/test_app_templates/lib/generators
1 file changed +7
-3
lines changed Original file line number Diff line number Diff line change @@ -13,9 +13,13 @@ def run_bl7_jsbundling_fixup
13
13
end
14
14
15
15
def run_bl8_jsbundling_fixup
16
- # while it's named confusingly, the BL8 assets:propshaft generator has what we need
17
- # for jsbundling, I think.
18
- if File . exist? ( "package.json" ) && Blacklight ::VERSION . split ( "." ) . first == "8"
16
+ # BL 8.7.0 doesn't seem to need anything, but BL8 before that the automatic BL
17
+ # install process doesn't do everything we need.
18
+ #
19
+ # By manually triggering the BL8 assets:propshaft generator, we can get what we need
20
+ # for jsbundling, even though it's named confusingly for that, it works in these
21
+ # versions.
22
+ if File . exist? ( "package.json" ) && Gem ::Requirement . create ( "~> 8.0" , "< 8.7.0" ) . satisfied_by? ( Gem ::Version . new ( Blacklight ::VERSION ) )
19
23
generate "blacklight:assets:propshaft"
20
24
end
21
25
end
You can’t perform that action at this time.
0 commit comments