Commit 609cdcba authored by lipengcheng 's avatar lipengcheng

feat: x

parent ddd9acbb
{
"path": "cz-conventional-changelog"
}
const tasks = (arr) => arr.join(' && ') const tasks = (arr) => arr.join(" && ");
module.exports = { module.exports = {
// hooks: { // hooks: {
// 'commit-msg': 'commitlint -E HUSKY_GIT_PARAMS', // 'commit-msg': 'commitlint -E HUSKY_GIT_PARAMS',
...@@ -6,9 +6,9 @@ module.exports = { ...@@ -6,9 +6,9 @@ module.exports = {
// 'pre-push': 'yarn lint && yarn test' // 'pre-push': 'yarn lint && yarn test'
// } // }
hooks: { hooks: {
'pre-commit': 'lint-staged', "pre-commit": "lint-staged",
// 'pre-commit': tasks(['lint-staged', 'yarn commit']), // 'pre-commit': tasks(['lint-staged', 'yarn commit']),
'commit-msg': 'commitlint -E HUSKY_GIT_PARAMS', "commit-msg": "commitlint -E HUSKY_GIT_PARAMS",
'pre-push': "echo 'pushing....'", "pre-push": "echo 'pushing....'",
}, },
} };
{ {
"name": "<%= pkgName %>",
"version": "1.0.0", "version": "1.0.0",
"author": "<%= author %>", "author": "<%= author %>",
"description": "<%= description %>", "description": "<%= description %>",
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment