I was hoping to use bedrock and composer’s create-project to get a new Wordpress instance created with the roots theme already included. The process seems to work smoothly, but the theme isn’t included when I run create-project. Here’s what I have done.
- Created fork of roots/bedrock
- Modified the roots theme for my needs
- Included it in my fork, then checked it in (Verified the theme is included in the repo)
- Used satis to create a local packagist instance
- Ran composer create-project (completed successfully using my local packagist instance)
This is my satis.json used to create my local repo
{
"name": "My Private Repo",
"homepage": "http://packagist.local",
"repositories": [
{ "type": "vcs", "url": "https://github.com/rankhammer/bedrock"}
],
"require": {
"rankhammer/bedrock": "*"
}
}
And I ran this
php composer.phar create-project rankhammer/bedrock rankhammer --repository-url=http://packagist.local
Essentially, web/app/themes/roots is missing after I run the above command, even though it’s in the above git repo. What am I missing? Do I have to install the theme separately? If so, what do I need to do to make the roots theme be included automatically when running create-project on my fork?
For instance, I created a composer.json here
Then I updated my satis and generated a new local repo
{
"name": "My Private Repo",
"homepage": "http://packagist.local",
"repositories": [
{ "type": "vcs", "url": "https://github.com/rankhammer/bedrock"},
{ "type": "vcs", "url": "https://github.com/rankhammer/roots"}
],
"require-all": true
}
The I added my local repo to the bedrock composer, and had it require the forked roots theme.
When I run composer create-project rankhammer/bedrock, Everything works fine, except it doesn’t even try to install the rankhammer/roots. Does everything else though.