MacPaw / local-mirroring-plugin

Composer plugin for monorepo mirroring

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Composer Local Mirroring Plugin

This plugin added functionality for composer to work with PHP monorepo:

  • Added "exclude" config to path repository options, to ignore some files to be copied
  • Added "remove-packages" config to extra for cleaning up before mirroring local dependencies

composer.json example

This config will allow to update all libs of yours company-ns vendor which located in ../../libs/*. Folders vendor and test will not be copied.

{
    "repositories": [
        {
            "type": "path",
            "url": "../../libs/*",
            "options": {
                "symlink": false,
                "exclude": ["vendor", "tests"]
            }
        }
    ],
    "extra": {
        "remove-packages": [
            "company-ns/*"
        ]
    }
}

About

Composer plugin for monorepo mirroring

License:MIT License


Languages

Language:PHP 94.6%Language:JavaScript 5.4%