# macaw-cli

> MacawJS 的命令行工具，用于快速创建基于 MacawJS 的企业级应用

Latest version **1.0.3** (published 2022-06-24) · ISC license · 0 weekly downloads

## Install

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

Provides the command `macaw-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.0.3 |
| Published | 2022-06-24 |
| First published | 2022-06-24 |
| Weekly downloads | 0 |
| License | ISC |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 7 |
| Unpacked size | 6 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| Maintainers | yishuihan-001 |

## Links

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

## Dependencies (7)

- [ora](https://npm.io/package/ora.md) ^6.1.0
- [chalk](https://npm.io/package/chalk.md) ^5.0.1
- [figlet](https://npm.io/package/figlet.md) ^1.5.2
- [shelljs](https://npm.io/package/shelljs.md) ^0.8.5
- [inquirer](https://npm.io/package/inquirer.md) ^9.0.0
- [commander](https://npm.io/package/commander.md) ^9.3.0
- [@darkobits/lolcatjs](https://npm.io/package/@darkobits/lolcatjs.md) ^3.1.5

## Recent versions

- 1.0.3 (latest) — 2022-06-24
- 1.0.2 — 2022-06-24
- 1.0.1 — 2022-06-24

## README

# macaw-cli

MacawJS 的命令行工具，用于快速创建基于 MacawJS 的企业级应用

## 安装
全局安装 macaw-cli

```sh
npm i macaw-cli -g
```

## 使用

```sh
macaw-cli create <projectName>
```

## 示例

创建一个名称为 `first-macaw-app` 的项目

1. 创建一个名称为 temp 的空文件夹并切换到该文件夹
    ```sh
    mkdir temp
    cd temp
    pwd
    # C:\Users\Ducis\Desktop\temp
    ```

2. 使用 macaw-cli 创建项目
    ```sh
    macaw-cli create first-macaw-app
    # 根据命令行提示进行操作即可
    ```
    ![macaw-cli-one](https://pubsta.oss-cn-hangzhou.aliyuncs.com/dfs/img/macaw-cli-one.png)


3. 最终生成的文件目录如下
    ```js
    C:\Users\Ducis\Desktop\temp
    ├─first-macaw-app
    |        ├─index.html
    |        ├─main.js
    |        ├─views
    |        |   └─home.js
    |        ├─config
    |        |   ├─conf-components.json
    |        |   ├─conf-macaw.js
    |        |   └─conf-views.json
    |        ├─components
    |        |     ├─hello-world
    |        |     |      ├─hello-world.css
    |        |     |      └─hello-world.html
    ```

4. 在 5500 端口下启动本地服务即可（也可在 `conf-macaw.js` 修改端口号）

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