From 68dae64b9a3cf8dbd4da1a09d6e78dad9ac157e5 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E2=80=98chen=2Ehome=E2=80=99?= <1147347984@qq.com> Date: Fri, 5 Aug 2022 00:05:45 +0800 Subject: [PATCH] =?UTF-8?q?chore(projects):=20=E6=B7=BB=E5=8A=A0convention?= =?UTF-8?q?al-changelog?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- package.json | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/package.json b/package.json index 749dec5..3edca74 100644 --- a/package.json +++ b/package.json @@ -9,7 +9,8 @@ "prettier": "prettier --write \"src/**/*.{js,json,tsx,css,less,scss,vue,html,md}\"", "lint": "eslint . --ext .vue,.js,.jsx,.cjs,.mjs,.ts,.tsx,.cts,.mts,.json --fix", "prepare": "husky install", - "commit": "cz" + "commit": "cz", + "changelog": "conventional-changelog -p angular -i CHANGELOG.md -s -r 0 && git add CHANGELOG.md" }, "config": { "commitizen": { @@ -32,6 +33,7 @@ "@vue/eslint-config-prettier": "^7.0.0", "@vue/eslint-config-typescript": "^11.0.0", "commitizen": "^4.2.5", + "cz-conventional-changelog": "^3.3.0", "cz-customizable": "^6.9.1", "eslint": "^8.21.0", "eslint-config-prettier": "^8.5.0",