【发布时间】:2016-06-10 06:14:16
【问题描述】:
如何将 git repo 放置到自定义路径?我正在使用作曲家/安装程序。我在 git repo 上开发了一个模块。我想将它添加到 composer.json 但在拉取它之后应该放置 web/modules/custom 目录。我该怎么做。
我在 composer.json 中添加了这些部分
"repositories": [
{
"type": "vcs",
"url": "https://github.com/miteshmap/axelerant_custom"
}
],
"require": {
"miteshmap/axelerant_custom": "*"
},
"extra": {
"installer-paths": {
"web/core": ["type:drupal-core"],
"web/modules/contrib/{$name}": ["type:drupal-module"],
"web/modules/custom/{$name}": ["type:drupal-module"],
"web/profiles/contrib/{$name}": ["type:drupal-profile"],
"web/themes/contrib/{$name}": ["type:drupal-theme"],
"drush/contrib/{$name}": ["type:drupal-drush"]
}
}
【问题讨论】:
标签: php drupal composer-php