Skip to content

Commit 988c96b

Browse files
author
Rajender Joshi
committed
configured commitizen
1 parent 72d8431 commit 988c96b

File tree

3 files changed

+2089
-105
lines changed

3 files changed

+2089
-105
lines changed

README.md

+1-2
Original file line numberDiff line numberDiff line change
@@ -3,8 +3,7 @@
33
44
[Live demo](https://xendora.github.io/react-timer/examples)
55

6-
7-
<!-- [![NPM](https://img.shields.io/npm/v/react-timer.svg)](https://www.npmjs.com/package/react-timer) [![JavaScript Style Guide](https://img.shields.io/badge/code_style-standard-brightgreen.svg)](https://standardjs.com) -->
6+
[![Commitizen friendly](https://img.shields.io/badge/commitizen-friendly-brightgreen.svg)](http://commitizen.github.io/cz-cli/)
87

98
## Installation
109
### For NPM

package.json

+17-4
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
2-
"name": "react-timer",
3-
"version": "0.0.1",
2+
"name": "@xendora/react-timer",
3+
"version": "0.0.0-semantic-release",
44
"description": "React timer component",
55
"author": "xendora",
66
"contributors": [
@@ -41,7 +41,9 @@
4141
"docz:build": "docz build",
4242
"docz:deploy": "yarn docz:build && gh-pages -d .docz/dist",
4343
"lint:test": "yarn eslint ./src",
44-
"jest:all": "jest __tests__/*"
44+
"jest:all": "jest __tests__/*",
45+
"commit": "npx git-cz",
46+
"semantic-release": "semantic-release"
4547
},
4648
"peerDependencies": {
4749
"prop-types": "^15.5.4",
@@ -64,7 +66,9 @@
6466
"babel-eslint": "^10.0.1",
6567
"babel-jest": "^24.9.0",
6668
"babel-polyfill": "^6.26.0",
69+
"commitizen": "^4.0.3",
6770
"cross-env": "^5.1.4",
71+
"cz-conventional-changelog": "^3.0.2",
6872
"docz": "^2.0.0-rc.53",
6973
"enzyme": "^3.10.0",
7074
"enzyme-adapter-react-16": "^1.15.1",
@@ -87,7 +91,8 @@
8791
"rollup-plugin-node-resolve": "^5.2.0",
8892
"rollup-plugin-peer-deps-external": "^2.2.0",
8993
"rollup-plugin-postcss": "^2.0.3",
90-
"rollup-plugin-url": "^2.2.2"
94+
"rollup-plugin-url": "^2.2.2",
95+
"semantic-release": "^15.13.28"
9196
},
9297
"files": [
9398
"dist"
@@ -96,5 +101,13 @@
96101
"setupFilesAfterEnv": [
97102
"./setupTests.js"
98103
]
104+
},
105+
"publishConfig": {
106+
"access": "public"
107+
},
108+
"config": {
109+
"commitizen": {
110+
"path": "./node_modules/cz-conventional-changelog"
111+
}
99112
}
100113
}

0 commit comments

Comments
 (0)