composer-plugin composer-local-source-repository
Composer plugin that adds support for having custom packages installed to their source directory.
isaactorresmichel/composer-local-source-repository
Composer plugin that adds support for having custom packages installed to their source directory.
- Monday, March 27, 2017
- by isaactorresmichel
- Repository
- 1 Watchers
- 0 Stars
- 297 Installations
- PHP
- 0 Dependents
- 0 Suggesters
- 0 Forks
- 0 Open issues
- 5 Versions
- 0 % Grown
Composer Local Source Repository
The goal of this plugin is to have non-published (local) repository
packages, inside our main project. And have them
installed/mapped on the same source dir, without having to rely on symbolic links, full package copies to
secondary directories or the vendor directory., (*1)
Requirements
-
composer-plugin-api: ^1.1
-
composer/installers: ^1.0
Example composer.json File
This is an example for a custom drupal-module package. The only important part to set in your composer.json are:, (*2)
- Add the local
repositories
to your package.
- Set your
extra
files paths for composer/installers wich tells composer where to map the local packages.
For more info look Composer installers.
- Set the dependency
isaactorresmichel/composer-local-source-repository": "^1.0@alpha"
on your main composer.json
and source packages (the packages to install).
{
"repositories": {
"modules-custom-event-log-repository": {
"type": "path",
"url": "web/modules/custom/event-logger"
}
},
"require": {
"drupal/event-logger": "@dev"
},
"extra": {
"installer-paths": {
"web/modules/custom/{$name}": [
"drupal/event-logger"
]
}
}
}
dev-master
9999999-dev
Composer plugin that adds support for having custom packages installed to their source directory.
Sources
Download
MIT
The Requires
v1.0.3
1.0.3.0
Composer plugin that adds support for having custom packages installed to their source directory.
Sources
Download
MIT
The Requires
v1.0.2
1.0.2.0
Composer plugin that adds support for having custom packages installed to their source directory.
Sources
Download
MIT
The Requires
v1.0.1-alpha
1.0.1.0-alpha
Composer plugin that adds support for having custom packages installed to their source directory.
Sources
Download
MIT
The Requires
v1.0.0-alpha
1.0.0.0-alpha
Plugin that adds support for having packages installed to package source directory.
Sources
Download
MIT
The Requires