mikenorthorp / gulp-shopify-upload

gulp plugin to watch and upload files to Shopify for use in theme editing
Other
40 stars 21 forks source link

Add support for theme sections #33

Closed gpalin closed 7 years ago

gpalin commented 7 years ago

Shopify has added another directory to the theme structure for "section" template files. The files use the .liquid extension and behave similar to snippets. https://help.shopify.com/themes/development/theme-editor/sections

Currently we get an error when trying to create files in the sections directory. I believe this may be a limitation of the dependency Shopify API module. I would be happy to open the issue there if anyone can confirm.

gpalin commented 7 years ago

Turns out you just need to add "sections" to the shopifywatch task.

return watch('themes/*/+(assets|layout|config|snippets|sections|templates|locales)/**')