1. @micro-app/plugin-deploy
[Plugin] auto deploy plugin.
@micro-app/plugin-deploy
Package: @micro-app/plugin-deploy
Created by: MicroAppJS
Last modified: Wed, 06 Apr 2022 05:22:19 GMT
Version: 0.0.9
License: MIT
Downloads: 8
Repository: https://github.com/MicroAppJS/plugin-deploy

Install

npm install @micro-app/plugin-deploy
yarn add @micro-app/plugin-deploy

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

RELATED POST

10 Must-Know Windows Shortcuts That Will Save You Time

10 Must-Know Windows Shortcuts That Will Save You Time

Arrays vs Linked Lists: Which is Better for Memory Management in Data Structures?

Arrays vs Linked Lists: Which is Better for Memory Management in Data Structures?

Navigating AWS Networking: Essential Hacks for Smooth Operation

Navigating AWS Networking: Essential Hacks for Smooth Operation

Achieving Stunning Visuals with Unity's Global Illumination

Achieving Stunning Visuals with Unity's Global Illumination

Nim's Hidden Gems: Lesser-known Features for Writing Efficient Code

Nim's Hidden Gems: Lesser-known Features for Writing Efficient Code