contentlayerdev / contentlayerdev/contentlayer

Improve CLI logging messages (e.g. for incremental builds)

未关闭
#25 1 条评论 0 个 reaction 已指派 0 人 在 GitHub 查看
improvement meta: never-stale
主要语言
TypeScript
星标
3.5k
派生
192
PR 合并指标
30 天内没有已合并 PR

描述

We should improve the CLI logging messages e.g. in the following cases:

- timing: we should add how long a step has taken (e.g. 50ms to generate 20 documents)
- This should also provide a summary of how time is spent in different remark plugins etc
- Adjust log messages for incremental builds based on file watching. (Currently the log messages indicate that all documents have been re-generated even though just a single file has changed)
- The log messages should also indicate when using cache from file system

Ideally we can even easily test the wanted behaviour above in unit tests.

贡献指南

打开贡献指南

调研方向

该 issue 未指定文件、入口点或现有测试。首先定位 CLI 日志记录、增量文件监视、缓存和 remark-plugin 的路径,然后检查单元测试如何覆盖它们。完成的标准是:日志报告各步骤的耗时和摘要,识别增量变更以及文件系统缓存的使用情况,并且有针对所请求行为的测试。

由索引模型根据 Issue 内容生成。

评估

技术栈
typescript
领域
cli, observability
Issue 类型
功能
难度
4/5
预计耗时
3-5 天
活跃度
停滞
描述清晰度
基本清楚
新手友好度
35/100

把新 issue 发到你的邮箱

精选适合新手参与的 GitHub issue 摘要。