Skip to content

Commit

Permalink
build: git hook updates
Browse files Browse the repository at this point in the history
* Update husky and lint-staged to latest version
* add post-checkout hook to automatically copy proxy.conf.template.js to proxy.conf.js if it does not already exist.
  • Loading branch information
jrassa committed Mar 5, 2024
1 parent 58908c5 commit 17239d7
Show file tree
Hide file tree
Showing 6 changed files with 615 additions and 318 deletions.
2 changes: 2 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
# See http://help.github.com/ignore-files/ for more about ignoring files.

proxy.conf.json

# Compiled output
/dist
/tmp
Expand Down
4 changes: 4 additions & 0 deletions .husky/post-checkout
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
if ! test -f proxy.conf.json; then
echo "proxy.conf.json not found. Creating from template..."
cp proxy.conf.template.json proxy.conf.json
fi
3 changes: 0 additions & 3 deletions .husky/pre-commit
Original file line number Diff line number Diff line change
@@ -1,4 +1 @@
#!/bin/sh
. "$(dirname "$0")/_/husky.sh"

npx lint-staged
Loading

0 comments on commit 17239d7

Please sign in to comment.