Skip to content

Commit

Permalink
refs #167: add pre-commit hook
Browse files Browse the repository at this point in the history
See
[issues/167#issuecomment-1589456767](#167 (comment)).
  • Loading branch information
jenkin committed Jun 26, 2023
1 parent 8f204a8 commit ce4bb49
Show file tree
Hide file tree
Showing 6 changed files with 27 additions and 1 deletion.
Empty file.
Empty file.
Empty file.
4 changes: 4 additions & 0 deletions custom/.husky/pre-commit
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
#!/usr/bin/env sh
. "$(dirname -- "$0")/_/husky.sh"

make check
18 changes: 18 additions & 0 deletions custom/package-lock.json

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

6 changes: 5 additions & 1 deletion custom/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -7,12 +7,16 @@
"scripts": {
"start": "node server.js",
"check": "markdown-link-validator -q -e -o -c 403 --ignorePatternsFrom ./content/.mlvignore ./content",
"test": "echo \"Error: no test specified\" && exit 1"
"test": "echo \"Error: no test specified\" && exit 1",
"prepare": "cd .. && husky install custom/.husky"
},
"license": "https://creativecommons.org/licenses/by-sa/4.0/",
"dependencies": {
"gulp": "4.0.2",
"markdown-link-validator": "github:jenkin/markdown-link-validator#feature/sparkfabrik-enhancements",
"raneto": "0.17.3"
},
"devDependencies": {
"husky": "^8.0.3"
}
}

0 comments on commit ce4bb49

Please sign in to comment.