mirror of
https://github.com/bitsocialnet/5chan.git
synced 2026-08-03 07:41:04 +02:00
chore(package.json): add husky git hooks, commitizen and changelog
This commit is contained in:
+23
-2
@@ -64,7 +64,8 @@
|
||||
"electron:before:download-ipfs": "node electron/downloadIpfs",
|
||||
"electron:before:delete-data": "rimraf .plebbit",
|
||||
"android:build:icons": "cordova-res android --skip-config --copy --resources /tmp/plebbit-react-android-icons --icon-source ./android/icons/icon.png --splash-source ./android/icons/splash.png --icon-foreground-source ./android/icons/icon-foreground.png --icon-background-source '#ffffee'",
|
||||
"prettier": "prettier src/**/*.{js,jsx} --write"
|
||||
"prettier": "prettier src/**/*.{js,jsx} --write",
|
||||
"changelog": "conventional-changelog -p angular -i CHANGELOG.md -s -r 0"
|
||||
},
|
||||
"eslintConfig": {
|
||||
"extends": [
|
||||
@@ -135,9 +136,29 @@
|
||||
"prettier": "2.3.2",
|
||||
"source-map-explorer": "2.5.3",
|
||||
"typescript": "5.0.2",
|
||||
"wait-on": "7.0.1"
|
||||
"wait-on": "7.0.1",
|
||||
"conventional-changelog-cli": "4.1.0",
|
||||
"cz-conventional-changelog": "3.3.0",
|
||||
"husky": "4.3.8",
|
||||
"lint-staged": "12.3.8"
|
||||
},
|
||||
"resolutions": {
|
||||
"styled-components": "^5"
|
||||
},
|
||||
"lint-staged": {
|
||||
"{src,test,config}/**/*.{cjs,js,jsx,ts,tsx}": [
|
||||
"prettier --config config/prettier.config.js --write"
|
||||
]
|
||||
},
|
||||
"husky": {
|
||||
"hooks": {
|
||||
"prepare-commit-msg": "exec < /dev/tty && cz --hook || true",
|
||||
"pre-commit": "lint-staged"
|
||||
}
|
||||
},
|
||||
"config": {
|
||||
"commitizen": {
|
||||
"path": "./node_modules/cz-conventional-changelog"
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user