docs(BestPractices.md): add dependency caching guide
未关闭
适合新手
还没有人认领这个 Issue。
docs
- 主要语言
- Dockerfile
- 星标
- 8.6k
- 派生
- 2k
- 平均合并
- 10 小时 19 分钟
- 30 天内合并 PR
- 16
描述
To avoid performing npm install again and again when any source code in the project is being modified, it's (always?) preferred to cached node_modules as long as package.json and package-lock.json are not changed. I think this can be added to the BestPractices.md guide. Welcome for discussions on whether this is really a good practice also.
贡献指南
从这里开始
- 先读完整个 Issue,再读项目的贡献指南。
- 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
- Fork 仓库,在一个分支上完成修改。
- 提交 Pull Request,并在描述里引用这个 Issue 编号。
调研方向
从 BestPractices.md 开始,检查现有的依赖安装和镜像构建指南。确认在 package.json 和 package-lock.json 未发生变化时缓存 node_modules 的预期做法,然后结合相关的 npm install 上下文对其进行记录。当指南清楚地说明缓存方法及其条件时,即视为完成。
由索引模型根据 Issue 内容生成。
评估
- 技术栈
- node.js
- 领域
- documentation
- Issue 类型
- 文档
- 难度
- 2/5
- 预计耗时
- 1-3 小时
- 活跃度
- 冷清
- 描述清晰度
- 基本清楚
- 新手友好度
- 68/100