Skip to content

Commit 68021c9

Browse files
CodexBoshen
andauthored
Changes before error encountered
Agent-Logs-Url: https://github.com/voidzero-dev/vibe-dashboard/sessions/8b0e591d-11fe-4e9a-9c1e-db700618679a Co-authored-by: Boshen <1430279+Boshen@users.noreply.github.com>
1 parent 0e90af1 commit 68021c9

1 file changed

Lines changed: 13 additions & 1 deletion

File tree

CLAUDE.md

Lines changed: 13 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -109,12 +109,24 @@ These commands map to their corresponding tools. For example, `vp dev --port 300
109109

110110
- **Using the package manager directly:** Do not use pnpm, npm, or Yarn directly. Vite+ can handle all package manager operations.
111111
- **Always use Vite commands to run tools:** Don't attempt to run `vp vitest` or `vp oxlint`. They do not exist. Use `vp test` and `vp lint` instead.
112-
- **Running scripts:** Vite+ commands take precedence over `package.json` scripts. If there is a `test` script defined in `scripts` that conflicts with the built-in `vp test` command, run it using `vp run test`.
112+
- **Running scripts:** Vite+ built-in commands (`vp dev`, `vp build`, `vp test`, etc.) always run the Vite+ built-in tool, not any `package.json` script of the same name. To run a custom script that shares a name with a built-in command, use `vp run <script>`. For example, if you have a custom `dev` script that runs multiple services concurrently, run it with `vp run dev`, not `vp dev` (which always starts Vite's dev server).
113113
- **Do not install Vitest, Oxlint, Oxfmt, or tsdown directly:** Vite+ wraps these tools. They must not be installed directly. You cannot upgrade these tools by installing their latest versions. Always use Vite+ commands.
114114
- **Use Vite+ wrappers for one-off binaries:** Use `vp dlx` instead of package-manager-specific `dlx`/`npx` commands.
115115
- **Import JavaScript modules from `vite-plus`:** Instead of importing from `vite` or `vitest`, all modules should be imported from the project's `vite-plus` dependency. For example, `import { defineConfig } from 'vite-plus';` or `import { expect, test, vi } from 'vite-plus/test';`. You must not install `vitest` to import test utilities.
116116
- **Type-Aware Linting:** There is no need to install `oxlint-tsgolint`, `vp lint --type-aware` works out of the box.
117117

118+
## CI Integration
119+
120+
For GitHub Actions, consider using [`voidzero-dev/setup-vp`](https://github.com/voidzero-dev/setup-vp) to replace separate `actions/setup-node`, package-manager setup, cache, and install steps with a single action.
121+
122+
```yaml
123+
- uses: voidzero-dev/setup-vp@v1
124+
with:
125+
cache: true
126+
- run: vp check
127+
- run: vp test
128+
```
129+
118130
## Review Checklist for Agents
119131
120132
- [ ] Run `vp install` after pulling remote changes and before getting started.

0 commit comments

Comments
 (0)