【文件属性】:
文件名称:ant-design-pro-cli:Ant Design Pro的cli工具
文件大小:22KB
文件格式:ZIP
更新时间:2021-05-30 04:42:17
JavaScript
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 DEBU
【文件预览】:
ant-design-pro-cli-master
----test.code.js(1KB)
----.eslintrc.js(81B)
----src()
--------fetch-blocks()
--------i18n()
--------screenshot()
----LICENSE(1KB)
----.prettierrc(307B)
----README.md(914B)
----.gitignore(435B)
----cli.js(2KB)
----package.json(1KB)