Skip to content

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.

License

Notifications You must be signed in to change notification settings

ruuds/composer-remove-paths

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

9 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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.

Installation

Simply install the plugin with composer: composer require ruuds/composer-remove-paths

Configuration

For configuring the paths you need to set remove-paths within the extra of your root composer.json.

{
    "extra": {
        "remove-paths": [
          "htdocs/robots.txt",
          "htdocs/directory-to-remove"
        ]
      }
}

About

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.

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages