2017 © Pedro Peláez
 

composer-plugin composer-rm-plugin

Removes vendor files/directories on install/update

image

full/composer-rm-plugin

Removes vendor files/directories on install/update

  • Friday, August 18, 2017
  • by CarsonF
  • Repository
  • 1 Watchers
  • 1 Stars
  • 11 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 0 Forks
  • 0 Open issues
  • 2 Versions
  • 0 % Grown

The README.md

Composer Rm Plugin

This Composer plugin removes vendor files/directories on install/update., (*1)

This is useful when packages add "cruft" that you do not need. My use case is Intellij picks up these files when I'm inspecting, searching, etc. Specifically says there are duplicate class definitions, very annoying. With this plugin, I just add those annoying paths to my global composer config file and they are removed after every install/update for all of my local projects, beautiful!, (*2)

Installation

Require it:, (*3)

$ composer global require full/composer-rm-plugin

Open your global composer config, which can be found here:, (*4)

$ echo $(composer config --global data-dir)/config.json

Or just to open it in your default editor:, (*5)

$ composer config --global --editor

Then add your paths to remove (paths are relative to vendor directory):, (*6)

{
    "config": {
        "rm-paths": [
            "phpunit/phpunit/build",
            "twig/twig/test/bootstrap.php"
        ]
    }
}

Paths do not have to exist, so if PHPUnit or Twig are not installed then they are just skipped., (*7)

The Versions

18/08 2017

dev-master

9999999-dev

Removes vendor files/directories on install/update

  Sources   Download

MIT

The Requires

  • composer-plugin-api ^1.1

 

The Development Requires

18/08 2017

v1.0.0

1.0.0.0

Removes vendor files/directories on install/update

  Sources   Download

MIT

The Requires

  • composer-plugin-api ^1.1

 

The Development Requires