Skip to content

Commit 7022023

Browse files
committed
feat(other): added commitlint and husky
Signed-off-by: Ingo Bürk <ingo.buerk@tngtech.com>
1 parent ebc7bd6 commit 7022023

3 files changed

Lines changed: 316 additions & 13 deletions

File tree

commitlint.config.js

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
module.exports = {
2+
extends: [ '@commitlint/config-conventional' ]
3+
};

package.json

Lines changed: 10 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@
22
"name": "ngqp",
33
"version": "0.0.0",
44
"license": "MIT",
5+
"private": true,
56
"scripts": {
67
"ng": "ng",
78
"lint": "ng lint",
@@ -23,7 +24,11 @@
2324
"api-docs:serve": "compodoc -s -d ./dist/ngqp-demo/api-docs",
2425
"release": "yarn core:release:publish && yarn demo:release:publish"
2526
},
26-
"private": true,
27+
"husky": {
28+
"hooks": {
29+
"commit-msg": "commitlint -E HUSKY_GIT_PARAMS"
30+
}
31+
},
2732
"dependencies": {
2833
"@angular/animations": "~7.2.8",
2934
"@angular/common": "~7.2.8",
@@ -55,6 +60,8 @@
5560
"@angular/cli": "~7.3.5",
5661
"@angular/compiler-cli": "~7.2.8",
5762
"@angular/language-service": "~7.2.8",
63+
"@commitlint/cli": "^7.5.2",
64+
"@commitlint/config-conventional": "^7.5.0",
5865
"@compodoc/compodoc": "^1.1.9",
5966
"@types/jasmine": "~2.8.8",
6067
"@types/jasminewd2": "~2.0.3",
@@ -63,6 +70,7 @@
6370
"angular-cli-ghpages": "^0.5.3",
6471
"codecov": "^3.1.0",
6572
"codelyzer": "~4.5.0",
73+
"husky": "^1.3.1",
6674
"jasmine-core": "~2.99.1",
6775
"jasmine-spec-reporter": "~4.2.1",
6876
"karma": "~3.1.1",
@@ -79,4 +87,4 @@
7987
"tslint": "~5.12.1",
8088
"typescript": "~3.2.4"
8189
}
82-
}
90+
}

0 commit comments

Comments
 (0)