# deploys

> 自动化部署工具

Latest version **1.0.0** (published 2021-03-28) · ISC license · 0 weekly downloads

## Install

```sh
npm install deploys
pnpm add deploys
yarn add deploys
bun add deploys
```

Provides the command `deploys`.

## Health

**Score 15/100 (F)** — status: abandoned.

Positive: no vulnerabilities.

Warnings: low downloads; no types; no esm support.

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 1.0.0 |
| Published | 2021-03-28 |
| First published | 2021-03-28 |
| Weekly downloads | 0 |
| License | ISC |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 7 |
| Unpacked size | 7.9 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| Author | li305263 |
| Maintainers | li305263 |
| Keywords | auto, deploy, auto deploy |

## Links

- npm: https://www.npmjs.com/package/deploys
- Homepage: https://github.com/li305263/deploys
- npm.io page: https://npm.io/package/deploys

## Dependencies (7)

- [ora](https://npm.io/package/ora.md) ^5.4.0
- [chalk](https://npm.io/package/chalk.md) ^4.1.0
- [shelljs](https://npm.io/package/shelljs.md) ^0.8.4
- [inquirer](https://npm.io/package/inquirer.md) ^8.0.0
- [node-ssh](https://npm.io/package/node-ssh.md) ^11.1.1
- [commander](https://npm.io/package/commander.md) ^7.2.0
- [zip-local](https://npm.io/package/zip-local.md) ^0.3.4

## Recent versions

- 1.0.0 (latest) — 2021-03-28

## README

### 安装

```bash
$ npm i -g deploys
```

### 生成配置文件

```bash
$ deploys i
```

### deploy.config.js 配置

```js
[
  {
    name: '', // 项目名称
    host: '', // 服务器 ip 地址
    username: '', // 服务器用户名
    password: '', // 服务器密码
    privateKey: '', // 服务器私钥
    port: 22, // 端口 默认为 22
    distPath: '', // 需要部署的打包过后的文件夹 根据项目不同值不同 一般为 build static dist 默认为 dist
    script: '', // 打包命令 可能项目由不同的构建命令 如打包指定环境的代码 默认 npm run build
    path: '', // 服务器存放静态文件目录
    command: [], // 连接成功后执行的命令
    afterCmd: [], // 上传文件后执行的命令
  },
];
```

### 运行

```bash
$ deploys r
```

---
_Source: https://npm.io/package/deploys · Machine-readable twin of the npm.io package page. Health data is recomputed on every publish._
