npm.io
0.1.12 • Published 4 years ago

m-fe-plugin-deploy

Licence
BSD-3-Clause
Version
0.1.12
Deps
15
Size
33 kB
Vulns
6
Weekly
0

m-fe-plugin-deploy

部署文件至ssh或者oss插件

Getting Started

fe deploy 自动安装插件

使用

  • fe deploy init 创建配置文件,需要选择oss和ssh的配置文件
  • fe deploy init --type=xxx 创建xxx类型的配置文件,只支持oss和ssh
  • fe deploy 自动根据deploy.config.js内容进行发布
option
参数名 类型 默认值 说明
type 'oss'| 'ssh' - 部署类型
file string 'deploy.config.js' 配置文件名
执行流程

fe deploy init 创建配置文件,需要选择类型;

fe deploy

  1. 如果没有deploy.config.js 则进入创建流程,需要用户填写config内容后重新fe deploy;
  2. 如果deploy.config.js 存在,则自动根据config.type 来进行操作