update frontend pre-commit hook

This commit is contained in:
checktheroads 2021-01-03 11:12:34 -07:00
parent ab47e0e9a0
commit 112acab4dd
2 changed files with 2 additions and 1 deletions

View file

@ -5,7 +5,7 @@ UI_DIR="./hyperglass/ui"
if git diff --cached --name-only | grep --quiet $UI_DIR
then
cd $UI_DIR
yarn typecheck
node_modules/.bin/tsc
else
echo "No frontend files have changed, skipping pre-commit check..."
exit 0

View file

@ -8,6 +8,7 @@ const config = require(String(configFile));
const { NODE_ENV: env, _HYPERGLASS_URL_: envUrl } = config;
// testing
const devProxy = {
'/api/query/': { target: envUrl + 'api/query/', pathRewrite: { '^/api/query/': '' } },
'/images': { target: envUrl + 'images', pathRewrite: { '^/images': '' } },