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

Novice tasks for umi contributros 🙌 #10716

Open
PeachScript opened this issue Mar 9, 2023 · 2 comments
Open

Novice tasks for umi contributros 🙌 #10716

PeachScript opened this issue Mar 9, 2023 · 2 comments

Comments

@PeachScript
Copy link
Member

PeachScript commented Mar 9, 2023

此贴收集所有适合 Umi 新贡献者的任务,通常具备时间消耗适中、有助于熟悉 Umi、与其他功能低耦合、有一定挑战等特点,欢迎对 Umi 感兴趣的朋友们认领 ❤️

为了避免任务领取冲突,请务必先评论任务领取意图并确认主贴对应的任务已经艾特自己后再开始编码

@umijs/maintainer 们平时如果有想到合适的任务,可直接编辑主贴按照相同格式添加
bigfish-only 标记的任务说明该任务和内部服务或平台耦合,所以仅适用于蚂蚁内部感兴趣的同学

任务列表

001. 提供 umi cache 命令

跟进人:
背景:Umi 将 node_modules/.cache 作为缓存目录,有时候需要手动清除缓存(例如改了 node_modules 里的文件想验证结果),但对不熟悉 Umi 的用户来说很难知道有缓存目录的存在
方案:--help 是 CLI 共识,可以提供 umi cache clean 命令来删除 node_modules/.cache,当用户使用 umi --help 时即可看到 cache 命令,另外还可以增加 umi cache ls 命令,输出缓存目录树及大小,类似:

.
└── [768kb] node_modules/.cache
    ├── [512kb] bundler-webpack
    └── [10kb] logger
@PeachScript PeachScript pinned this issue Mar 9, 2023
@txp1035
Copy link
Member

txp1035 commented Mar 13, 2023

认领

@xiaohuoni
Copy link
Member

umi cache clean 感觉和 umi clean 需求是不是重复了?
umi clean 包括删缓存和临时文件?

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

No branches or pull requests

3 participants