cli icon indicating copy to clipboard operation
cli copied to clipboard

[Feature]: allows configs in sub-directories

Open zirkelc opened this issue 1 year ago • 4 comments

What area(s) will this request affect?

App, Deployment

What type of change do you want to see?

New feature

Overview

Allow to specific the config by path for apps with multiple configs:

# uses shopify.app.test.toml
shopify app deploy --config test

# uses ./config/shopify.app.test.toml
shopify app deploy --config ./config/shopify.app.test.toml

Motivation

I have an app with multiple different configs for custom apps to test new features. Currently, all configs must be in the app directory and are identified by their config name in shopify.app.<config-name>.toml

/my-shopify-app
├── /app
│   ├── root.tsx
├── package.json
├── tsconfig.json
├── shopify.app.<config-name>.toml

I would like to move all configs into a sub-directory like /config or even /config/dev/

/my-shopify-app
├── /app
│   ├── root.tsx
├── /config
│   ├── shopify.app.<config-name>.toml
│   ├── /test
│   │   ├── shopify.app.<config-name>.toml
├── package.json
├── tsconfig.json

zirkelc avatar Jun 10 '24 13:06 zirkelc

Thanks for the suggestion! It makes sense to me and the implementation shouldn't be complex.

@nickwesselman what do you think?

gonzaloriestra avatar Jul 03 '24 12:07 gonzaloriestra

This issue seems inactive. If it's still relevant, please add a comment saying so. Otherwise, take no action. → If there's no activity within a week, then a bot will automatically close this. Thanks for helping to improve Shopify's dev tooling and experience.

P.S. You can learn more about why we stale issues here.

github-actions[bot] avatar Aug 15 '24 03:08 github-actions[bot]

Hi @gonzaloriestra

did you have a chance to look at this? I could work on a small PR to implement this feature, if your team agrees on implementing this in general.

zirkelc avatar Aug 15 '24 07:08 zirkelc

Hi @zirkelc -- This sounds reasonable, we'd accept a PR for this one!

nickwesselman avatar Sep 24 '24 20:09 nickwesselman

This issue seems inactive. If it's still relevant, please add a comment saying so. Otherwise, take no action. → If there's no activity within a week, then a bot will automatically close this. Thanks for helping to improve Shopify's dev tooling and experience.

P.S. You can learn more about why we stale issues here.

github-actions[bot] avatar Nov 06 '24 03:11 github-actions[bot]