admin管理员组文章数量:1391964
I'm using SatisPress () to expose some premium plugins and themes as composer packages, because I would like to use the roots/bedrock boilerplate.
Now I have the following issue: The Divi theme (/) uses a capital letter for the themes directory ("Divi" not "divi"). Now when I use
composer require satispress/divi
it downloads the package and installs it to the correct directory and the theme is showing and is usable.
However the themes directory is now all lower case ("divi" not "Divi") which breaks child themes based on Divi.
What I found:
- Behaviour occurs on bedrock as well as in an empty directory
- The packages zip files created by SatisPress have the correct case in the zips name and in the contained files as well
While it should be possible to just change the child themes template entry to lower case, this could be problematic when (for whatever reason) the main theme would be installed the "normal" way, now containing upper case again and break the site.
So: Is there a way to change the behaviour of either SatisPress or composer to allow for upper case letters in directory names?
I'm using SatisPress (https://github/cedaro/satispress) to expose some premium plugins and themes as composer packages, because I would like to use the roots/bedrock boilerplate.
Now I have the following issue: The Divi theme (https://www.elegantthemes/gallery/divi/) uses a capital letter for the themes directory ("Divi" not "divi"). Now when I use
composer require satispress/divi
it downloads the package and installs it to the correct directory and the theme is showing and is usable.
However the themes directory is now all lower case ("divi" not "Divi") which breaks child themes based on Divi.
What I found:
- Behaviour occurs on bedrock as well as in an empty directory
- The packages zip files created by SatisPress have the correct case in the zips name and in the contained files as well
While it should be possible to just change the child themes template entry to lower case, this could be problematic when (for whatever reason) the main theme would be installed the "normal" way, now containing upper case again and break the site.
So: Is there a way to change the behaviour of either SatisPress or composer to allow for upper case letters in directory names?
Share Improve this question edited Mar 28, 2020 at 11:13 norman.lol 3,2313 gold badges30 silver badges35 bronze badges asked Mar 28, 2020 at 9:35 Daniel BachmannDaniel Bachmann 334 bronze badges1 Answer
Reset to default 0That would be a task for oomphinc/composer-installers-extender
. With that you can specify the directory where a package should be installed to. And it's case-sensitive. Composer otherwise is case-insensitive.
{
"extra": {
"installer-paths": {
"my/themes/Divi/": ["satispress/divi"],
}
}
}
本文标签: How can I have casesensitive theme directory names when installed with Composer
版权声明:本文标题:How can I have case-sensitive theme directory names when installed with Composer? 内容由网友自发贡献,该文观点仅代表作者本人, 转载请联系作者并注明出处:http://www.betaflare.com/web/1744626488a2616288.html, 本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌抄袭侵权/违法违规的内容,一经查实,本站将立刻删除。
发表评论