Download the PHP package deminy/composer-preserve-paths without Composer
On this page you can find all versions of the php package deminy/composer-preserve-paths. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download deminy/composer-preserve-paths
More information about deminy/composer-preserve-paths
Files in deminy/composer-preserve-paths
Package composer-preserve-paths
Short Description Composer plugin for preserving custom paths and supporting nested packages
License GPL-2.0+
Homepage https://github.com/deminy/composer-preserve-paths
Informations about the package composer-preserve-paths
Composer preserve paths
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 install
orcomposer update
- place packages within the directory of another package (using a composer installer like composer/installers or davidbarratt/custom-installer)
This plugin was originally developed by Johannes Haseitl. I updated it to allow wildcard pattern matching when defining preserved paths, which is necessary if you have many sites installed with same Drupal installation (i.e., you have many directories like example.com, example.net, example.org, etc under folder sites/ of your Drupal installation).
Installation
Simply install the plugin with composer: composer require deminy/composer-preserve-paths
Configuration
For configuring the paths you need to set preserve-paths
within the extra
of your root composer.json
.
Example
An example composer.json using davidbarratt/custom-installer: