Roots as a Submodule

I found a few threads regarding submodules but only as errors.

Using Bedrock would anyone recommend adding Roots as a submodule so the two projects can be tracked separately?

My typical workflow is to use Bedrock and Roots but track everything within the Bedrock git repo. I could see the benefit of both options but wanted a second opinion.


Your separate repo for the theme can just have a composer.json file, then use Composer in your Bedrock repo to pull the theme in. Since Bedrock uses Composer you wouldn’t want to use a git submodule to do this.

I also think that the ideal repo would contain Bedrock, bedrock-ansible (in a subfolder), and a Roots based theme all in one place.

1 Like

Great, thanks for the reply.