I’ve been looking into using bedrock to manage our site plugins better and make local development a bit easier than having to manually copy a new instance of wp then cloning the theme etc…
However i can’t seem to find any information as to go about setting up a new site repository.
In my head what i feel should be possible is to :
- Clone bedrock
- Clone sage into the theme folder
- Composer install from the repository root
- Make changes to the theme and store both bedrock and sage to one repository for each site built
However following this you have to composer install both in the site bedrock root and inside the site theme root causing you to have 2 vendor directories which feels wrong.
Can anyone shed some light on this ? I tried reading through the https://github.com/roots/roots-example-project.com example however this is using trellis aswell and i have not got any experience with ansible.
This does state
Here’s how this example project was created:
Create a new project directory: $ mkdir example.com && cd example.com
Clone Trellis: $ git clone --depth=1 email@example.com:roots/trellis.git && rm -rf trellis/.git
Clone Bedrock: $ git clone --depth=1 firstname.lastname@example.org:roots/bedrock.git site && rm -rf site/.git
Clone Sage: $ git clone --depth=1 --branch sage-8 email@example.com:roots/sage.git site/web/app/themes/sage && rm -rf site/web/app/themes/sage/.git
So it seems that this workflow is possible, is it a case of having to have ansible to manage the dependencies of the theme aswell as the plugin dependencies of bedrock ?
Any help would be greatly appreciated.