Skip to content

Commit

Permalink
ci: add post-checkout hook (#86)
Browse files Browse the repository at this point in the history
  • Loading branch information
adamalston authored Dec 3, 2024
1 parent cb3c84a commit 53cd45a
Show file tree
Hide file tree
Showing 3 changed files with 28 additions and 78 deletions.
15 changes: 15 additions & 0 deletions .husky/post-checkout
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
# shellcheck disable=SC2148

set -euo pipefail

main() {
[ "$3" -eq 0 ] && exit 0

export NVM_DIR="$HOME/.nvm"
[ -s "$NVM_DIR/nvm.sh" ] && \. "$NVM_DIR/nvm.sh"
nvm i

npm i
}

main "$@"
84 changes: 7 additions & 77 deletions package-lock.json

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

7 changes: 6 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
"eject": "react-scripts eject",
"lint": "eslint --cache --fix --max-warnings 0 ./src/",
"format": "prettier --cache --write .",
"prepare": "husky install"
"prepare": "husky"
},
"dependencies": {
"react": "^18.3.1",
Expand Down Expand Up @@ -49,5 +49,10 @@
"coveragePathIgnorePatterns": [
"/types/"
]
},
"overrides": {
"nth-check": "^2.0.1",
"postcss": "^8.4.31",
"resolve-url-loader": "^5.0.0"
}
}

0 comments on commit 53cd45a

Please sign in to comment.