2017 © Pedro Peláez
 

composer-plugin composer-patches-dev

Apply patches to packages while Composer is in dev mode

image

nathandentzau/composer-patches-dev

Apply patches to packages while Composer is in dev mode

  • Saturday, March 17, 2018
  • by nathandentzau
  • Repository
  • 2 Watchers
  • 1 Stars
  • 67 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 0 Forks
  • 0 Open issues
  • 2 Versions
  • 2 % Grown

The README.md

Composer Patches Dev

Build Status Coverage Status, (*1)

This composer plugin extends the cweagans/composer-patches plugin to allow patches to be applied to packages when composer is in dev mode (without --no-dev passed composer install or composer update). This is useful to patch certain packages locally and not in a production environment., (*2)

Installation

$ composer require nathandentzau/composer-patches-dev

Usage

Add a patches-dev definition to either the extras array in composer.json or in a specified external patch file., (*3)

Applying patches defined in patches-dev

Run composer install or update without the --no-dev flag., (*4)

$ composer install

or, (*5)

$ composer update

Prevent applying patches defined in patches-dev

Run composer install or update with the --no-dev flag., (*6)

$ composer install --no-dev

or, (*7)

$ composer update --no-dev

Example: composer.json

{
    "name": "nathandentzau/composer-patches-dev-test",
    "description": "A test project for nathandentzau/composer-patches-dev",
    "type": "project",
    "license": "MIT",
    "authors": [
        {
            "name": "Nathan Dentzau",
            "email": "nathan.dentzau@gmail.com"
        }
    ],
    "require": {
        "drupal/core": "8.5.0"
    },
    "require-dev": {
        "nathandentzau/composer-patches-dev": "^1.0"
    },
    "extra": {
        "patches-dev": {
            "drupal/core": {
                "Suppress filesystem errors with BindFS in Drupal core": "https://gist.githubusercontent.com/nathandentzau/355f3476b13cab38294ebc0207cedac0/raw/25c312a2814a7d62c812796c91099a091972b37c/suppress-filesystem-errors-with-bindfs-in-drupal-core.patch"
            }
        }
    }
}

Error handling

Please refer to the error handling documentation for cweagans/composer-patches., (*8)

Why is this a seperate plugin?

The cweagans/composer-patches plugin is on a feature freeze for its current stable version. The next version is actively being worked on by its maintainer. This feature will be merged into version 2.x of composer-patches when the time is right. After that this package will be discontinued., (*9)

The Versions

17/03 2018

dev-master

9999999-dev

Apply patches to packages while Composer is in dev mode

  Sources   Download

MIT

The Requires

 

The Development Requires

by Nathan Dentzau

16/03 2018

1.0.0

1.0.0.0

Apply patches to packages while Composer is in dev mode

  Sources   Download

MIT

The Requires

 

The Development Requires

by Nathan Dentzau