# mishang-cli

> 用于快速创建React页面与React组件的命令行工具。

Latest version **1.1.0** (published 2023-03-21) · ISC license · 0 weekly downloads

## Install

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

Provides the command `ms-cli`.

## 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.1.0 |
| Published | 2023-03-21 |
| First published | 2023-03-21 |
| Weekly downloads | 0 |
| License | ISC |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 3 |
| Unpacked size | 10.1 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| Maintainers | zhujr |

## Links

- npm: https://www.npmjs.com/package/mishang-cli
- npm.io page: https://npm.io/package/mishang-cli

## Dependencies (3)

- [ejs](https://npm.io/package/ejs.md) ^3.1.9
- [lodash](https://npm.io/package/lodash.md) ^4.17.21
- [inquirer](https://npm.io/package/inquirer.md) ^8.2.5

## Recent versions

- 1.1.0 (latest) — 2023-03-21
- 1.0.0 — 2023-03-21

## README

# ms-cli 命令行工具
用于快速创建React页面与React组件的命令行工具。

- 创建组件
- 创建页面

# Installation
```
npm install ms-cli
```

# 如何创建组件&页面
输入指令：
```
ms-cli
```
然后按需求选择创建内容，然后按要求输入组件或页面名称即可

> create component
  create page

# 指定创建到当前命令行路径
```
ms-cli --cwd
```

# 如何自定义配置文件
在项目根目录中添加ms.config.json 文件，即可覆盖默认配置，注意如果配置了 `templates` 中组件或页面的路径，则必须在根目录中创建对应路径的模板文件
```
{
  "templates": {
    "component": { 
      "component": "./templates/component", // 基础组件的模板目录
      "businessComponent": "./templates/component" // 业务组件的目标目录
    },
    "page": {
      "page": "./templates/page" // 页面模板目录
    }
  },
  "output": { // 对应上方的模板生成后的输出目录
    "component": {
      "component": "./src/component",
      "businessComponent": "./src/pages/component"
    },
    "page": {
      "page": "./src/pages"
    }
  }
}
```

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