Sign Up for Free

RunKit +

Try any Node.js package right in your browser

This is a playground to test code. It runs a full Node.js environment and already has all of npm’s 400,000 packages pre-installed, including @ant-design/pro-cli with all npm packages installed. Try it out:

@ant-design/pro-cli lists no main file and has no index.js, so it can't be directly required. If this is a mistake, please let us know. It may however contain internal files that you can require manually:

// require("@ant-design/pro-cli/[??]")

This service is provided by RunKit and is not affiliated with npm, Inc or the package authors.

@ant-design/pro-cli v1.0.14

The command tool for ant design pro

Cli for Ant Design Pro

Install

npm i @ant-design/pro-cli
# or
yarn add @ant-design/pro-cli

Commands

  • screenshot 对区块进行截图
  • i18n-remove 从项目中移除国际化
  • fetch-blocks 下载 pro 所有的官方区块

Options for the screenshot command

  • --path 区块的路径,可以用于只截图一个

Options for the i18n-remove command

  • --locale 设置语言
  • --write 是否写入文件

debug

bash

DEBUG=pro-cli pro XXX

PowerShell

$env:DEBUG="pro-cli"
pro xxx

CMD

set DEBUG=pro-cli
pro xxx

Examples

pro

pro -h

screenshot

  • pro screenshot
  • pro screenshot --path DashboardWorkplace

i18n-remove

  • pro i18n-remove --write

  • pro i18n-remove --locale en-US --write

fetch-blocks

  • pro fetch-blocks
RunKit is a free, in-browser JavaScript dev environment for prototyping Node.js code, with every npm package installed. Sign up to share your code.
Sign Up for Free