Development and contributing
Development
Section titled “Development”npm installnpm run dev # playground with demo componentsnpm run dev:site # landing page with the same playground insidenpm run build:site # build the site into dist-sitenpm test # vitestnpm run test:coveragenpm run test:e2e # playwright, the panel in a real browsernpm run typecheck # vue-tscnpm run lintnpm run buildTests mount real Vue applications in jsdom and cover the whole path: from a ref changing
to the registry recording it with the correct reason. The overlay is verified against a
stubbed 2d context, the panel through @vue/test-utils.
What jsdom cannot do by design — layout and dragging, a real keyboard, the clipboard, picking
a file, prefers-color-scheme — is covered by Playwright in e2e/ against a small fixture
app. Logic is not duplicated there: it stays in the unit tests.
CI runs lint, types and tests on Node 20/22/24, separately verifies installation and building under pnpm, yarn and bun, and then installs the packed tarball into a clean project with each of the four managers, exercising both the ESM and the CJS entry point.
Releases go to npm on a v* tag through trusted publishing: there are no tokens in
repository secrets — npm exchanges the Actions OIDC token for one-time credentials and
attaches provenance itself.
Working on the docs
Section titled “Working on the docs”The documentation site lives in docs-site/ (Astro + Starlight) and needs Node 22.23.4 or
newer (nvm use 22.23.4). npm run docs:dev starts it locally. To check it the way CI does:
npm run build:site && npm run docs:build && npm run docs:testContributing
Section titled “Contributing”Bug reports, ideas and pull requests are welcome — see CONTRIBUTING.md for the development setup and what a pull request should include.