Skip to content

Commit

Permalink
chore(husky): improve tasks
Browse files Browse the repository at this point in the history
  • Loading branch information
zaldih committed Oct 9, 2022
1 parent ae8bf4b commit 0e7c50b
Show file tree
Hide file tree
Showing 4 changed files with 10 additions and 6 deletions.
4 changes: 4 additions & 0 deletions .husky/commit-msg
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
#!/usr/bin/env sh
. "$(dirname -- "$0")/_/husky.sh"

npx --no -- commitlint --edit
2 changes: 1 addition & 1 deletion .husky/pre-commit
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#!/usr/bin/env sh
. "$(dirname -- "$0")/_/husky.sh"

npm test
npx lint-staged
2 changes: 1 addition & 1 deletion package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

8 changes: 4 additions & 4 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,8 @@
"test:mutant": "stryker run",
"release": "npm run build && np",
"debug": "TS_NODE_FILES=true node --inspect -r ts-node/register ./src/main.ts",
"prepare": "husky install"
"prepare": "husky install",
"format": "prettier --write ."
},
"dependencies": {
"ansi-escapes": "^4.3.1",
Expand All @@ -67,7 +68,7 @@
"lint-staged": "^13.0.3",
"np": "^7.5.0",
"pre-commit": "^1.2.2",
"prettier": "^2.0.2",
"prettier": "^2.7.1",
"rimraf": "^3.0.2",
"stryker-cli": "^1.0.2",
"ts-jest": "^29.0.2",
Expand All @@ -88,8 +89,7 @@
},
"lint-staged": {
"*.{js,ts,css,json,md}": [
"prettier --write",
"git add"
"prettier --write"
]
}
}

0 comments on commit 0e7c50b

Please sign in to comment.