1
0
mirror of https://github.com/checktheroads/hyperglass synced 2024-05-11 05:55:08 +00:00
checktheroads-hyperglass/.tests/pre-commit-frontend.sh

14 lines
223 B
Bash
Raw Normal View History

2021-01-03 10:59:19 -07:00
#!/usr/bin/env bash
2021-01-03 11:05:56 -07:00
$UI_DIR="hyperglass/ui"
2021-01-03 10:59:19 -07:00
2021-01-03 11:05:56 -07:00
if git diff --cached --name-only | grep --quiet "$UI_DIR"
then
echo "No frontend files have changed, skipping pre-commit check..."
exit 0
fi
cd $UI_DIR
2021-01-03 10:59:19 -07:00
2021-01-03 11:01:40 -07:00
yarn typecheck