Git integration subtree

devenini
New Member
2 0 5

With the Online Store 2.0 stuff, are you guys using the whole git subtree method mentioned in the shopify/git docs (https://shopify.dev/themes/best-practices/version-control) ? I've been putting src/ folder in my theme and it's working fine, but they don't mention that as a viable option in the docs.

0 Likes
luistmartins
Tourist
7 0 1

I've just tested this approach and it does work. I think the reason they don't list it as a viable option is because you can't plug a Github action directly to the main repo, and you have to keep the contents of the assets folder under version control for them to be deployed.  For the former that means you need to run your build commands locally. As for the latter, having assets part of the repo would be a requirement anyway, so it appears to be a viable workflow to me too.

0 Likes
mojosef
New Member
3 0 0

Have either of you managed to go down the subtree route yet? I too have a src folder in my root and everything seems to be working ( anything outside of Shopify's theme structure is ignored ). I can't seem to get my head around splitting the production code out.

0 Likes