Shopify / themekit

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

Themekit Deploy --files allow expressions #937

Closed Kehza closed 3 years ago

Kehza commented 3 years ago

Within my build process I have a "Sync" Gulp Task which runs the ThemeKit Deploy Command. However, I don't want to sync everything - the clients we work with often switch out assets, e.g. their logo (as Shopify doesn't support SVGs in Sections).

To get around this, we use the --files option, however it doesn't accept expressions on literal paths. As an example: './assets/*.js' is seen as the literal path, and it doesn't seem to try and evaluate it.

tanema commented 3 years ago

Themekit already does this. You can simply use theme deploy /.assets/\*.js you can always find more info on commands by running theme deploy --help