composer-plugin composer-remove-paths
Composer plugin for removing files after install or update
ruuds/composer-remove-paths
Composer plugin for removing files after install or update
- Tuesday, November 24, 2015
- by ruuds
- Repository
- 1 Watchers
- 0 Stars
- 1,310 Installations
- PHP
- 0 Dependents
- 0 Suggesters
- 0 Forks
- 0 Open issues
- 1 Versions
- 4 % Grown
Composer remove paths
This Composer plugin allows you to remove paths (files and/or directories) while
installing or updating packages, so you can remove unwanted files from your
project, eg. before deploying to production., (*1)
Installation
Simply install the plugin with composer: composer require ruuds/composer-remove-paths
, (*2)
Configuration
For configuring the paths you need to set remove-paths
within the extra
of your root composer.json
., (*3)
{
"extra": {
"remove-paths": [
"htdocs/robots.txt",
"htdocs/directory-to-remove"
]
}
}