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

Commit d8ff3b2

Browse files
committed
chore: add a CONTRIBUTING guide and commitizen to enforce commit messages formats
feat/contributing
1 parent 0e00325 commit d8ff3b2

File tree

3 files changed

+625
-27
lines changed

3 files changed

+625
-27
lines changed

CONTRIBUTING.md

+13
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
# Contributing
2+
3+
First of all, thank you!
4+
5+
## Commit Messages
6+
7+
This project uses [`semantic-release`](https://github.com/semantic-release/semantic-release) to manage its releases, and therefore your commit messages must follow a [strict commit message format](https://github.com/semantic-release/semantic-release#default-commit-message-format).
8+
9+
You may choose to use `npm run commit` instead of `git commit`, and you'll be presented with an interactive session that will generate your commit message for you.
10+
11+
## Linting TypeScript Code
12+
13+
Make sure that your code changes pass the project TSLint rules. You can find out by running `npm run lint`. The task also runs on the Continuous Integration environment and will fail the build if it does not pass.

package.json

+14
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,8 @@
1212
},
1313
"scripts": {
1414
"build": "tsc",
15+
"commit": "git-cz",
16+
"commitmsg": "cz-customizable-ghooks",
1517
"demo.ios": "npm run preparedemo && cd demo && tns run ios --emulator",
1618
"demo.ios.device": "npm run preparedemo && cd demo && tns run ios",
1719
"demo.android": "npm run preparedemo && cd demo && tns run android --emulator",
@@ -55,6 +57,10 @@
5557
"devDependencies": {
5658
"@semantic-release/condition-codeship": "^1.1.0",
5759
"@semantic-release/release-notes-generator": "^2.0.0",
60+
"commitizen": "^2.9.6",
61+
"cz-customizable": "^5.0.0",
62+
"cz-customizable-ghooks": "^1.5.0",
63+
"husky": "^0.13.3",
5864
"prompt": "~1.0.0",
5965
"rimraf": "~2.6.1",
6066
"semantic-release": "^6.3.6",
@@ -63,5 +69,13 @@
6369
"tslint": "^5.2.0",
6470
"tslint-stylish": "^2.1.0",
6571
"typescript": "~2.3.2"
72+
},
73+
"config": {
74+
"commitizen": {
75+
"path": "./node_modules/cz-customizable"
76+
},
77+
"cz-customizable": {
78+
"config": ".cz-config.js"
79+
}
6680
}
6781
}

0 commit comments

Comments
 (0)