cli icon indicating copy to clipboard operation
cli copied to clipboard

[Feature]: Ability to upload theme extensions from a `/dist` folder

Open NexPB opened this issue 3 years ago • 23 comments

What area(s) will this request affect?

Extension, Deployment

What type of change do you want to see?

Substantial change to existing feature

Overview

A way to deploy a theme extensions (or other extensions) from a specific folder that is generated after a build command has been executed.

Motivation

This is easily achiveable with CLI 2.x using a custom command e.g. npm run build (which generates a folder named /dist) and then running a command like cd dist and shopify extension push.

This allows us to use rollup or equivalent before the extension is pushed.

NexPB avatar Dec 06 '22 04:12 NexPB

Hi @NexPB, thank you for opening this issue. @Shopify/theme-developer-tools would this be something for you?

matteodepalo avatar Dec 06 '22 13:12 matteodepalo

@matteodepalo ~~afaik @Shopify/theme-developer-tools seems to be for themes in general this is for an existing app where I want to publish theme extensions, I was trying to migrate to Shopify CLI 3.x from 2.x~~

@Shopify/theme-developer-tools I cannot find this package anywhere?

Just to make sure I'm wanting to push a theme extensions for an app e.g.: app blocks and app embeds, not a theme for a shop.

NexPB avatar Dec 06 '22 23:12 NexPB

👋 Hi @matteodepalo,

I don't think that @Shopify/theme-developer-tools has so much context on that.

My understanding is that this issue is a proposal to support a different directory structure in a app. Thus, the app deploy command (which is the new command that replaces shopify extension push) would support deploying an extension from a /dist directory. Is that correct, @NexPB?

karreiro avatar Dec 07 '22 09:12 karreiro

@karreiro yes that is correct.

NexPB avatar Dec 08 '22 01:12 NexPB

As explained here, when running deploy, the CLI is building the extensions in a temporary directory.

So to achieve this, I guess we could add a new optional field to the shopify.*.extension.toml files like deploy_directory = "dist" to use that content when present instead of building.

cc: @stephszeto

gonzaloriestra avatar Dec 21 '22 10:12 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.

github-actions[bot] avatar Jan 12 '23 03:01 github-actions[bot]

Relevant

NexPB avatar Jan 12 '23 23:01 NexPB

So to achieve this, I guess we could add a new optional field to the shopify.*.extension.toml files like deploy_directory = "dist" to use that content when present instead of building

This makes sense to me - will see where we can slot this into our roadmap! Thanks for raising!

stephszeto avatar Jan 18 '23 20:01 stephszeto

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.

github-actions[bot] avatar Feb 09 '23 03:02 github-actions[bot]

still relevant

amcaplan avatar Mar 09 '23 19:03 amcaplan

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 Mar 31 '23 03:03 github-actions[bot]

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 Apr 22 '23 03:04 github-actions[bot]

Please don't close!

amcaplan avatar Apr 23 '23 10:04 amcaplan

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 May 16 '23 03:05 github-actions[bot]

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 Jun 07 '23 03:06 github-actions[bot]

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 Jun 29 '23 03:06 github-actions[bot]

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 Jul 21 '23 03:07 github-actions[bot]

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 16 '23 03:08 github-actions[bot]

Today we could not publish a theme-extension release for one of our apps (since the admin dashboard flow does not detect the latest changes when we make a release), some help would be appreciated.

This app still relies on the old shopfy cli 2.0 flow which easily supported this flow... some urgency would be appreciated :')

NexPB avatar Oct 12 '23 01:10 NexPB

@github-actions github-actions bot closed this as completed on Aug 22, 2023

How did this get completed?

pauldraper avatar Jan 23 '24 09:01 pauldraper

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 Mar 26 '24 03:03 github-actions[bot]

Hasn't been completed yet :/

NexPB avatar Apr 03 '24 06:04 NexPB

Well it keeps being marked completed.....

pauldraper avatar Apr 09 '24 22:04 pauldraper

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 May 23 '24 03:05 github-actions[bot]

Still relevant.

pauldraper avatar Jun 03 '24 00:06 pauldraper

@pauldraper is your purpose here to publish/deploy just one extension rather than several? If so - we are in the same boat. Would like to see that functionality.

c-e-daly avatar Jun 12 '24 18:06 c-e-daly

No, that's not my purpose.

My purpose is running TS/rollup/webpack on scripts

pauldraper avatar Jun 12 '24 18:06 pauldraper

Please re-open.

NexPB avatar Jul 11 '24 05:07 NexPB