solidus_starter_frontend compatibility with extension dummy apps #4634
benjaminwil
started this conversation in
New Features or Ideas
Replies: 1 comment 6 replies
-
Hi @benjaminwil, thanks for opening this discussion. You're right. It's impossible to generate the dummy application with a frontend other than solidus_frontend. There're two reasons for that:
However, we're still in the process of evaluating and understanding all possible consequences of that. Do you think developing your extension in those terms would be viable? |
Beta Was this translation helpful? Give feedback.
6 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
We are developing a Solidus extension that needs to test the customer-facing storefront of a Solidus application. Right now we do that by installing
solidus_frontend
and using its storefront.But as of Solidus 3.2.0,
solidus_frontend
has been deprecated. We can continue to use it to test our extension, but it seems like at some point this will become inconvenient.We tried to follow the instructions in the
solidus_starter_frontend
README to install it in our extension's dummy app. We even saw the git repo get cloned as it should. Unfortunately, when we inspected the dummy app no views or controllers it provides were present.Reproduction instructions
Prepare a new extension:
Add a install generator task to install
solidus_starter_frontend
.You might not do this in a real extension. But this reproduces the issue: you can't run the generator inside of a dummy app.
If you install using the "For existing stores" instructions,
bin/rails app:template LOCATION="https://github.com/solidusio/solidus_starter_frontend/raw/main/template.rb
you get even weirder errors.Run tests:
Result
The dummy app does not get
solidus_starter_frontend
views:Terminal output
Potential solutions
--user-class
args, we can also provide the option to specify--frontend
. Link to source.extension:specs
default Rake task. Maybe we should also provide aextension:specs:with_frontend
task.Beta Was this translation helpful? Give feedback.
All reactions