Download the PHP package drustack/composer-preserve-paths without Composer
On this page you can find all versions of the php package drustack/composer-preserve-paths. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Table of contents
Download drustack/composer-preserve-paths
More information about drustack/composer-preserve-paths
Files in drustack/composer-preserve-paths
Download drustack/composer-preserve-paths
More information about drustack/composer-preserve-paths
Files in drustack/composer-preserve-paths
Vendor drustack
Package composer-preserve-paths
Short Description Composer plugin for preserving custom paths and supporting nested packages
License GPL-2.0+
Package composer-preserve-paths
Short Description Composer plugin for preserving custom paths and supporting nested packages
License GPL-2.0+
Please rate this library. Is it a good library?
Informations about the package composer-preserve-paths
Composer Preserve Paths
Composer plugin for preserving custom paths and supporting nested packages.
This way you can:
- Provide custom files or directories that will not be overwritten on
composer install
orcomposer update
- Place packages within the directory of another package (using a composer installer like composer/installers)
Installation
Simply install the plugin with composer:
$ composer require drustack/composer-preserve-paths:~1.0
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",
"web/sites/default/settings.php",
"web/sites/default/files"
]
}
}
Example
An example composer.json using composer/installers:
{
"config": {
"vendor-dir": "vendor"
},
"extra": {
"installer-paths": {
"web/": [
"type:drupal-core"
],
"web/profiles/{$name}/": [
"type:drupal-profile"
],
"web/sites/all/drush/{$name}/": [
"type:drupal-drush"
],
"web/sites/all/libraries/{$name}/": [
"type:drupal-library"
],
"web/sites/all/modules/contrib/{$name}/": [
"type:drupal-module"
],
"web/sites/all/modules/custom/{$name}/": [
"type:drupal-custom-module"
],
"web/sites/all/themes/contrib/{$name}/": [
"type:drupal-theme"
],
"web/sites/all/themes/custom/{$name}/": [
"type:drupal-custom-theme"
]
},
"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"
]
},
"repositories": [
{
"type": "composer",
"url": "https://packages.drupal.org/7"
}
],
"require": {
"composer/installers": "~1.0",
"drupal/drupal": "~7.54",
"drupal/views": "3.x-dev",
"drustack/composer-preserve-paths": "~1.0"
}
}
License
Author Information
- Wong Hoi Sing Edison
All versions of composer-preserve-paths with dependencies
PHP Build Version
Package Version
Requires
composer-plugin-api Version
~1.0
The package drustack/composer-preserve-paths contains the following files
Loading the files please wait ....