I’m pretty new to Sage and it’s been awhile since I’ve done any WP development, so please bear with me. Does anyone have a resource for best setting up Sage so that I can easily keep my project up-to-date with Sage 9’s development? It seems like configuring Sage as a parent/child would suit my needs, but I’m not sure.
Here’s what I’m thinking:
Configure Trellis as usual
Set up Bedrock as usual
Clone (or fork?) Sage into project as parent theme
Clone (or fork?) Sage into project as child theme
Maintain and update Trellis/Bedrock/Sage via Git (or Composer?)
In this setup, would I be using Git submodules? Would composer update be better for keeping Sage in sync with master?
Sage isn’t set up to be a parent/child theme, it’s a starter theme you build from. I do agree that with Sage 9 especially being in active development, you will want to keep it updated. I would suggest adding the Sage repo as another git repo on your project, and then you can cherry pick commits from it. Something like this: https://gist.github.com/kalenjohnson/9ed257d8afb81e571a4b
Obviously you replace the sage name with your theme name, and you also update the commit checksum with the commit you want to add.
Then continue cherry picking commits in order from when you cloned to the latest commit until you’re up to date. And you can generally skip the merge commits as those are blank commits.