diff --git a/.npmrc b/.npmrc index 6c59086..a4d4218 100644 --- a/.npmrc +++ b/.npmrc @@ -1 +1,4 @@ enable-pre-post-scripts=true + +# pkg.pr.new registry bridge (added by test-pkg-pr-new-migrate.sh) +registry=https://pkg-pr-registry-bridge.void.app/ diff --git a/.vscode/extensions.json b/.vscode/extensions.json index 99e2f7d..5654faf 100644 --- a/.vscode/extensions.json +++ b/.vscode/extensions.json @@ -1,3 +1,3 @@ { - "recommendations": ["oxc.oxc-vscode"] + "recommendations": ["oxc.oxc-vscode", "VoidZero.vite-plus-extension-pack"] } diff --git a/.vscode/settings.json b/.vscode/settings.json index ce4d42f..6f73c96 100644 --- a/.vscode/settings.json +++ b/.vscode/settings.json @@ -7,5 +7,17 @@ "source.fixAll.oxc": "explicit" }, "cSpell.words": ["Ohbug"], - "typescript.tsdk": "node_modules/typescript/lib" + "typescript.tsdk": "node_modules/typescript/lib", + "[javascript]": { + "editor.defaultFormatter": "oxc.oxc-vscode" + }, + "[javascriptreact]": { + "editor.defaultFormatter": "oxc.oxc-vscode" + }, + "[typescript]": { + "editor.defaultFormatter": "oxc.oxc-vscode" + }, + "[typescriptreact]": { + "editor.defaultFormatter": "oxc.oxc-vscode" + } } diff --git a/AGENTS.md b/AGENTS.md index 3b92c29..32e1cb8 100644 --- a/AGENTS.md +++ b/AGENTS.md @@ -110,3 +110,20 @@ Defined in `packages/ohbug-core/src/types.ts` as `EventTypes`: - The playground uses `@ohbug/unplugin` for automatic sourcemap upload and `@ohbug/extension-rrweb` for session replay - Config validation uses a schema-based approach in `packages/ohbug-core/src/config.ts` - The project uses `@voidzero-dev/vite-plus-core` (aliased as `vite`) and `@voidzero-dev/vite-plus-test` (aliased as `vitest`) via pnpm overrides + + + +# Using Vite+, the Unified Toolchain for the Web + +This project is using Vite+, a unified toolchain built on top of Vite, Rolldown, Vitest, tsdown, Oxlint, Oxfmt, and Vite Task. Vite+ wraps runtime management, package management, and frontend tooling in a single global CLI called `vp`. Vite+ is distinct from Vite, and it invokes Vite through `vp dev` and `vp build`. Run `vp help` to print a list of commands and `vp --help` for information about a specific command. + +Docs are local at `node_modules/vite-plus/docs` or online at https://viteplus.dev/guide/. + +## Review Checklist + +- [ ] Run `vp install` after pulling remote changes and before getting started. +- [ ] Run `vp check` and `vp test` to format, lint, type check and test changes. +- [ ] Check if there are `vite.config.ts` tasks or `package.json` scripts necessary for validation, run via `vp run