lookingglass/.tests/pre-commit-frontend.sh
2021-01-03 11:05:56 -07:00

13 lines
223 B
Bash
Executable file

#!/usr/bin/env bash
$UI_DIR="hyperglass/ui"
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
yarn typecheck