@micro-app/plugin-deploy-command

0.1.5 • Public • Published

Micro APP Plugin - Deploy Command

[Plugin] auto deploy command plugin.

基于webpack多入口的多仓库业务模块开发的插件应用框架核心库.

Coverage Status CircleCI NPM Version NPM Download

Install

yarn add @micro-app/plugin-deploy-command

or

npm install -S @micro-app/plugin-deploy-command

Usage

在项目 根目录micro-app.config.js 文件中配置

module.exports = {
    // ...

    plugins: [ // 自定义插件
        [ '@micro-app/plugin-deploy-command', {
            // default config
            git: '',
            branch: {
                name: '',
                extends: true,
            },
            message: '',
            user: {
                name: '',
                email: '',
            },
        } ],
    ],
};

创建 micro-app.deploy.config.js 文件, 并如下配置:

{
    // disabled: false, // 是否禁用该功能
    git: '',
    branch: {
        name: '',
        extends: true,
    },
    message: '', // 可选
    user: { // 可选
        name: '',
        email: '',
    },
    dist: '', // 可选原数据
    cname: '', // 可选
}

Package Sidebar

Install

npm i @micro-app/plugin-deploy-command

Weekly Downloads

1

Version

0.1.5

License

MIT

Unpacked Size

22.5 kB

Total Files

14

Last publish

Collaborators

  • zyao89