Node.js >= v20 must be installed. CI tests on Node 20, 22 and 24.
- Running
npm installin the component's root directory will install everything you need for development. - Running
npm installin thedemodirectory will install everything you need to run the demo app locally.
npm run devfrom thedemodirectory runs the demo app at http://localhost:5173 with hot module reloading. The demo imports the component straight fromsrc/, so it doubles as a development harness.
npm testruns the tests once.npm run test:coverageruns the tests and produces a coverage report incoverage/.npm run test:watchruns the tests on every change.
npm run buildbuilds the component for publishing to npm.npm run buildin thedemodirectory builds the demo app.
- Commit messages follow Conventional Commits 1.0.
- All dependency versions are pinned exact (no
^/~ranges). - No
console.log/console.debug— useconsole.info,console.warn, orconsole.error.