Skip to content

Commit

Permalink
build(changelog): use commitizen and conventional-changelog tools
Browse files Browse the repository at this point in the history
  • Loading branch information
doyouhaobaby committed Aug 9, 2019
1 parent 31b0879 commit 1d10414
Show file tree
Hide file tree
Showing 2 changed files with 33 additions and 0 deletions.
4 changes: 4 additions & 0 deletions changelog.sh
Original file line number Diff line number Diff line change
@@ -1,5 +1,9 @@
#!/bin/bash
#
# https://cattail.me/tech/2016/06/06/git-commit-message-and-branching-model.html
# https://www.jianshu.com/p/00c9ec4e552e
# https://www.codercto.com/a/34733.html
#
# cnpm install -g commitizen
# cnpm install -g conventional-changelog-cli
# commitizen init cz-conventional-changelog --save --force
Expand Down
29 changes: 29 additions & 0 deletions package.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
{
"name": "queryphp",
"version": "1.0.0",
"description": "",
"dependencies": {},
"devDependencies": {
"cz-conventional-changelog": "^3.0.2"
},
"scripts": {
"test": "echo \"Error: no test specified\" && exit 1",
"changelogs": "conventional-changelog -p angular -i CHANGELOG-1.0.md -s -r 0",
"changelog": "conventional-changelog -p angular -i CHANGELOG-1.0-beta.5.md -s"
},
"repository": {
"type": "git",
"url": "git+https://github.com/hunzhiwange/queryphp.git"
},
"author": "Xiangmin Liu <[email protected]>",
"license": "MIT",
"bugs": {
"url": "https://github.com/hunzhiwange/queryphp/issues"
},
"homepage": "http://www.queryphp.com",
"config": {
"commitizen": {
"path": "./node_modules/cz-conventional-changelog"
}
}
}

0 comments on commit 1d10414

Please sign in to comment.