CHANGELOG.md 配置

CHANGELOG.md 配置
默認(rèn)情況下,standard-version 只會(huì)在 CHANGELOG.md 中記錄 feat 和 fix 類型的提交。如果想記錄其他類型的提交,需要如下步驟:

在項(xiàng)目的根目錄下創(chuàng)建一個(gè)名為 .versionrc 的文件,并粘貼復(fù)制一下內(nèi)容:

{
  "types": [
    {"type": "chore", "section":"Others", "hidden": false},
    {"type": "revert", "section":"Reverts", "hidden": false},
    {"type": "feat", "section": "Features", "hidden": false},
    {"type": "fix", "section": "Bug Fixes", "hidden": false},
    {"type": "improvement", "section": "Feature Improvements", "hidden": false},
    {"type": "docs", "section":"Docs", "hidden": false},
    {"type": "style", "section":"Styling", "hidden": false},
    {"type": "refactor", "section":"Code Refactoring", "hidden": false},
    {"type": "perf", "section":"Performance Improvements", "hidden": false},
    {"type": "test", "section":"Tests", "hidden": false},
    {"type": "build", "section":"Build System", "hidden": false},
    {"type": "ci", "section":"CI", "hidden":false}
  ]
}

"type" commit 類型
"section" 不同的 commit 類型所在 CHANGELOG.md 中的區(qū)域
"hidden" 是否在 CHANGELOG.md 中顯示

?著作權(quán)歸作者所有,轉(zhuǎn)載或內(nèi)容合作請(qǐng)聯(lián)系作者
【社區(qū)內(nèi)容提示】社區(qū)部分內(nèi)容疑似由AI輔助生成,瀏覽時(shí)請(qǐng)結(jié)合常識(shí)與多方信息審慎甄別。
平臺(tái)聲明:文章內(nèi)容(如有圖片或視頻亦包括在內(nèi))由作者上傳并發(fā)布,文章內(nèi)容僅代表作者本人觀點(diǎn),簡(jiǎn)書(shū)系信息發(fā)布平臺(tái),僅提供信息存儲(chǔ)服務(wù)。

相關(guān)閱讀更多精彩內(nèi)容

  • 本文為譯文,原為為:Christian Ing Sunardi[https://medium.com/@chris...
    SciFiTokido閱讀 6,707評(píng)論 0 4
  • 搭建前端工程化 在我們?nèi)粘i_(kāi)發(fā)項(xiàng)目時(shí),基本上會(huì)采用官方腳手架進(jìn)行開(kāi)發(fā)。然后使用官方腳手架開(kāi)發(fā)也有缺點(diǎn):不能很好的自...
    believedream閱讀 1,086評(píng)論 0 0
  • 1. TypeScript工程化開(kāi)發(fā) 前端工程化就是通過(guò)流程規(guī)范化、標(biāo)準(zhǔn)化提升團(tuán)隊(duì)協(xié)作效率 通過(guò)組件化、模塊化提升...
    張Piers閱讀 1,261評(píng)論 0 0
  • AngularJS Git Commit Message Conventions 目的生成 CHANGELOG.m...
    Mr_竇先生閱讀 1,000評(píng)論 0 0
  • git commit規(guī)范 git-commit規(guī)范 在多人協(xié)作項(xiàng)目中,如果代碼風(fēng)格統(tǒng)一、代碼提交信息的說(shuō)明準(zhǔn)確,那...
    前端小丸子閱讀 1,803評(píng)論 0 2

友情鏈接更多精彩內(nèi)容