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

16 lines
290 B
Bash
Raw Normal View History

2021-01-03 10:59:19 -07:00
#!/usr/bin/env bash
2021-01-03 11:10:20 -07:00
UI_DIR="./hyperglass/ui"
2021-01-03 10:59:19 -07:00
2021-01-03 11:16:03 -07:00
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