Socket
Book a DemoInstallSign in
Socket

@ele-cloud/ele-deploy

Package Overview
Dependencies
Maintainers
1
Versions
2
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@ele-cloud/ele-deploy

ele cloud deploy script

0.0.2
latest
Source
npmnpm
Version published
Maintainers
1
Created
Source

ELE DEPLOY

npm

执行 “一句” shell,将构建文件直接部署至前端资源服务器。

现如今,全税部门项目日益增多,每个项目开发完成后,需要手动构建并将文件包发送给运维同学部署。测试环境、生产环境,每次部署都会听到运维向你呼喊:“同学,**项目前端打个包发我一份”,那么为了规避这种现象,我们的 ele-deploy 应运而生。只需一个命令,将前端包部署至资源系统,想要最新包,那你就去下👋。

资源服务器地址

安装

npm install --save @ele-cloud/ele-deploy

使用说明

针对全税部门,我们将前端项目分为两类:

  • react
  • vue

react示例

package.json

"scripts": {
  //...
  "deploy": "matriks2 dest && ele --company 大象产品线 --project declare-react.tar.gz --react"
 }

vue示例

package.json

"scripts": {
  //...
  "deploy": "npm run build && ele --company 大象产品线 --project declare-vue.tar.gz"
 }

配置完成后,在项目根目录下运行 npm run deployyarn deploy ,开始进行部署。

配置参数

  • -c | --company : 项目公司名称
  • -p | --project : 项目文件包名称 (支持三种后缀名格式:.zip .tar .tar.gz
  • --react : 是否为 react 项目 (默认:否)
  • -d | --debug: 查看更多信息

其他说明

ele-deploy 应用华为云Nodejs SDK,进行obs操作,并通过cdn来提升访问速度。

Keywords

deploy

FAQs

Package last updated on 16 Jan 2020

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

About

Packages

Stay in touch

Get open source security insights delivered straight into your inbox.

  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc

U.S. Patent No. 12,346,443 & 12,314,394. Other pending.