Shopify / themekit

Shopify theme development command line tool.
https://shopify.dev/tools/theme-kit
MIT License
1.17k stars 369 forks source link

Any way to prioritise sections over templates when deploying? #969

Open ConduciveMammal opened 2 years ago

ConduciveMammal commented 2 years ago

Is your feature request related to a problem? Please describe. So currently, with OS2.0 themes, when I attempt a full theme deploy to a store, the process crashes because the JSON templates are being pushed before their corresponding sections. The sections do, in fact, exist. ThemeKit just hasn't gotten around to deploying them yet.

Describe the solution you'd like Some sort of method that pushes the section files before pushing the templates.

Describe alternatives you've considered The only option I've found is running my Gulp watcher to manually push sections to the store and then run the deploy.

Additional context

image
jeffreyguenther commented 2 years ago

I can confirm I have experienced this issue as well. The issue is ThemeKit considers all files equally when uploading. The latest version of the Shopify CLI does not. It prioritizes Liquid files before settings in the push command.

Depending on your use case, you might find it easier to the use the Shopify CLI.