-
Notifications
You must be signed in to change notification settings - Fork 40
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Adapting app to run on CLI 3 #1
Conversation
Dumping a few things will be pending once this is merged (most are pretty small):
|
Shouldn't we have |
I think there's an argument for both cases here. All of the changes I made were to take the app generated by Since the gem can be used to generate any app (including Shopify ones), I'm not sure we want the gem itself to produce something that uses the react app / CLI 3 structure by default - that would mean:
If we assume re-generating would be out of the question, we'd still be left with a scenario where shopify_app would be in charge of updating the FE app, which I'm not sure is a problem or not - would people ever want to update their FE only? |
I think the generator would only be used to update this repo whenever changes are made to the rails structure. if we're fine to manually update these files on this repo every time there's a new rails version then I'm good with this approach.
we need to make sure that we continue to position this as a starter template and not a framework that gets regular updates. the role of the template completes for the user after it has been scaffolded so with that in mind, is it better to keep this information inside of |
This takes the previous CLI 2 instance of a rails app and adapts it to CLI 3.
To 🎩:
yarn create @shopify/app --template https://github.com/Shopify/shopify-app-template-ruby#run_on_cli_3
dev clone shopify_app
(ordev cd
)git checkout allow_custom_oauth_routes
pwd
web/Gemfile
, add, path: '<result from above>'
to the line forshopify_app
cd web
bundle
bin/rails db:migrate
cd ..
yarn dev
Steps 2-5 will not be necessary once we publish a new version of
shopify_app
with Shopify/shopify_app#1445