A modern and elegant dashboard for network traffic visualization and analysis.
#!/usr/bin/env sh
# Only run checks when pushing to main branch
while read local_ref local_oid remote_ref remote_oid; do
if echo "$remote_ref" | grep -q "refs/heads/main$"; then
echo "π Pushing to main β running pre-push checks..."
echo "β Running collector type check..."
pnpm --filter collector exec tsc --noEmit || exit 1
echo "β Building web app..."
pnpm --filter @neko-master/web build || exit 1
echo "β
All checks passed."
exit 0
fi
done
# Not pushing to main, allow push
exit 0