Skip to main content
Version: v1 (Current)

Verifying library changes

Run pnpm typecheck, pnpm test:run, and pnpm test:manifest for changes to public components, composables or experience flows. typecheck checks publishable source/demos; typecheck:all also checks legacy test/story typing.

pnpm test:package checks the actual archive and compiles a standalone Vue consumer and the complete written examples against its declarations.

pnpm build builds ES modules and portable Vue declaration modules, compiles utility CSS, and combines extracted Vue SFC CSS into both complete stylesheet entrypoints. Check consumers with their actual build tool after changing export paths, dependency handling or style imports.

pnpm storybook:build checks every story can compile and regenerates both machine catalogs. Use Storybook to exercise keyboard interaction and alternate themes. Media-device flows also need testing in a secure browser context with the intended device and iframe permissions.

After changing public contracts or examples, run pnpm docs:generate and pnpm docs:check in the owning AppUI checkout. Commit generated references with their source change. The owning scripts/sync-developer-docs.mjs preserves front matter but replaces authored Markdown bodies too, so the documentation hub refreshes generated outputs and reconciles authored guides manually.

Refresh this documentation hub​

Use a clean AppUI checkout at the source commit you intend to review, with dependencies installed from its lockfile. Record the commit/version; review newer contracts against that source instead of assuming they exist in the registry. Run the following from the documentation repository root. It copies generation inputs to a disposable directory and leaves the owning checkout untouched:

appui_owner="$(cd ../appui && pwd)"
git -C "$appui_owner" rev-parse HEAD
node -p "JSON.parse(require('fs').readFileSync(process.argv[1], 'utf8')).version" "$appui_owner/package.json"
git -C "$appui_owner" status --short
# Stop and reconcile with the owner if this checkout contains uncommitted work.
appui_generation="$(mktemp -d)"
mkdir -p "$appui_generation/docs/experience-flow" "$appui_generation/examples"
cp -R "$appui_owner/src" "$appui_owner/scripts" "$appui_owner/.storybook" "$appui_generation/"
cp -R "$appui_owner/examples/app-patterns" "$appui_generation/examples/"
cp "$appui_owner/package.json" "$appui_owner/pnpm-lock.yaml" "$appui_owner"/tsconfig*.json "$appui_generation/"
ln -s "$appui_owner/node_modules" "$appui_generation/node_modules"
node "$appui_generation/scripts/generate-api-docs.mjs"
node .github/scripts/sync-appui-docs.cjs "$appui_owner" "$appui_generation/docs/reference"
node .github/scripts/check-appui-doc-examples.mjs "$appui_owner" --include-generated-helpers
node .github/scripts/run-appui-doc-examples.mjs "$appui_owner"
node --test .github/scripts/appui-reference-utils.test.cjs

The dependency link is for this read-only extractor run. Build/test tools that write caches require an isolated dependency/cache setup; the hub's example runners prepare that separately. The hub sync updates generated references and the page-default catalog, repairs Markdown code escaping, pins repository links and preserves existing Docusaurus metadata. Reconcile authored guides manually, add navigation for new pages and review the .mdx Storybook wrapper separately.

Build the website with npm --prefix website run build, then refresh the hash-guarded review ledger with actual review evidence and run node .github/scripts/update-doc-coverage.cjs. That inventory must correspond to the final built article bodies. A successful generation/build does not certify individual runtime excerpts or live browser/platform behavior.

Write behavioral tests for consequential interactions: validation, selection payloads, navigation while busy, reset during pending work, retry, cleanup, portal placement and asynchronous errors. Avoid tests that merely repeat generated markup or enumerate the implementation's constants.