0.1.12 • Published 2 years ago

m-fe-plugin-deploy v0.1.12

Weekly downloads
-
License
BSD-3-Clause
Repository
github
Last release
2 years ago

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'-部署类型
filestring'deploy.config.js'配置文件名

执行流程

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

fe deploy

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