chore(git-hooks): add Conventional Commits with lint and cli utility
Implementation of conventional commits, a pattern to commit's message with a focus on automation and human read. These changes don't affect the application development, build or run. - `Commitlint` is added to validate all new commits and help developers remember to use patter, before to send to remote repository. - `cz-cli` aka `Commitizen` makes available a cli utility to help developer to create commits. - `Husky` are add for easy integrate on git's hooks.
This commit is contained in:
parent
7e1d48226c
commit
2a843b8d0f
4
.husky/commit-msg
Executable file
4
.husky/commit-msg
Executable file
@ -0,0 +1,4 @@
|
||||
#!/bin/sh
|
||||
. "$(dirname "$0")/_/husky.sh"
|
||||
|
||||
npx --no-install commitlint --edit ""
|
||||
4
.husky/prepare-commit-msg
Executable file
4
.husky/prepare-commit-msg
Executable file
@ -0,0 +1,4 @@
|
||||
#!/bin/sh
|
||||
. "$(dirname "$0")/_/husky.sh"
|
||||
|
||||
exec < /dev/tty && node_modules/.bin/cz --hook || true
|
||||
1
commitlint.config.js
Normal file
1
commitlint.config.js
Normal file
@ -0,0 +1 @@
|
||||
module.exports = {extends: ['@commitlint/config-conventional']}
|
||||
14013
package-lock.json
generated
14013
package-lock.json
generated
File diff suppressed because it is too large
Load Diff
20
package.json
20
package.json
@ -11,21 +11,22 @@
|
||||
"dev-server": "nodemon index.js --ignore ./web/ --ignore ./db/ --ignore ./xmltv.xml",
|
||||
"compile": "babel index.js -d dist && babel src -d dist/src",
|
||||
"package": "sh ./make_dist.sh",
|
||||
"clean": "del-cli --force ./bin ./dist ./.dizquetv ./web/public/bundle.js"
|
||||
"clean": "del-cli --force ./bin ./dist ./.dizquetv ./web/public/bundle.js",
|
||||
"prepare": "husky install"
|
||||
},
|
||||
"author": "vexorian",
|
||||
"license": "Zlib",
|
||||
"dependencies": {
|
||||
"JSONStream": "1.0.5",
|
||||
"angular": "^1.8.0",
|
||||
"angular-router-browserify": "0.0.2",
|
||||
"angular-vs-repeat": "2.0.13",
|
||||
"axios": "^0.21.1",
|
||||
"body-parser": "^1.19.0",
|
||||
"merge" : "2.1.1",
|
||||
"diskdb": "0.1.17",
|
||||
"express": "^4.17.1",
|
||||
"express-fileupload": "^1.2.1",
|
||||
"JSONStream": "1.0.5",
|
||||
"merge": "2.1.1",
|
||||
"node-graceful-shutdown": "1.1.0",
|
||||
"node-ssdp": "^4.0.0",
|
||||
"random-js": "2.1.0",
|
||||
@ -39,16 +40,25 @@
|
||||
"@babel/core": "^7.9.0",
|
||||
"@babel/plugin-proposal-class-properties": "^7.8.3",
|
||||
"@babel/preset-env": "^7.9.5",
|
||||
"@commitlint/cli": "^12.1.4",
|
||||
"@commitlint/config-conventional": "^12.1.4",
|
||||
"browserify": "^16.5.1",
|
||||
"copyfiles": "^2.2.0",
|
||||
"cz-conventional-changelog": "^3.3.0",
|
||||
"del-cli": "^3.0.0",
|
||||
"husky": "^7.0.0",
|
||||
"nexe": "^3.3.7",
|
||||
"nodemon": "^2.0.3",
|
||||
"watchify": "^3.11.1",
|
||||
"nexe": "^3.3.7"
|
||||
"watchify": "^3.11.1"
|
||||
},
|
||||
"babel": {
|
||||
"plugins": [
|
||||
"@babel/plugin-proposal-class-properties"
|
||||
]
|
||||
},
|
||||
"config": {
|
||||
"commitizen": {
|
||||
"path": "./node_modules/cz-conventional-changelog"
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user