# pming-cli

> pming-cli前端脚手架

Latest version **0.2.1** (published 2021-09-15) · MIT license · 0 weekly downloads

## Install

```sh
npm install pming-cli
pnpm add pming-cli
yarn add pming-cli
bun add pming-cli
```

Provides the command `pm-cli`.

## 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.2.1 |
| Published | 2021-09-15 |
| First published | 2021-08-24 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | none |
| Module format | CommonJS |
| Node | >=8.9 |
| Dependencies | 12 |
| Unpacked size | 106.2 KB |
| Known vulnerabilities | 0 (+1 in 1 direct dependencies) |
| Install scripts | no |
| GitHub stars | 0 |
| Author | yanghang |
| Maintainers | vipbic |
| Keywords | vue, pm-cli |

## Links

- npm: https://www.npmjs.com/package/pming-cli
- Repository: https://github.com/hangjob/pm-cli
- Homepage: https://github.com/hangjob/pm-cli#readme
- Issues: https://github.com/hangjob/pm-cli/issues
- npm.io page: https://npm.io/package/pming-cli

## Dependencies (12)

- [fs](https://npm.io/package/fs.md) 0.0.1-security
- [ora](https://npm.io/package/ora.md) ^5.4.1
- [chalk](https://npm.io/package/chalk.md) ^4.1.2
- [execa](https://npm.io/package/execa.md) ^5.1.1
- [listr](https://npm.io/package/listr.md) ^0.14.3
- [mkdirp](https://npm.io/package/mkdirp.md) ^1.0.4
- [cheerio](https://npm.io/package/cheerio.md) ^1.0.0-rc.10
- [inquirer](https://npm.io/package/inquirer.md) ^8.1.2
- [commander](https://npm.io/package/commander.md) ^8.1.0
- [cross-spawn](https://npm.io/package/cross-spawn.md) ^7.0.3
- [silly-datetime](https://npm.io/package/silly-datetime.md) ^0.1.2
- [download-git-repo](https://npm.io/package/download-git-repo.md) ^3.0.2

## Recent versions

- 0.2.1 (latest) — 2021-09-15
- 0.2.0 — 2021-09-13
- 0.1.3 — 2021-08-27
- 0.1.2 — 2021-08-27
- 0.1.1 — 2021-08-24
- 0.1.0 — 2021-08-24

## README

# pm-cli
>品茗前端脚手架

## 包含功能
- 注入全局pm-cli
- 提示安装指定模板
- 修改package.json属性
- 更多功能还在扩展中...

>node 赋予了JavaScript更强大的功能，我相信我能用他做出更多的事情，[Node随记](https://www.vipbic.com/archives.html?tid=22)

## generator

> 各个功能的模板，通过 generator 可以往 package.json 注入依赖字段，或者添加文件到项目中

## bin.js

```bash
#!/usr/bin/env node 
# 这一行是必须加的，就是让系统动态的去PATH目录中查找node来执行你的脚本文件
```

#### npm link

> 命令行执行 npm link ，创建软链接至全局，这样我们就可以全局使用pm-cli命令了

## 插件介绍

### commander

> node的命令行解析最常用的就是commander库，来简化复杂cli参数操作

### mkdirp

> process.cwd()获取工作区目录，和用户传入项目名称拼接起来， （创建文件夹我们使用mkdirp包，可以避免我们一级一级的创建目录）

### inquirer

> 跟用户交互

### chalk

> chalk 包的作用是修改控制台中字符串的样式，包括： 体样式(加粗、隐藏等)，字体颜色 ，背景颜色

### ora

> 这是一个好看的加载，就是你下载的时候会有个转圈圈的那种效果，基本效果如下

```bash
const ora = require('ora')
let spinner = ora('downloading template ...')
spinner.start()
```

### download-git-repo
>拉取git项目，我们作为拉取模板

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