3
使用Composer從VCS存儲庫加載包時,是否可以指定將內容安裝到哪個文件夾(類似於git clone <directory>
)?Composer VCS不同的目錄名稱
例如回購是:
https://github.com/organization/plugin_name.git
並由此作曲文件讀取:
"repositories": [
{
"type": "vcs",
"url": "https://github.com/organization/plugin_name.git"
}]
"require": {
"organization/plugin_name": "dev-master",
}
而我想要的內容是這個目錄是不是「PLUGIN_NAME」,但像「organization_plugin-標題」。
我有幾個在我的WordPress MU設置中有一個名稱但文件夾名稱不同的回購(自定義WP插件),我真的很想在更新我的作曲者後不必在管理員中手動啓用每個回收站文件。