# mpdeploy

> 微信小程序(游戏)自动发布CLI

Latest version **0.1.5** (published 2021-04-12) · MIT license · 0 weekly downloads

## Install

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

Provides the command `mpdeploy`.

## Health

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

Positive: no vulnerabilities.

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

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 0.1.5 |
| Published | 2021-04-12 |
| First published | 2020-11-03 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | none |
| Module format | CommonJS |
| Node | >=10 |
| Dependencies | 5 |
| Unpacked size | 10.7 KB |
| Known vulnerabilities | 0 (+6 in 1 direct dependencies) |
| Install scripts | no |
| GitHub stars | 0 |
| Author | Mick |
| Maintainers | mick_sun |
| Keywords | mpdeploy, ci, mp-ci, miniprogram-ci, 小程序发布 |

## Links

- npm: https://www.npmjs.com/package/mpdeploy
- Repository: https://github.com/mick-sun/mpdeploy
- Homepage: https://github.com/mick-sun/mpdeploy#readme
- Issues: https://github.com/mick-sun/mpdeploy/issues
- npm.io page: https://npm.io/package/mpdeploy

## Dependencies (5)

- [cac](https://npm.io/package/cac.md) 6.6.1
- [ora](https://npm.io/package/ora.md) ^5.1.0
- [chalk](https://npm.io/package/chalk.md) ^4.1.0
- [simple-git](https://npm.io/package/simple-git.md) ^2.21.0
- [miniprogram-ci](https://npm.io/package/miniprogram-ci.md) ^1.0.83

## Alternatives

- [random-seedable](https://npm.io/package/random-seedable.md) — 27.9K weekly downloads
- [n2words](https://npm.io/package/n2words.md) — 22.2K weekly downloads
- [@stdlib/math-base-special-factorialln](https://npm.io/package/@stdlib/math-base-special-factorialln.md) — 5.7K weekly downloads
- [@stdlib/math-base-special-abs2](https://npm.io/package/@stdlib/math-base-special-abs2.md) — 1.7K weekly downloads
- [commons-math-interpolation](https://npm.io/package/commons-math-interpolation.md) — 1.4K weekly downloads

## Recent versions

- 0.1.5 (latest) — 2021-04-12
- 0.1.4 — 2021-04-12
- 0.1.3 — 2021-01-26
- 0.1.2 — 2021-01-25
- 0.1.1 — 2021-01-25
- 0.1.0 — 2020-11-16
- 0.0.7 — 2020-11-07
- 0.0.6 — 2020-11-05
- 0.0.5 — 2020-11-03
- 0.0.4 — 2020-11-03
- 0.0.3 — 2020-11-03
- 0.0.2 — 2020-11-03
- 0.0.1 — 2020-11-03

## README

# mpdeploy

[![Build Status][travis-img]][travis-url]
[![Coverage Status][codecov-img]][codecov-url]
[![License][license-img]][license-url]
[![NPM Downloads][downloads-img]][downloads-url]
[![NPM Version][version-img]][version-url]
[![Dependency Status][dependency-img]][dependency-url]
[![devDependency Status][devdependency-img]][devdependency-url]
[![Code Style][style-img]][style-url]

> 微信小程序(游戏)自动发布CLI

## 安装

```shell
$ npm install mpdeploy

# or yarn
$ yarn add mpdeploy
```

## 使用

### 生成配置文件
执行`mpdeploy init`，自动生成`.mpdeployrc.js`到当前目录 

```js
module.exports = {
  type: 'miniProgram',
  workspace: 'mpdeploy workspace path',
  pkp: 'weixin private key path',
  ver: '',
  desc: '',
  proxy: '',
  robot: '',
  setting: {
    es6: false,
    es7: false,
    minifyJS: false,
    minifyWXML: false,
    minifyWXSS: false,
    minify: true,
    codeProtect: false,
    autoPrefixWXSS: true
  }
}
```

### 上传代码到微信
`mpdeploy upload`

可选参数：(会覆盖`.mpdeployrc.js`中到配置) 

```
--workspace 指定工作目录
--type 指定项目类型 miniProgram | miniProgramPlugin | miniGame | miniGamePlugin
--ver 指定版本号
--desc 指定版本描述
--pkp 指定私钥路径
--proxy 指定代理URL
--robot 指定机器人编号 1~30
```

### 预览小程序 
`mpdeploy preview`
可选参数：(会覆盖`.mpdeployrc.js`中到配置) 

```
--workspace 指定工作目录
--type 指定项目类型 miniProgram | miniProgramPlugin | miniGame | miniGamePlugin
--ver 指定版本号
--desc 指定版本描述
--pkp 指定私钥路径
--proxy 指定代理URL
--robot 指定机器人编号 1~30
```

## CLI Usage
Use npx:

```shell
$ npx mpdeploy <input> [options]
```

Globally install:

```shell
$ npm install mpdeploy -g
# or yarn
$ yarn global add mpdeploy
```

## Contributing

1. **Fork** it on GitHub!
2. **Clone** the fork to your own machine.
3. **Checkout** your feature branch: `git checkout -b my-awesome-feature`
4. **Commit** your changes to your own branch: `git commit -am 'Add some feature'`
5. **Push** your work back up to your fork: `git push -u origin my-awesome-feature`
6. Submit a **Pull Request** so that we can review your changes.

> **NOTE**: Be sure to merge the latest from "upstream" before making a pull request!

## License

[MIT](LICENSE) &copy; [Mick](https://github.com/mick-sun)



[travis-img]: https://img.shields.io/travis/com/mick-sun/mpdeploy
[travis-url]: https://travis-ci.com/mick-sun/mpdeploy
[codecov-img]: https://img.shields.io/codecov/c/github/mick-sun/mpdeploy
[codecov-url]: https://codecov.io/gh/mick-sun/mpdeploy
[license-img]: https://img.shields.io/github/license/mick-sun/mpdeploy
[license-url]: https://github.com/mick-sun/mpdeploy/blob/master/LICENSE
[downloads-img]: https://img.shields.io/npm/dm/mpdeploy
[downloads-url]: https://npmjs.org/package/mpdeploy
[version-img]: https://img.shields.io/npm/v/mpdeploy
[version-url]: https://npmjs.org/package/mpdeploy
[dependency-img]: https://img.shields.io/david/mick-sun/mpdeploy
[dependency-url]: https://david-dm.org/mick-sun/mpdeploy
[devdependency-img]: https://img.shields.io/david/dev/mick-sun/mpdeploy
[devdependency-url]: https://david-dm.org/mick-sun/mpdeploy?type=dev
[style-img]: https://img.shields.io/badge/code_style-standard-brightgreen
[style-url]: https://standardjs.com

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