Newlywed Party Monsters

    @ant-design/pro-cli

    3.0.0 • Public • Published

    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 区块的路径,可以用于只截图一个
    • --mobile 使用手机大小的屏幕进行截图

    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 对单个区块进行截图
    • pro screenshot --mobile 对所有区块进行截图
    • pro screenshot --dumi 使用 dumi 构建的资产,支持手机模式

    i18n-remove

    • pro i18n-remove --write

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

    fetch-blocks

    • pro fetch-blocks

    Keywords

    none

    Install

    npm i @ant-design/pro-cli

    DownloadsWeekly Downloads

    10,193

    Version

    3.0.0

    License

    none

    Unpacked Size

    70.7 kB

    Total Files

    28

    Last publish

    Collaborators

    • madccc
    • afc163
    • vthinkxie
    • zombiej
    • chenshuai2144
    • vagusx
    • wynterding
    • yutingzhao1991
    • arvinxx
    • rdmclin2