Skip to content

A modern and elegant dashboard for network traffic visualization and analysis.

533 B
Raw Blame
#!/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