2017 © Pedro Peláez
 

composer-plugin preserve-paths

Composer plugin for preserving custom paths and supporting nested packages

image

drupal-composer/preserve-paths

Composer plugin for preserving custom paths and supporting nested packages

  • Thursday, July 20, 2017
  • by derhasi
  • Repository
  • 5 Watchers
  • 18 Stars
  • 66,045 Installations
  • PHP
  • 25 Dependents
  • 0 Suggesters
  • 14 Forks
  • 6 Open issues
  • 6 Versions
  • 35 % Grown

The README.md

Composer preserve paths

Composer plugin for preserving paths while installing, updating or uninstalling packages., (*1)

This way you can:, (*2)

  • provide custom files or directories that will not be overwritten on composer install or composer 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, (*3)

Configuration

For configuring the paths you need to set preserve-paths within the extra of your root composer.json., (*4)

{
    "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:, (*5)

{
  "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"
    ]
  }
}

The Versions

20/07 2017

dev-master

9999999-dev https://github.com/drupal-composer/preserve-paths

Composer plugin for preserving custom paths and supporting nested packages

  Sources   Download

GPL-2.0+

The Requires

  • composer-plugin-api ^1.0

 

The Development Requires

installer composer-plugin custom path nested package

03/02 2017

0.1.4

0.1.4.0 https://github.com/derhasi/composer-preserve-paths

Composer plugin for preserving custom paths and supporting nested packages

  Sources   Download

GPL-2.0+

The Requires

  • composer-plugin-api ^1.0

 

The Development Requires

installer composer-plugin custom path nested package

20/10 2015

0.1.3

0.1.3.0 https://github.com/derhasi/composer-preserve-paths

Composer plugin for preserving custom paths and supporting nested packages

  Sources   Download

GPL-2.0+

The Requires

  • composer-plugin-api ^1.0

 

The Development Requires

installer composer-plugin custom path nested package

17/06 2015

0.1.2

0.1.2.0 https://github.com/derhasi/composer-preserve-paths

Composer plugin for preserving custom paths and supporting nested packages

  Sources   Download

GPL-2.0+

The Requires

  • composer-plugin-api ^1.0

 

The Development Requires

installer composer-plugin custom path nested package

07/01 2015

0.1.1

0.1.1.0 https://github.com/derhasi/composer-preserve-paths

Composer plugin for preserving custom paths and supporting nested packages

  Sources   Download

GPL-2.0+

The Requires

  • composer-plugin-api 1.0.0

 

The Development Requires

installer composer-plugin custom path nested package

27/12 2014

0.1.0

0.1.0.0 https://github.com/derhasi/composer-preserve-paths

Composer plugin for preserving custom paths and supporting nested packages

  Sources   Download

GPL-2.0+

The Requires

  • composer-plugin-api 1.0.0

 

installer composer-plugin custom path nested package