-
Notifications
You must be signed in to change notification settings - Fork 2.7k
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
feat: umi cache #10730
base: master
Are you sure you want to change the base?
feat: umi cache #10730
Conversation
The latest updates on your projects. Learn more about Vercel for Git ↗︎
|
Codecov ReportPatch coverage has no change and project coverage change:
Additional details and impacted files@@ Coverage Diff @@
## master #10730 +/- ##
==========================================
- Coverage 29.25% 29.11% -0.15%
==========================================
Files 478 479 +1
Lines 14342 14418 +76
Branches 3373 3397 +24
==========================================
+ Hits 4196 4198 +2
- Misses 9422 9488 +66
- Partials 724 732 +8
... and 5 files with indirect coverage changes Help us with your feedback. Take ten seconds to tell us how you rate us. Have a feature suggestion? Share it here. ☔ View full report in Codecov by Sentry. |
有能用的吗,直接用上? |
尴尬,忘记push了,刚刚cr的时候才发现 |
Co-authored-by: Peach <[email protected]>
Co-authored-by: Peach <[email protected]>
|
2可以我记得dumi也是kb来着,为啥用忘记了哈哈 @PeachScript 你来看看 |
dumi 没这个功能 👀 能换单位最好,应该也有库 |
看一下,遇到需要用到的场景了,mf报错清了缓存就好了 @PeachScript |
@fz6m 这波CR必须点个赞 |
我没权限直接推,看下这个 commit MoeYc@14b2267 ,帮你优化了下日志。 另外 treeify 锁一下版本就 OK 了。 |
习惯用fork了,下次直接在umi上创建分支应该更好协作~ |
需要加个文档说明:https://umijs.org/docs/api/commands |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
👍🏻
const position = relative(api.cwd, absCachePath); | ||
if (fsExtra.existsSync(absCachePath)) { | ||
if (args._[0] === 'clean') { | ||
fsExtra.removeSync(absCachePath); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
这里要不要顺便把 .umi 文件夹删除?临时文件严格来说也算是缓存文件?就顺便把 umi clean 命令做了?
@sorrycc cc
背景
#10716
除了issue描述的,我增加了配置显示层数默认两层,可以自定义显示
效果
体验和说明
umi cache clean:清理 node_modules/.cache文件夹
umi cache ls [--depth]:显示缓存文件夹信息,--depth表示层数可选,默认值为1层,cache层为第0层
切换到分支
pnpm i cd example/umi-cache npx umi cache clean npx umi cache ls [--depth]
@PeachScript ok了看下