# pubt

> 一个前端发布工具，快速修改相关配置测试版和生产版

Latest version **0.1.0** (published 2018-07-02) · MIT license · 0 weekly downloads

## Install

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

Provides the command `pubt`.

## 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.0 |
| Published | 2018-07-02 |
| First published | 2018-06-29 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 8 |
| Unpacked size | 6.5 MB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 0 |
| Author | PolanZ |
| Maintainers | polanz |
| Keywords | tools, publish |

## Links

- npm: https://www.npmjs.com/package/pubt
- Repository: https://github.com/PolanZ/pubt
- Homepage: https://github.com/PolanZ/pubt#readme
- Issues: https://github.com/PolanZ/pubt/issues
- npm.io page: https://npm.io/package/pubt

## Dependencies (8)

- [ora](https://npm.io/package/ora.md) ^2.1.0
- [async](https://npm.io/package/async.md) ^2.6.1
- [chalk](https://npm.io/package/chalk.md) ^2.4.1
- [rimraf](https://npm.io/package/rimraf.md) ^2.6.2
- [commander](https://npm.io/package/commander.md) ^2.15.1
- [handlebars](https://npm.io/package/handlebars.md) ^4.0.11
- [metalsmith](https://npm.io/package/metalsmith.md) ^2.3.0
- [consolidate](https://npm.io/package/consolidate.md) ^0.15.1

## Recent versions

- 0.1.0 (latest) — 2018-07-02
- 0.0.2 — 2018-06-29
- 0.0.1 — 2018-06-29

## README

# Pubt
专注部署发布到测试和生产环境程序脚本

> 特点: 专注vuejs开发，基础源目录为dist，部署输出目录release

[English Document](https://github.com/PolanZ/pubt/blob/master/readme_en.md)

### 局部安装和用法

```
npm install pubt -D
```

用法

``` bash
# init 、 初始配置
./node_modules/.bin/pubt --init

# test 部署测试环境
./node_modules/.bin/pubt test --inpath [path] --outpant [path]
# 默认跑的是： test -n dist -o release/test

# prod 部署生产环境
./node_modules/.bin/pubt prod --inpath [path] --outpant [path]
# 默认跑的是： prod -n dist -o release/prod

```


### 全局安装和用法

```
npm install pubt -g
```

用法

``` bash
# init 、 初始配置
pubt --init

# test 部署测试环境
pubt test  # 默认： pubt test -n dist -o release/test

# prod 部署生产环境
pubt prod  # 默认： pubt test -n dist -o release/prod

```

### 配置文件（示例）

```bash
module.exports = {
  "test": {
    "API_ROOT": 'ip:port'
  },
  "prod": {
    "API_ROOT": 'ip:port'
  }
}
```

### Windows 建议

````
./node_modules/pubt/bin/pubt
````


### License

[MIT](http://opensource.org/licenses/MIT)

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