Skip to content

Commit c1aeff2

Browse files
committed
Add support for the extracted frontend gem in the generated Gemfile
Since Solidus v3.2 the frontend gem is in its own repo.
1 parent e5fec9c commit c1aeff2

1 file changed

Lines changed: 4 additions & 0 deletions

File tree

  • lib/solidus_dev_support/templates/extension

lib/solidus_dev_support/templates/extension/Gemfile

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,10 @@ git_source(:github) { |repo| "https://github.com/#{repo}.git" }
66
branch = ENV.fetch('SOLIDUS_BRANCH', 'master')
77
gem 'solidus', github: 'solidusio/solidus', branch: branch
88

9+
# The solidus_frontend gem has been pulled out since v3.2
10+
gem 'solidus_frontend', github: 'solidusio/solidus_frontend' if branch == 'master'
11+
gem 'solidus_frontend' if branch >= 'v3.2' # rubocop:disable Bundler/DuplicatedGem
12+
913
# Needed to help Bundler figure out how to resolve dependencies,
1014
# otherwise it takes forever to resolve them.
1115
# See https://github.com/bundler/bundler/issues/6677

0 commit comments

Comments
 (0)