2017 © Pedro Pelรกez
 

composer-plugin composer-ignore-plugin

ignore files by yourself

image

light/composer-ignore-plugin

ignore files by yourself

  • Thursday, November 17, 2016
  • by light
  • Repository
  • 2 Watchers
  • 5 Stars
  • 1,153 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 0 Forks
  • 0 Open issues
  • 3 Versions
  • 2 % Grown

The README.md

Composer Ignore Plugin version Download

This plugin help us to remove the unused file or directories in vendor., (*1)

Installation

Both global or local install can work well., (*2)

1.Install globally, so every project can use the plugin., (*3)

$ composer global require "light/composer-ignore-plugin:~2.0"

2.Install locally, (*4)

$ composer require "light/composer-ignore-plugin:~2.0" --dev

Usage

Define the ignore file or directory in composer.json, for example:, (*5)

Before:, (*6)

fzaninotto/faker/
โ”œโ”€โ”€ CHANGELOG.md
โ”œโ”€โ”€ composer.json
โ”œโ”€โ”€ CONTRIBUTING.md
โ”œโ”€โ”€ LICENSE
โ”œโ”€โ”€ Makefile
โ”œโ”€โ”€ phpunit.xml.dist
โ”œโ”€โ”€ readme.md
โ”œโ”€โ”€ src
โ””โ”€โ”€ test

Configuration in composer.json:, (*7)

{
    "extra": {
        "light-ignore-plugin": {
          "fzaninotto/faker": [
            "test", 
            "*.md", 
            "LICENSE",
            "Makefile",
            "phpunit.xml.dist"
          ]
        }
    }
}

After executed composer install, composer update, composer dump-autoload, The files will be removed., (*8)

When execute the composer install or composer update will finally trigger the autoload dump event, (*9)

After:, (*10)

fzaninotto/faker/
โ”œโ”€โ”€ composer.json
โ””โ”€โ”€ src

Why this?

Thanks to open source, there are many useful packages helped us., (*11)

Generally, some files or folder in the installed package is useless, and when deploy to production system, reduce the files can make deploy clean., (*12)

Of cause, a lot of package had done this by add .gitattributes file, But also not all, fzaninotto/faker for example., (*13)

LICENSE

MIT, (*14)

The Versions

17/11 2016

dev-master

9999999-dev

ignore files by yourself

  Sources   Download

MIT

The Requires

 

The Development Requires

by lichunqiang

plugin composer delete remove ignore remove file .gitattributes ignore file delete file

14/11 2016

1.0.1

1.0.1.0

ignore files by yourself

  Sources   Download

MIT

The Requires

 

The Development Requires

by lichunqiang

plugin composer delete remove ignore remove file .gitattributes ignore file delete file

14/11 2016

1.0.0

1.0.0.0

ignore files by yourself

  Sources   Download

MIT

The Requires

 

The Development Requires

by lichunqiang

plugin composer delete remove ignore remove file .gitattributes ignore file delete file