@micro-app/plugin-deploy

0.0.9 • Public • Published

Micro APP Plugin - Deploy

[Plugin] auto deploy plugin.

集成自动部署配置. 用于 @micro-app/cli 的插件.

Github Actions Coveralls Coverage Status NPM Version NPM Download

Install

yarn add @micro-app/plugin-deploy

or

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

Usage

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

module.exports = {
    // ...

    plugins: [ // 自定义插件
        [ '@micro-app/plugin-deploy', {
            // 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

Weekly Downloads

3

Version

0.0.9

License

MIT

Unpacked Size

29.2 kB

Total Files

18

Last publish

Collaborators

  • zyao89