codercms / nexus-composer-push
此包的最新版本(0.1.3.3)没有提供许可证信息。
为 composer 提供一个 Push 命令,用于向 Nexus 仓库推送
0.1.3.3
2020-04-23 00:15 UTC
Requires
- php: ^5.6 || ^7.0
- composer-plugin-api: ^1.1
- ext-curl: *
- ext-zip: *
- guzzlehttp/guzzle: ^6.0
- symfony/filesystem: ^3.0|^4.0
- symfony/finder: ^3.0|^4.0
Requires (Dev)
- friendsofphp/php-cs-fixer: ^2.14
This package is auto-updated.
Last update: 2024-09-23 10:47:00 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
可以通过 Composer 提供的认证机制在 auth.json
文件中按用户指定,具体请参阅 Composer 的基本认证机制。