New Research: Supply Chain Attack on Axios Pulls Malicious Dependency from npm.Details
Socket
Book a DemoSign in
Socket

antd-admin-cli

Package Overview
Dependencies
Maintainers
1
Versions
2
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

antd-admin-cli

The antd admin command line utility.

latest
Source
npmnpm
Version
1.0.0
Version published
Maintainers
1
Created
Source

antd-admin-cli

NPM version NPM downloads

The antd admin command line utility.

Getting Started

Install, create and start.

# 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 [options]

Create app with new directory.

Usage Examples

$ 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 (short-cut alias: "g")

Generate route, model and component.

Usage Examples

$ 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

.
├── 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 for build and server, view roadhog#Configuration (中文版) for details.

License

MIT

FAQs

Package last updated on 27 Jun 2017

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts