Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

ant-design-pro-cli

Package Overview
Dependencies
Maintainers
1
Versions
15
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

ant-design-pro-cli

The command tool for ant design pro

  • 1.0.0
  • latest
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
6
decreased by-62.5%
Maintainers
1
Weekly downloads
 
Created
Source

Cli for Ant Design Pro

A simple CLI for Ant Design Pro projects.

npm package

Feature

  • Standard Ant Design Pro template.
  • Interactive command line.
  • Common pages & components & models & services template.
  • Support prettier-eslint

Usage

Installation

Prerequisites: Node.js (>=6.x, 8.x preferred), npm version 3+ and Git.

$ npm install ant-design-pro-cli -g

New a Ant Design Pro template

$ pro new // will download ant-design-pro in current directory
$ pro new --no-auto-install // not auto install dependencies

Generate pages / components / models to project

$ cd your application
$ pro g

Prettier eslint your code

$ pro p [filePath]

Example:

$ cd your application
$ pro p ./test.js

Custom template

Creating a directory named 'tpl' in your project's root path, and all file in this folder will can be choose in pro cli:

CHANGELOG

1.0.0
  • synchronization Ant Desgin Pro 1.0.0
  • remove simple & browser history simple, recommend use standard directly
0.2.7
  • remove 'antd@next'
0.2.6
  • add prettier-eslint support
    • run pro p [filePath] or pro prettier [filePath]
0.2.5
  • add --no-auto-install config
  • fixed typo
0.2.3
  • new simple templates
    • standard: all functional Ant Design Pro scaffold
    • simple: simple version of Ant Design Pro with hash history
    • browser history simple: simple version of Ant Design Pro with browser history
0.2.2
  • change the command
    • support shorthand of command
      • pro new -> pro n
      • pro generate -> pro g
    • support custom file template
0.2.1
  • change the command
    • new -> generate
    • init -> new
0.2.0 deprecated
  • change the command
    • new -> generate
    • init -> new
0.1.5
  • change the command
    • init -> new a Ant Design Pro scaffold
    • new -> generate templates

FAQs

Package last updated on 11 Jan 2018

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

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc