# dmx-cli  [![image](https://img.shields.io/npm/v/dmx-cli.svg)](https://www.npmjs.com/package/dmx-cli)

scaffold for damixia

## Installation

```
$ npm install dmx-cli -g
```

## Usage

* dmx --help

```
$ dmx --help

  Usage: dmx [options] [command]

  Options:

    -v, --version     output the version number
    -h, --help        output usage information

  Commands:

    toolkit [type]    initialize a toolkit, example: `dmx toolkit admin`
    page [type]       add a page, example: `dmx page admin`
    component [type]  initialize a component, example: `dmx component react`
```

* dmx [[command]](#command) [[type]](#type)

```
$ dmx toolkit admin  // 初始化套件

$ dmx page admin     // 新增页面

$ dmx component react   // 初始化组件
```

## Command

#### toolkit

> 初始化一个套件

#### page

> 增加一个页面

#### component

> 初始化一个组件

## Type

#### component

> 目前支持的组件类型如下

* **react**: 初始化一个基于 `react` 的组件。支持 `less`、`css-modules`

#### page

> 目前支持的页面类型如下

* **admin**: 初始化一个后台系统页面。支持 `redux`、`redux-saga`、`less`、`css-modules`

#### toolkit

> 目前支持的套件类型如下

* **admin**: 初始化一个基于 `react` 的后台系统。支持 `redux`、`redux-saga`、`less`、`css-modules`
