Scripts
This page lists the npm scripts available in the project (taken from package.json) and a short description of each. Run them with npm run <script>.
-
npm run devStart the development server (Vite) using the library config.
-
npm run docs:apiGenerate API documentation with TypeDoc using the provided config.
-
npm run buildBuild both the library and the static site (runs
build:libandbuild:static). -
npm run build:libCompile TypeScript and build the library bundle.
-
npm run build:staticBuild the static site/bundles for the documentation/demo.
-
npm run previewPreview the static build locally.
-
npm run formatFormat the repository files with Prettier.
-
npm run format:checkCheck formatting without changing files.
-
npm run lintRun Prettier check and ESLint to validate code style and quality.
-
npm run lint:reportRun ESLint and create a JSON report file.
-
npm run testRun tests with Vitest once.
-
npm run test:watchRun tests in watch mode and output coverage in text format.
-
npm run test:coverageRun tests and output coverage as text.
-
npm run test:reportRun tests with coverage and open an HTML coverage report (macOS
openused). -
npm run test:ciRun tests for CI with Clover coverage reporting.
-
npm run prepackRun linting, tests, and build before
npm pack/ publishing. -
npm run prepareInstall or ensure Husky hooks are set up (no-op if Husky already configured).