drupal-composer/preserve-paths
最新稳定版本:0.1.6
Composer 安装命令:
composer require drupal-composer/preserve-paths
包简介
Composer plugin for preserving custom paths and supporting nested packages
README 文档
README
Composer plugin for preserving paths while installing, updating or uninstalling packages.
This way you can:
- provide custom files or directories that will not be overwritten on
composer installorcomposer update - place packages within the directory of another package (using a composer installer like composer/installers or davidbarratt/custom-installer)
Installation
Simply install the plugin with composer: composer require drupal-composer/preserve-paths
Configuration
For configuring the paths you need to set preserve-paths within the extra of your root composer.json.
{
"extra": {
"preserve-paths": [
"web/sites/all/modules/contrib",
"web/sites/all/themes/contrib",
"web/sites/all/libraries",
"web/sites/all/drush"
]
}
}
Example
An example composer.json using composer/installers:
{
"repositories": [
{
"type": "composer",
"url": "https://packages.drupal.org/7"
}
],
"require": {
"composer/installers": "^1.2",
"drupal-composer/preserve-paths": "0.1.*",
"drupal/views": "3.*",
"drupal/drupal": "7.*"
},
"config": {
"vendor-dir": "vendor"
},
"extra": {
"installer-paths": {
"web/": ["type:drupal-core"],
"web/sites/all/modules/contrib/{$name}/": ["type:drupal-module"],
"web/sites/all/themes/contrib/{$name}/": ["type:drupal-theme"],
"web/sites/all/libraries/{$name}/": ["type:drupal-library"],
"web/sites/all/drush/{$name}/": ["type:drupal-drush"],
"web/profiles/{$name}/": ["type:drupal-profile"]
},
"preserve-paths": [
"web/sites/all/modules/contrib",
"web/sites/all/themes/contrib",
"web/sites/all/libraries",
"web/sites/all/drush",
"web/sites/default/settings.php",
"web/sites/default/files"
]
}
}
统计信息
- 总下载量: 1.1M
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 27
- 点击次数: 1
- 依赖项目数: 9
- 推荐数: 0
其他信息
- 授权协议: GPL-2.0-or-later
- 更新时间: 2017-07-16