eplightning / nexus-composer-push

此包最新版本(0.1.7)没有可用的许可证信息。

向composer提供推送命令以推送到Nexus仓库

安装: 7

依赖者: 0

建议者: 0

安全性: 0

星星: 1

关注者: 0

分支: 29

类型:composer-plugin

0.1.7 2020-11-02 07:46 UTC

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/"
            ]
        }
    }
}

usernamepassword可以在auth.json文件中指定,以每个用户为基础,使用由Composer提供的认证机制