Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

doc: antd-tools 文档说明 #145

Closed
jhoneybee opened this issue May 7, 2020 · 0 comments
Closed

doc: antd-tools 文档说明 #145

jhoneybee opened this issue May 7, 2020 · 0 comments

Comments

@jhoneybee
Copy link

jhoneybee commented May 7, 2020

! 这并不是一个官方文档,而是我自己摸索出来的,以及自己的一些使用经验。 仅供参考。

我使用antd-tools的功能主要有一下几点

  1. 预设tslint检查,以及tslint修复
  2. 预设打包编译 antd-tools run compile以及 antd-tools run dist
  3. .... 其他的我还没用过,暂时不太清楚

关于antd-tools

antd-tools 是一些命令行工具,目前用于服务 Ant Design React 。 以下有一些简单的用法。

命令 描述
antd-tools run dist 将代码编译为单个dist文件,目录在dist
antd-tools run compile 将代码编译为 es ,以及lib目录
antd-tools run clean 清理为干净的代码,移除 dist目录,以及es 和lib目录
antd-tools run pub 待补充,没用过
antd-tools run guard 待补充,没用过
antd-tools run ts-lint 检查ts-lint执行代码检查
antd-tools run ts-lint-fix 修复ts-lint检查出来的问题
antd-tools run deps-lint 待补充,没用过
antd-tools run sort-api-table 待补充,没用过
antd-tools run api-collection 待补充,没用过

如果要执行 antd-tools run compile 以及antd-tools run dist 则需要webpack的支持

webpack的例子

https://github.com/Kotomi-Team/kotomi-ui/blob/master/webpack.config.js

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant