Commit 5a9fd2b
chore: replace husky with vp git hooks (#1001)
Replace husky and lint-staged with the built-in Vite+ hooks, so this
repo dogfoods `vp config` and `vp staged`.
- `.vite-hooks/pre-commit` runs `vp staged`
- The lint-staged rules move to the `staged` block in `vite.config.ts`
- `prepare` runs `vp config` instead of `husky`
- Remove husky and lint-staged from the root package.json and husky from
the catalog (`packages/cli` keeps lint-staged, it implements `vp
staged`)
Hooks stay opt-in: the repo sets `ignoreScripts: true`, so `prepare`
does not run on `pnpm install`. To activate, run `vp config` after `pnpm
build`. If a clone activated husky before, run `git config --unset
core.hooksPath` once first.
Earlier revisions also committed `vp config` agent files
(`.claude/settings.json`, a skills symlink, a CLAUDE.md block). The
rebase dropped them: `vp mcp` and the shipped skills directory no longer
exist, and repo guidance now lives in AGENTS.md.
---------
Co-authored-by: MK <fengmk2@gmail.com>1 parent 302f2d7 commit 5a9fd2b
7 files changed
Lines changed: 10 additions & 25 deletions
File tree
- .husky
- .vite-hooks
This file was deleted.
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
53 | 53 | | |
54 | 54 | | |
55 | 55 | | |
| 56 | + | |
| 57 | + | |
| 58 | + | |
| 59 | + | |
56 | 60 | | |
57 | 61 | | |
58 | 62 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
20 | 20 | | |
21 | 21 | | |
22 | 22 | | |
23 | | - | |
| 23 | + | |
24 | 24 | | |
25 | 25 | | |
26 | 26 | | |
| |||
30 | 30 | | |
31 | 31 | | |
32 | 32 | | |
33 | | - | |
34 | | - | |
35 | 33 | | |
36 | 34 | | |
37 | 35 | | |
38 | 36 | | |
39 | 37 | | |
40 | 38 | | |
41 | | - | |
42 | | - | |
43 | | - | |
44 | | - | |
45 | 39 | | |
46 | 40 | | |
47 | 41 | | |
| |||
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
86 | 86 | | |
87 | 87 | | |
88 | 88 | | |
89 | | - | |
90 | 89 | | |
91 | 90 | | |
92 | 91 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | 1 | | |
2 | 2 | | |
3 | 3 | | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
4 | 8 | | |
5 | 9 | | |
6 | 10 | | |
| |||
0 commit comments