Skip to content

MicroAppJS/plugin-deploy

Folders and files

NameName
Last commit message
Last commit date

Latest commit

c38f128 · Sep 15, 2021

History

60 Commits
Jan 11, 2020
Sep 15, 2021
Nov 13, 2019
Sep 19, 2019
Sep 19, 2019
Sep 19, 2019
Sep 19, 2019
Sep 15, 2021
Oct 29, 2019
Jan 11, 2020
Feb 2, 2020
Mar 11, 2020
Sep 15, 2021
Sep 15, 2021

Repository files navigation

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: '', // 可选
}

Packages

No packages published

Contributors 2