🔧

Vite

v1.1.0Apache 2.0

Vite build validation with automatic package manager detection.

Installation

Install han binary (required for hooks to work):

curl -fsSL https://han.guru/install.sh | bash

Then install this plugin:

han plugin install vite

Overview

Vite build validation with automatic package manager detection.

Overview

Provides Stop hooks that validate Vite builds complete successfully before allowing Claude to finish working.

Installation

bash
han plugin install jutsu-vite

Features

  • Automatic package manager detection (npm, yarn, pnpm, bun)
  • Build validation on Stop hook
  • Caches successful builds to avoid redundant runs
  • Works with Vue, Svelte, React, and vanilla projects

Hooks

âš ī¸

Token Usage Notice

Hooks run automatically during Claude Code sessions and their output is sent to the model for processing. This may increase token usage and associated costs. Consider disabling hooks you don't need via han-config.yml.

🛑

Stop

Runs when the main Claude Code agent has finished responding. Can verify task completion, check quality gates, or ensure documentation requirements are met before the session ends.

if [ -f bun.lock ] || [ -f bun.lockb ]; then bun run build
elif [ -f pnpm-lock.yaml ]; then pnpm run build
elif [ -f yarn.lock ]; then yarn build
else npm run build; fi