Hello,
I am quite a beginner, so sorry if the question is quite basic. I developed a first release of a wp theme locally with ROOTS and now I would like to integrate my workflow with Composer .
I am trying to have as result one git repo with the minimal amount of files:
- my teme files already set in the proper directory: wp/wp-content/themes/
- the composer installer in charge of installing wordpress and the required plugins
I am having problems figuring out how to properly set the project structure. I have been able to set and execute composer, it downloads wordpress and the plugins needed but at the same time it overwrites the theme directory, installing the default wp themes and deleting my custom theme.
So my question is basically how to get around this?
Is there a way to avoid composer overwriting the custom theme? Or how I could organize my project?
I have some ideas, like for example using two repos, one containing only the custom theme and another that I could use just to call composer and put all together (still not tried this and I don’t know it would be a good solution).
What is the best practice?
Thanks in advance,
Fabio