From 720f1102984cbaf50032aca6e50cab26a8190af7 Mon Sep 17 00:00:00 2001 From: Maximilian Berkmann Date: Thu, 17 Jan 2019 11:05:09 +0000 Subject: [PATCH] chore: added commitizen (#143) * chore(package): added commitizen I added `git-cz` (commitizen) with the angular adapter (which seems to work) * docs(readme): added cz badge Added the badge to indicate the commitizen-friendliness of this repo. * revert: removed the category changes from another PR It removes the addition of a maintenance category to keep them separated. --- README.md | 1 + package.json | 10 +++++++++- 2 files changed, 10 insertions(+), 1 deletion(-) diff --git a/README.md b/README.md index 40aece0..43ce12a 100644 --- a/README.md +++ b/README.md @@ -13,6 +13,7 @@ [![version][version-badge]][package] [![downloads][downloads-badge]][downloads] [![MIT License][license-badge]][license] [![Chat on Slack][chat-badge]][chat] +[![Commitizen friendly](https://img.shields.io/badge/commitizen-friendly-brightgreen.svg)](http://commitizen.github.io/cz-cli/) [![All Contributors](https://img.shields.io/badge/all_contributors-28-orange.svg?style=flat-square)](#contributors) [![PRs Welcome][prs-badge]][prs] [![Code of Conduct][coc-badge]][coc] diff --git a/package.json b/package.json index 6ef1465..2948e2a 100644 --- a/package.json +++ b/package.json @@ -17,7 +17,8 @@ "build": "kcd-scripts build", "lint": "kcd-scripts lint", "test": "kcd-scripts test", - "validate": "kcd-scripts validate" + "validate": "kcd-scripts validate", + "commit": "npx git-cz" }, "husky": { "hooks": { @@ -50,6 +51,8 @@ }, "devDependencies": { "codecov": "^3.1.0", + "cz-conventional-changelog": "^2.1.0", + "git-cz": "^1.8.0", "kcd-scripts": "^0.49.0", "nock": "^10.0.6", "semantic-release": "^15.13.2" @@ -68,5 +71,10 @@ "func-names": "off", "consistent-return": "off" } + }, + "config": { + "commitizen": { + "path": "cz-conventional-changelog" + } } }