Skip to content

Novice tasks for umi contributros 🙌 #10716

@PeachScript

Description

@PeachScript

此贴收集所有适合 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

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions