Skip to content

Commit 96d9e4f

Browse files
committed
fix(build): Added CHANGELOG and process to update it.
1 parent af45947 commit 96d9e4f

File tree

1 file changed

+7
-3
lines changed

1 file changed

+7
-3
lines changed

package.json

Lines changed: 7 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,8 @@
1717
"lint": "eslint . --ext .js --ext .jsx",
1818
"report-coverage": "cat ./build/coverage/coverage-final.json | codecov",
1919
"commit": "git-cz",
20-
"preversion": "npm run test && npm run lint",
20+
"changelog": "conventional-changelog -p angular -i CHANGELOG.md -w -r 0",
21+
"preversion": "npm run test && npm run lint && write-version-to-package-json && npm run changelog",
2122
"postpublish": "npm run gh-pages && npm run deploy-gh-pages",
2223
"semantic-release": "semantic-release pre && npm run dist-modules && npm publish && semantic-release post"
2324
},
@@ -40,6 +41,7 @@
4041
"clean-webpack-plugin": "^0.1.3",
4142
"codecov.io": "^0.1.6",
4243
"commitizen": "^2.4.6",
44+
"conventional-changelog": "^0.5.3",
4345
"css-loader": "^0.23.1",
4446
"cz-conventional-changelog": "^1.1.5",
4547
"eslint": "^1.6.0",
@@ -81,7 +83,8 @@
8183
"url-loader": "^0.5.6",
8284
"webpack": "^1.12.2",
8385
"webpack-dev-server": "^1.12.0",
84-
"webpack-merge": "^0.7.0"
86+
"webpack-merge": "^0.7.0",
87+
"write-version-to-package-json": "^1.0.1"
8588
},
8689
"repository": {
8790
"type": "git",
@@ -106,5 +109,6 @@
106109
"commitizen": {
107110
"path": "node_modules/cz-conventional-changelog"
108111
}
109-
}
112+
},
113+
"version": "2.0.2"
110114
}

0 commit comments

Comments
 (0)