forked from mirrors/thatmattlove-hyperglass
update frontend pre-commit hook
This commit is contained in:
parent
ab47e0e9a0
commit
112acab4dd
2 changed files with 2 additions and 1 deletions
|
|
@ -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
|
||||
|
|
|
|||
|
|
@ -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': '' } },
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue