docs(BestPractices.md): add dependency caching guide

未關閉 適合新手
#1,101 2 則留言 0 個 reaction 已指派 0 人 在 GitHub 檢視

還沒有人認領這個 Issue。

評估

難度
2/5
預估耗時
1-3 小時
新手友好度
68/100
Issue 類型
文件
描述清晰度
基本清楚
活躍度
冷清
技術堆疊
node.js
領域
documentation

研究方向

從 BestPractices.md 開始,檢視現有的相依套件安裝與映像檔建置指南。確認在 package.json 和 package-lock.json 未變更時快取 node_modules 的預期做法,然後在相關的 npm install 情境中將其記錄下來。當指南清楚說明快取方式及其條件時,即表示完成。

由索引模型根據 Issue 內容生成。

描述

docs

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.

主要語言
Dockerfile
星號
8.6k
分支
2k
平均合併
10 小時 19 分鐘
30 天內合併 PR
16

貢獻指南

開啟貢獻指南

從這裡開始

  1. 先讀完整個 Issue,再讀專案的貢獻指南。
  2. 在 Issue 下留言說明你要接手 —— 這能避免兩個人做同樣的事。
  3. Fork 儲存庫,在一個分支上完成修改。
  4. 送出 Pull Request,並在描述裡引用這個 Issue 編號。

nodejs/docker-node 的其他 Issue

查看 nodejs/docker-node 的全部 Issue

相似的 Issue

更多 Documentation Issue

把新 issue 寄到你的電子郵件信箱

精選適合新手參與的 GitHub issue 摘要。