You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: docs/guide/commit-hooks.md
+9Lines changed: 9 additions & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -22,8 +22,17 @@ If you use [`vp create`](/guide/create) or [`vp migrate`](/guide/migrate), Vite+
22
22
```bash
23
23
vp config
24
24
vp config --hooks-dir .vite-hooks
25
+
vp config --no-hooks
26
+
vp config --no-agent
25
27
```
26
28
29
+
Use `--no-hooks` when you want `vp config` to leave existing Git hook setup unchanged. Use
30
+
`--no-agent` when you want it to skip updates to existing coding agent instruction files. You
31
+
can pass both flags when you want `vp config` to skip both setup steps.
32
+
33
+
You can also set `VITE_GIT_HOOKS=0` to disable hook installation from lifecycle scripts such as
34
+
`prepare` or `postinstall`.
35
+
27
36
### `vp staged`
28
37
29
38
`vp staged` runs staged-file checks using the `staged` config from `vite.config.ts`. If you set up Vite+ to handle your commit hooks, it will automatically run when you commit your local changes.
Copy file name to clipboardExpand all lines: packages/cli/README.md
+4-2Lines changed: 4 additions & 2 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -3,7 +3,7 @@
3
3
**The Unified Toolchain for the Web**
4
4
_runtime and package management, create, dev, check, test, build, pack, and monorepo task caching in a single dependency_
5
5
6
-
This package provides the project-local version of Vite+. The global `vite` command automatically delegates to this package for all project-specific tasks.
6
+
This package provides the project-local version of Vite+. The global `vp` command automatically delegates to this package for all project-specific tasks.
7
7
8
8
---
9
9
@@ -111,6 +111,7 @@ Use `vp migrate` to migrate to Vite+. It merges tool-specific config files such
111
111
112
112
-**run** - Run monorepo tasks
113
113
-**exec** - Execute a command from local `node_modules/.bin`
114
+
-**node** - Run a Node.js script with the resolved Vite+ environment
114
115
-**dlx** - Execute a package binary without installing it as a dependency
115
116
-**cache** - Manage the task cache
116
117
@@ -122,7 +123,7 @@ Use `vp migrate` to migrate to Vite+. It merges tool-specific config files such
122
123
123
124
#### Manage Dependencies
124
125
125
-
Vite+ automatically wraps your package manager (pnpm, npm, or Yarn) based on `packageManager` and lockfiles:
126
+
Vite+ automatically wraps your package manager (pnpm, npm, Yarn, or Bun) based on `packageManager` and lockfiles:
126
127
127
128
-**add** - Add packages to dependencies
128
129
-**remove** (`rm`, `un`, `uninstall`) - Remove packages from dependencies
@@ -133,6 +134,7 @@ Vite+ automatically wraps your package manager (pnpm, npm, or Yarn) based on `pa
133
134
-**why** (`explain`) - Show why a package is installed
134
135
-**info** (`view`, `show`) - View package metadata from the registry
135
136
-**link** (`ln`) / **unlink** - Manage local package links
137
+
-**rebuild** - Rebuild native modules
136
138
-**pm** - Forward a command to the package manager
0 commit comments