Skip to content
This repository was archived by the owner on Aug 7, 2020. It is now read-only.

Commit 5443cb4

Browse files
Jimmy Fortintremblaymath
Jimmy Fortin
authored andcommitted
chore: commitlint, commitizen and conventional-changelog integration
1 parent 5e0f4f3 commit 5443cb4

6 files changed

+1145
-36
lines changed

.commitlintrc.json

+3
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
{
2+
"extends": ["@commitlint/config-conventional"]
3+
}

.scriptsrc

+3
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
{
2+
"@extends": "npm-scripts-conventional-changelog"
3+
}

CHANGELOG.md

+6-5
Original file line numberDiff line numberDiff line change
@@ -1,19 +1,20 @@
1-
# Changelog
1+
<a name="1.0.0"></a>
2+
# [1.0.0]
23

3-
## v1.0.0
4+
### Features
45

5-
### New components
6+
new components:
67
- `versions`
78
- `themes`
89
- `showcase-ui`
910
- `component-status`
1011

11-
### New providers
12+
new providers:
1213
- `ComponentStatusProvider`
1314
- `ThemesProvider`
1415
- `VersionsProvider`
1516

16-
### New services
17+
new services:
1718
- `ComponentStatus`
1819
- `Themes`
1920
- `Versions`

CONTRIBUTING.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -42,4 +42,4 @@ For those using npm instead of yarn here is a list of equivalences: <https://yar
4242

4343
## Commits
4444

45-
All commits in this project must follow this specific message convention: <https://gist.github.com/stephenparish/9941e89d80e2bc58a153>
45+
All commits in this project must follow this specific message convention: <https://github.com/angular/angular/blob/master/CONTRIBUTING.md#commit>

package.json

+11
Original file line numberDiff line numberDiff line change
@@ -6,12 +6,21 @@
66
"main": "dist/ovh-documentation-toolkit.js",
77
"module": "src/app/index.js",
88
"scripts": {
9+
"commit": "npm-scripts-config commit",
10+
"commitmsg": "npm-scripts-config commitmsg",
911
"preversion": "npm build && git add dist",
12+
"version": "npm-scripts-config version",
1013
"postversion": "git push && git push --tags",
14+
"preview-changelog": "npm-scripts-config preview-changelog",
1115
"build": "rimraf dist && webpack --progress --colors --hide-modules --config ./build/webpack.config.babel.js",
1216
"build:watch": "rimraf dist && webpack --progress --colors --hide-modules --config ./build/webpack.config.babel.js --watch",
1317
"test": "echo \"no tests for this project\""
1418
},
19+
"config": {
20+
"commitizen": {
21+
"path": "cz-conventional-changelog"
22+
}
23+
},
1524
"devDependencies": {
1625
"babel-cli": "^6.24.1",
1726
"babel-core": "^6.24.1",
@@ -32,6 +41,8 @@
3241
"lodash-webpack-plugin": "^0.11.4",
3342
"ng-annotate": "~1.2.1",
3443
"ng-annotate-loader": "~0.6.1",
44+
"npm-scripts-config": "^0.0.1",
45+
"npm-scripts-conventional-changelog": "^0.0.1",
3546
"postcss-loader": "^2.0.5",
3647
"rimraf": "~2.6.1",
3748
"style-loader": "^0.20.1",

0 commit comments

Comments
 (0)