Skip to content

Commit

Permalink
chore: 🤖 add better commit messages
Browse files Browse the repository at this point in the history
  • Loading branch information
NetanelBasal committed Oct 7, 2020
1 parent 49b6391 commit e0d8b1c
Show file tree
Hide file tree
Showing 3 changed files with 58 additions and 65 deletions.
3 changes: 3 additions & 0 deletions commitlint.config.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
module.exports = {
extends: ['@commitlint/config-conventional'],
};
16 changes: 6 additions & 10 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -84,11 +84,6 @@
"commit-msg": "commitlint -E HUSKY_GIT_PARAMS"
}
},
"commitlint": {
"extends": [
"@commitlint/config-conventional"
]
},
"lint-staged": {
"*.{ts,yml,json,md}": [
"prettier --write"
Expand Down Expand Up @@ -137,8 +132,9 @@
"@angular/compiler": "8.2.14",
"@angular/compiler-cli": "~8.2.14",
"@angular/language-service": "8.2.14",
"@commitlint/cli": "^8.3.5",
"@commitlint/config-conventional": "^8.3.4",
"@commitlint/cli": "8.1.0",
"@commitlint/config-angular": "8.1.0",
"@commitlint/config-conventional": "8.1.0",
"@nrwl/angular": "9.4.0",
"@nrwl/cypress": "9.4.0",
"@nrwl/eslint-plugin-nx": "9.4.0",
Expand All @@ -165,13 +161,14 @@
"@typescript-eslint/parser": "2.27.0",
"all-contributors-cli": "^6.14.1",
"codelyzer": "~5.2.2",
"commitizen": "^4.0.4",
"copyfiles": "^2.2.0",
"cypress": "^4.3.0",
"cz-conventional-changelog": "^3.1.0",
"dotenv": "8.2.0",
"eslint": "6.8.0",
"eslint-config-prettier": "6.10.1",
"eslint-plugin-cypress": "^2.10.3",
"git-cz": "^4.7.1",
"husky": "^4.2.5",
"jest": "25.3.0",
"jest-localstorage-mock": "^2.4.0",
Expand All @@ -186,7 +183,6 @@
"ts-node": "~8.8.2",
"tslint": "6.1.1",
"tslint-config-prettier": "^1.18.0",
"typescript": "3.2.4",
"eslint-plugin-cypress": "^2.10.3"
"typescript": "3.2.4"
}
}
104 changes: 49 additions & 55 deletions yarn.lock
Original file line number Diff line number Diff line change
Expand Up @@ -1674,29 +1674,39 @@
exec-sh "^0.3.2"
minimist "^1.2.0"

"@commitlint/cli@^8.3.5":
version "8.3.5"
resolved "https://registry.yarnpkg.com/@commitlint/cli/-/cli-8.3.5.tgz#6d93a3a8b2437fa978999d3f6a336bcc70be3fd3"
integrity sha512-6+L0vbw55UEdht71pgWOE55SRgb+8OHcEwGDB234VlIBFGK9P2QOBU7MHiYJ5cjdjCQ0rReNrGjOHmJ99jwf0w==
"@commitlint/cli@8.1.0":
version "8.1.0"
resolved "https://registry.yarnpkg.com/@commitlint/cli/-/cli-8.1.0.tgz#a3d4236c0ac961d7026a53d728b179c696d6a045"
integrity sha512-83K5C2nIAgoZlzMegf0/MEBjX+ampUyc/u79RxgX9ZYjzos+RQtNyO7I43dztVxPXSwAnX9XRgoOfkGWA4nbig==
dependencies:
"@commitlint/format" "^8.3.4"
"@commitlint/lint" "^8.3.5"
"@commitlint/load" "^8.3.5"
"@commitlint/read" "^8.3.4"
"@commitlint/format" "^8.1.0"
"@commitlint/lint" "^8.1.0"
"@commitlint/load" "^8.1.0"
"@commitlint/read" "^8.1.0"
babel-polyfill "6.26.0"
chalk "2.4.2"
chalk "2.3.1"
get-stdin "7.0.0"
lodash "4.17.15"
lodash "4.17.14"
meow "5.0.0"
resolve-from "5.0.0"
resolve-global "1.0.0"

"@commitlint/config-conventional@^8.3.4":
"@commitlint/config-angular-type-enum@^8.1.0":
version "8.3.4"
resolved "https://registry.yarnpkg.com/@commitlint/config-conventional/-/config-conventional-8.3.4.tgz#fed13b3711690663b176c1f6b39c205a565618d2"
integrity sha512-w0Yc5+aVAjZgjYqx29igBOnVCj8O22gy3Vo6Fyp7PwoS7+AYS1x3sN7IBq6i7Ae15Mv5P+rEx1pkxXo5zOMe4g==
resolved "https://registry.yarnpkg.com/@commitlint/config-angular-type-enum/-/config-angular-type-enum-8.3.4.tgz#2ccc316ed072935c71e0abae916a72f70e43feae"
integrity sha512-V8DJ9G3vd8/g55euhwqNPv9gycqbNGfJsswpga7RP0tetzcekkXeE9fXnFBJklqzXrjwUmP8Of5eEsGmbt39IQ==

"@commitlint/[email protected]":
version "8.1.0"
resolved "https://registry.yarnpkg.com/@commitlint/config-angular/-/config-angular-8.1.0.tgz#ed338308cd53186a93e78ed92394c8a89cc50962"
integrity sha512-r/VD79p7kELa33/giFW2NXcklQ7J85nlEtUWCx6R+abyvUHjrhPQDfPXuHaFU2hVH7NxX5ziBYf2k0TbrUD7Ww==
dependencies:
conventional-changelog-conventionalcommits "4.2.1"
"@commitlint/config-angular-type-enum" "^8.1.0"

"@commitlint/[email protected]":
version "8.1.0"
resolved "https://registry.yarnpkg.com/@commitlint/config-conventional/-/config-conventional-8.1.0.tgz#ba61fbf0ad4df52da2b5ee3034470371a2cbf039"
integrity sha512-/JY+FNBnrT91qzDVIoV1Buiigvj7Le7ezFw+oRqu0nYREX03k7xnaG/7t7rUSvm7hM6dnLSOlaUsevjgMI9AEw==

"@commitlint/ensure@^8.3.4":
version "8.3.4"
Expand All @@ -1710,7 +1720,7 @@
resolved "https://registry.yarnpkg.com/@commitlint/execute-rule/-/execute-rule-8.3.4.tgz#1b63f0713b197889d90b76f9eea1abc010d256b1"
integrity sha512-f4HigYjeIBn9f7OuNv5zh2y5vWaAhNFrfeul8CRJDy82l3Y+09lxOTGxfF3uMXKrZq4LmuK6qvvRCZ8mUrVvzQ==

"@commitlint/format@^8.3.4":
"@commitlint/format@^8.1.0":
version "8.3.4"
resolved "https://registry.yarnpkg.com/@commitlint/format/-/format-8.3.4.tgz#7cd1f0ba5a3289c8d14d7dac29ee1fc1597fe1d9"
integrity sha512-809wlQ/ND6CLZON+w2Rb3YM2TLNDfU2xyyqpZeqzf2reJNpySMSUAeaO/fNDJSOKIsOsR3bI01rGu6hv28k+Nw==
Expand All @@ -1724,7 +1734,7 @@
dependencies:
semver "6.3.0"

"@commitlint/lint@^8.3.5":
"@commitlint/lint@^8.1.0":
version "8.3.5"
resolved "https://registry.yarnpkg.com/@commitlint/lint/-/lint-8.3.5.tgz#627e75adb1cc803cc723e33cc2ba4aa27cbb9f0c"
integrity sha512-02AkI0a6PU6rzqUvuDkSi6rDQ2hUgkq9GpmdJqfai5bDbxx2939mK4ZO+7apbIh4H6Pae7EpYi7ffxuJgm+3hQ==
Expand All @@ -1735,7 +1745,7 @@
babel-runtime "^6.23.0"
lodash "4.17.15"

"@commitlint/load@>6.1.1", "@commitlint/load@^8.3.5":
"@commitlint/load@>6.1.1", "@commitlint/load@^8.1.0":
version "8.3.5"
resolved "https://registry.yarnpkg.com/@commitlint/load/-/load-8.3.5.tgz#3f059225ede92166ba94cf4c48e3d67c8b08b18a"
integrity sha512-poF7R1CtQvIXRmVIe63FjSQmN9KDqjRtU5A6hxqXBga87yB2VUJzic85TV6PcQc+wStk52cjrMI+g0zFx+Zxrw==
Expand All @@ -1762,7 +1772,7 @@
conventional-commits-parser "^3.0.0"
lodash "^4.17.11"

"@commitlint/read@^8.3.4":
"@commitlint/read@^8.1.0":
version "8.3.4"
resolved "https://registry.yarnpkg.com/@commitlint/read/-/read-8.3.4.tgz#81a34283d8cd7b2acdf57829a91761e9c7791455"
integrity sha512-FKv1kHPrvcAG5j+OSbd41IWexsbLhfIXpxVC/YwQZO+FR0EHmygxQNYs66r+GnhD1EfYJYM4WQIqd5bJRx6OIw==
Expand Down Expand Up @@ -4576,6 +4586,15 @@ caseless@~0.12.0:
resolved "https://registry.yarnpkg.com/caseless/-/caseless-0.12.0.tgz#1b681c21ff84033c826543090689420d187151dc"
integrity sha1-G2gcIf+EAzyCZUMJBolCDRhxUdw=

[email protected]:
version "2.3.1"
resolved "https://registry.yarnpkg.com/chalk/-/chalk-2.3.1.tgz#523fe2678aec7b04e8041909292fe8b17059b796"
integrity sha512-QUU4ofkDoMIVO7hcx1iPTISs88wsO8jA92RQIm4JAwZvFGGAV2hSAA1NX7oVj2Ej2Q6NDTcRDjPTFrMCRZoJ6g==
dependencies:
ansi-styles "^3.2.0"
escape-string-regexp "^1.0.5"
supports-color "^5.2.0"

[email protected], chalk@^2.0.0, chalk@^2.0.1, chalk@^2.1.0, chalk@^2.3.0, chalk@^2.4.1, chalk@^2.4.2:
version "2.4.2"
resolved "https://registry.yarnpkg.com/chalk/-/chalk-2.4.2.tgz#cd42541677a54333cf541a49108c1432b44c9424"
Expand Down Expand Up @@ -4983,27 +5002,6 @@ commitizen@^4.0.3:
strip-bom "4.0.0"
strip-json-comments "3.0.1"

commitizen@^4.0.4:
version "4.0.4"
resolved "https://registry.yarnpkg.com/commitizen/-/commitizen-4.0.4.tgz#60e9666e293269f459f1038ca452b39acecb8999"
integrity sha512-gfEt1rDE9VqKif+LE3cAThpqiW/1K3c2Nx83jSU6ohZjQd2CAmz1rMIlgmbPrPagOkKZw7USzSVubS758ZTWdA==
dependencies:
cachedir "2.2.0"
cz-conventional-changelog "3.0.1"
dedent "0.7.0"
detect-indent "6.0.0"
find-node-modules "2.0.0"
find-root "1.1.0"
fs-extra "8.1.0"
glob "7.1.4"
inquirer "6.5.0"
is-utf8 "^0.2.1"
lodash "4.17.15"
minimist "1.2.3"
shelljs "0.7.6"
strip-bom "4.0.0"
strip-json-comments "3.0.1"

[email protected]:
version "1.8.0"
resolved "https://registry.yarnpkg.com/common-tags/-/common-tags-1.8.0.tgz#8e3153e542d4a39e9b10554434afaaf98956a937"
Expand Down Expand Up @@ -5173,15 +5171,6 @@ [email protected]:
resolved "https://registry.yarnpkg.com/conventional-changelog-config-spec/-/conventional-changelog-config-spec-2.1.0.tgz#874a635287ef8b581fd8558532bf655d4fb59f2d"
integrity sha512-IpVePh16EbbB02V+UA+HQnnPIohgXvJRxHcS5+Uwk4AT5LjzCZJm5sp/yqs5C6KZJ1jMsV4paEV13BN1pvDuxQ==

[email protected]:
version "4.2.1"
resolved "https://registry.yarnpkg.com/conventional-changelog-conventionalcommits/-/conventional-changelog-conventionalcommits-4.2.1.tgz#d6cb2e2c5d7bfca044a08b9dba84b4082e1a1bd9"
integrity sha512-vC02KucnkNNap+foDKFm7BVUSDAXktXrUJqGszUuYnt6T0J2azsbYz/w9TDc3VsrW2v6JOtiQWVcgZnporHr4Q==
dependencies:
compare-func "^1.3.1"
lodash "^4.2.1"
q "^1.5.1"

[email protected], conventional-changelog-conventionalcommits@^4.2.3:
version "4.2.3"
resolved "https://registry.yarnpkg.com/conventional-changelog-conventionalcommits/-/conventional-changelog-conventionalcommits-4.2.3.tgz#22855b32d57d0328951c1c2dc01b172a5f24ea37"
Expand Down Expand Up @@ -7534,6 +7523,11 @@ getpass@^0.1.1:
dependencies:
assert-plus "^1.0.0"

git-cz@^4.7.1:
version "4.7.1"
resolved "https://registry.yarnpkg.com/git-cz/-/git-cz-4.7.1.tgz#90edaa8dba1ec8be689b22fbf8d006c44b21b31f"
integrity sha512-Emb/Xz/LcL3SGxA/PD6RUrhUT6m2v0O9nWTjwCBAoE2UXxj9HkJcfphL3RkePtiTNFkVZMk0q5EUfHnO7HAfiw==

[email protected]:
version "2.0.0"
resolved "https://registry.yarnpkg.com/git-raw-commits/-/git-raw-commits-2.0.0.tgz#d92addf74440c14bcc5c83ecce3fb7f8a79118b5"
Expand Down Expand Up @@ -9900,7 +9894,12 @@ lodash.uniq@^4.5.0:
resolved "https://registry.yarnpkg.com/lodash.uniq/-/lodash.uniq-4.5.0.tgz#d0225373aeb652adc1bc82e4945339a842754773"
integrity sha1-0CJTc662Uq3BvILklFM5qEJ1R3M=

[email protected], lodash@^4.11.2, lodash@^4.17.11, lodash@^4.17.12, lodash@^4.17.13, lodash@^4.17.14, lodash@^4.17.15, lodash@^4.17.5, lodash@^4.2.1, lodash@^4.5.0:
[email protected]:
version "4.17.14"
resolved "https://registry.yarnpkg.com/lodash/-/lodash-4.17.14.tgz#9ce487ae66c96254fe20b599f21b6816028078ba"
integrity sha512-mmKYbW3GLuJeX+iGP+Y7Gp1AiGHGbXHCOh/jZmrawMmsE7MS4znI3RL2FsjbqOyMayHInjOeykW7PEajUk1/xw==

[email protected], lodash@^4.11.2, lodash@^4.17.11, lodash@^4.17.12, lodash@^4.17.13, lodash@^4.17.14, lodash@^4.17.15, lodash@^4.17.5, lodash@^4.5.0:
version "4.17.15"
resolved "https://registry.yarnpkg.com/lodash/-/lodash-4.17.15.tgz#b447f6670a0455bbfeedd11392eff330ea097548"
integrity sha512-8xOcRHvCjnocdS5cpwXQXVzmmh5e5+saE2QGoeQmbKmRS6J3VQppPOIt0MnmE+4xlZoumy0GPG0D0MVIQbNA1A==
Expand Down Expand Up @@ -10349,11 +10348,6 @@ [email protected], minimist@^1.1.1, minimist@^1.2.0:
resolved "https://registry.yarnpkg.com/minimist/-/minimist-1.2.0.tgz#a35008b20f41383eec1fb914f4cd5df79a264284"
integrity sha1-o1AIsg9BOD7sH7kU9M1d95omQoQ=

[email protected]:
version "1.2.3"
resolved "https://registry.yarnpkg.com/minimist/-/minimist-1.2.3.tgz#3db5c0765545ab8637be71f333a104a965a9ca3f"
integrity sha512-+bMdgqjMN/Z77a6NlY/I3U5LlRDbnmaAk6lDveAPKwSpcPM4tKAuYsvYF8xjhOPXhOYGe/73vVLVez5PW+jqhw==

[email protected], minimist@^1.1.3, minimist@^1.2.5:
version "1.2.5"
resolved "https://registry.yarnpkg.com/minimist/-/minimist-1.2.5.tgz#67d66014b66a6a8aaa0c083c5fd58df4e4e97602"
Expand Down Expand Up @@ -14332,7 +14326,7 @@ supports-color@^3.2.3:
dependencies:
has-flag "^1.0.0"

supports-color@^5.3.0, supports-color@^5.4.0:
supports-color@^5.2.0, supports-color@^5.3.0, supports-color@^5.4.0:
version "5.5.0"
resolved "https://registry.yarnpkg.com/supports-color/-/supports-color-5.5.0.tgz#e2e69a44ac8772f78a1ec0b35b689df6530efc8f"
integrity sha512-QjVjwdXIt408MIiAqCX4oUKsgU2EqAGzs2Ppkm4aQYbjm+ZEWEcW4SfFNTr4uMNZma0ey4f5lgLrkB0aX0QMow==
Expand Down

0 comments on commit e0d8b1c

Please sign in to comment.