Skip to content

Commit 561f1c5

Browse files
committed
chore: use conventional-changelog commit format
1 parent 360cd08 commit 561f1c5

File tree

2 files changed

+18
-2
lines changed

2 files changed

+18
-2
lines changed

README.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -208,6 +208,10 @@ npm start
208208

209209
# run tests
210210
npm test
211+
212+
# commit your changes with commitizen
213+
npm run commit
214+
# or "git cz", if you have commitizen in your PATH
211215
```
212216

213217
The source code can be found under the `src` directory, and the built file is under `dist`.

package.json

Lines changed: 14 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,23 +4,35 @@
44
"description": "Terse syntax for hyperscript",
55
"main": "dist/index.js",
66
"typings": "dist/index.d.ts",
7+
"config": {
8+
"commitizen": {
9+
"path": "node_modules/rb-conventional-changelog/"
10+
},
11+
"ghooks": {
12+
"commit-msg": "node ./node_modules/validate-commit-msg/index.js"
13+
}
14+
},
715
"dependencies": {},
816
"devDependencies": {
917
"babel": "^5.6.14",
1018
"babel-eslint": "^4.1.4",
19+
"commitizen": "^2.5.0",
1120
"eslint": "^1.9.0",
1221
"hyperscript": "^1.4.6",
1322
"jsverify": "^0.6.0",
1423
"lodash": "^3.10.0",
1524
"mocha": "^2.2.5",
16-
"react": "^0.14.2"
25+
"rb-conventional-changelog": "^1.1.9",
26+
"react": "^0.14.2",
27+
"validate-commit-msg": "^1.1.0"
1728
},
1829
"scripts": {
1930
"lint": "./node_modules/.bin/eslint src/",
2031
"test": "npm run lint && mocha",
2132
"start": "./node_modules/.bin/babel src/index.js --out-file dist/index.js",
2233
"ts-def": "./node_modules/.bin/babel-node ./generate-ts-def.js",
23-
"prestart": "npm install && npm run ts-def"
34+
"prestart": "npm install && npm run ts-def",
35+
"commit": "./node_modules/.bin/git-cz"
2436
},
2537
"repository": {
2638
"type": "git",

0 commit comments

Comments
 (0)