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

15 lines
290 B
Bash
Executable file

#!/usr/bin/env bash
UI_DIR="./hyperglass/ui"
cd $UI_DIR
node_modules/.bin/tsc
# if git diff --cached --name-only | grep --quiet $UI_DIR
# then
# cd $UI_DIR
# node_modules/.bin/tsc
# else
# echo "No frontend files have changed, skipping pre-commit check..."
# exit 0
# fi