Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/greg-1-anderson/core-vendor-cleanup
https://www.drupal.org/project/drupal/issues/3057094#comment-13165992
https://github.com/greg-1-anderson/core-vendor-cleanup
Last synced: about 2 months ago
JSON representation
https://www.drupal.org/project/drupal/issues/3057094#comment-13165992
- Host: GitHub
- URL: https://github.com/greg-1-anderson/core-vendor-cleanup
- Owner: greg-1-anderson
- License: gpl-2.0
- Created: 2019-07-01T13:58:08.000Z (over 5 years ago)
- Default Branch: master
- Last Pushed: 2019-07-01T20:52:23.000Z (over 5 years ago)
- Last Synced: 2024-10-12T05:21:50.170Z (3 months ago)
- Language: PHP
- Size: 13.7 KB
- Stars: 0
- Watchers: 0
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.txt
- License: LICENSE.txt
Awesome Lists containing this project
README
From https://www.drupal.org/project/drupal/issues/3057094#comment-13165992 (#32)
The Drupal Vendor Cleanup Composer Plugin
=========================================Thanks for using this Drupal component.
You can participate in its development on Drupal.org, through our issue system:
https://www.drupal.org/project/issues/drupalYou can get the full Drupal repo here:
https://www.drupal.org/project/drupal/git-instructionsYou can browse the full Drupal repo here:
http://cgit.drupalcode.org/drupalWhat does it do?
----------------This Composer plugin removes extraneous directories from the project's vendor
directory. They're typically directories which might contain executable files,
such as test directories.This sort of processing is required for projects that have a vendor directory
inside the HTTP server docroot. This is a common layout for Drupal.By default, the plugin knows how to clean up packages for Drupal core, so you
can require drupal/core-vendor-cleanup in your project and the rest will happen
auto-magically.The plugin can also be configured using the project's composer.json extra field.
How do I set it up?
-------------------Require this Composer plugin into your project:
composer require drupal/core-vendor-cleanup
Then perform a clean install or update:
$ rm -rf vendor/
$ composer installWhen you install or update, this plugin will look through each package and
remove directories it knows about.You can see the list of default package cleanups for this plugin in Config.php.
If you discover that this list needs updating, please file an issue about it:
https://www.drupal.org/project/issues/drupalIn addition to the default list of packages, you can configure the plugin using
the root package's composer.json extra field, like this:"extra": {
"drupal-core-vendor-cleanup": {
"vendor/package": ["test", "documentation"]
}
}The above code will tell the plugin to remove the test/ and documentation/
directories from the 'vendor/package' package when it is installed or updated.