# antd-admin-cli

> The antd admin command line utility.

Latest version **1.0.0** (published 2017-06-27) · MIT license · 0 weekly downloads

## Install

```sh
npm install antd-admin-cli
pnpm add antd-admin-cli
yarn add antd-admin-cli
bun add antd-admin-cli
```

Provides the command `atda`.

## 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.0 |
| Published | 2017-06-27 |
| First published | 2017-06-27 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 12 |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 4 |
| Maintainers | yuanxuegui |

## Links

- npm: https://www.npmjs.com/package/antd-admin-cli
- Repository: https://github.com/hexagonframework/antd-admin-cli
- Issues: https://github.com/hexagonframework/antd-admin-cli/issues
- npm.io page: https://npm.io/package/antd-admin-cli

## Dependencies (12)

- [chalk](https://npm.io/package/chalk.md) ^1.1.3
- [which](https://npm.io/package/which.md) ^1.2.10
- [dva-ast](https://npm.io/package/dva-ast.md) ^0.3.1
- [fs-extra](https://npm.io/package/fs-extra.md) ^0.30.0
- [left-pad](https://npm.io/package/left-pad.md) ^1.1.3
- [through2](https://npm.io/package/through2.md) ^2.0.1
- [vinyl-fs](https://npm.io/package/vinyl-fs.md) ^2.4.3
- [commander](https://npm.io/package/commander.md) ^2.9.0
- [empty-dir](https://npm.io/package/empty-dir.md) ^0.2.1
- [win-spawn](https://npm.io/package/win-spawn.md) ^2.0.0
- [path-exists](https://npm.io/package/path-exists.md) ^3.0.0
- [simple-uppercamelcase](https://npm.io/package/simple-uppercamelcase.md) ^1.0.0

## Recent versions

- 1.0.0 (latest) — 2017-06-27
- 0.0.1 — 2017-06-27

## README

# antd-admin-cli
[![NPM version](https://img.shields.io/npm/v/antd-admin-cli.svg?style=flat)](https://npmjs.org/package/antd-admin-cli)
[![NPM downloads](http://img.shields.io/npm/dm/antd-admin-cli.svg?style=flat)](https://npmjs.org/package/antd-admin-cli)

The antd admin command line utility.

## Getting Started

Install, create and start.

```bash
# Install
$ npm install antd-admin-cli -g

# Create app
$ atda new myapp

# Start app
$ cd myapp
$ yarn start
```

## Commands

We have 3 commands: `new`, `init` and `generate`(alias `g`).

### atda new <appName> [options]

Create app with new directory.

#### Usage Examples

```bash
$ atda new myapp
$ atda new myapp --no-install
```

#### options

* `--no-install` -- Disable npm install after files created

### atda init [options]

Create app in current directory. It's options is the same as `atda new`.

### atda generate <type> <name> (short-cut alias: "g")

Generate route, model and component.

#### Usage Examples

```bash
$ atda g route product-list
$ atda g model products
$ atda g component Editor
$ atda g component Users/UserModal
$ atda g component Header --no-css
```

## Generated File Tree

```bash
.
├── public
    ├── index.html         # HTML for entry file
├── src                    # Source directory
    ├── assets             # Store images, icons, ...
    ├── components         # UI components
    ├── index.js           # Enry file
    ├── router.js          # Router configuration
    ├── models             # Dva models
    ├── routes             # Route components
    ├── services           # Used for communicate with server
    └── utils              # Utils
        └── request.js     # A util wrapped dva/fetch
├── .editorconfig          #
├── .eslintrc              # Eslint config
├── .gitignore             #
├── .roadhogrc             # Roadhog config
└── package.json           #
```

## Configuration

antd-admin-cli use [roadhog](https://github.com/sorrycc/roadhog) for build and server, view [roadhog#Configuration](https://github.com/sorrycc/roadhog/blob/master/README_en-us.md#configuration) ([中文版](https://github.com/sorrycc/roadhog#配置)) for details.

## License

[MIT](https://tldrlegal.com/license/mit-license)

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