eplightning / nexus-composer-push
此包最新版本(0.1.7)没有可用的许可证信息。
向composer提供推送命令以推送到Nexus仓库
0.1.7
2020-11-02 07:46 UTC
Requires
- php: ^5.6 || ^7.0 || ^8.0
- composer-plugin-api: ^1.1|^2.0
- ext-curl: *
- ext-zip: *
- guzzlehttp/guzzle: ^6.0|^7.0
- symfony/filesystem: ^3.0|^4.0|^5.0
- symfony/finder: ^3.0|^4.0|^5.0
Requires (Dev)
- friendsofphp/php-cs-fixer: ^2.14
This package is auto-updated.
Last update: 2024-09-29 05:28:59 UTC
README
本composer插件提供了一个composer nexus-push
命令,允许将当前包推送到由nexus-repository-composer托管的Nexus Composer仓库。
安装
$ composer require elendev/nexus-composer-push
使用方法
许多选项都是可选的,因为它们可以直接添加到composer.json
文件中。
# At the root of your directory $ composer nexus-push [--name=<package name>] \ [--url=<URL to the composer nexus repository>] \ [--username=USERNAME] \ [--password=PASSWORD] \ [--ignore=test.php]\ [--ignore=foo/]\ [--ignore-by-git-attributes] <version> # Example $ composer nexus-push --username=admin --password=admin123 --url=https://:8081/repository/composer --ignore=test.php --ignore=foo/ 0.0.1
配置
可以在composer.json
文件中添加一些配置
{ "extra": { "nexus-push": { "url": "https://:8081/repository/composer/", "username": "admin", "password": "admin123", "ignore-by-git-attributes": true, "ignore": [ "test.php", "foo/" ] } } }
username
和password
可以在auth.json
文件中指定,以每个用户为基础,使用由Composer提供的认证机制。