2017 © Pedro Peláez
 

composer-plugin composer-preserve-paths

Composer plugin for preserving custom paths and supporting nested packages

image

drustack/composer-preserve-paths

Composer plugin for preserving custom paths and supporting nested packages

  • Saturday, February 18, 2017
  • by hswong3i
  • Repository
  • 3 Watchers
  • 1 Stars
  • 2,349 Installations
  • PHP
  • 2 Dependents
  • 0 Suggesters
  • 14 Forks
  • 0 Open issues
  • 17 Versions
  • 5 % Grown

The README.md

Composer Preserve Paths

Build Status Coverage Status Latest Stable Version Total Downloads License, (*1)

Composer plugin for preserving custom paths and supporting nested packages., (*2)

This way you can:, (*3)

  • 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)

Installation

Simply install the plugin with composer:, (*4)

$ 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., (*5)

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

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

The Versions

18/02 2017

dev-master

9999999-dev

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

18/02 2017

1.0.9

1.0.9.0

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

18/02 2017

dev-develop

dev-develop

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

18/02 2017

1.0.8

1.0.8.0

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/02 2017

1.0.7

1.0.7.0

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/02 2017

1.0.6

1.0.6.0

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/02 2017

1.0.5

1.0.5.0

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

16/02 2017

1.0.4

1.0.4.0

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

04/02 2017

1.0.3

1.0.3.0

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/deminy/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

22/01 2017

1.0.2

1.0.2.0

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

22/01 2017

1.0.1

1.0.1.0

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

22/01 2017

1.0.0

1.0.0.0

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