@hollis-labs/surface-ui
v0.28.7
Published
Keep an app's copied components identical to the Surface registry: init, add, sync, verify, status and a drift report across apps.
Readme
@hollis-labs/surface-ui
The ui tool for apps built on the Surface registry. It copies
components into the app's source, records them in ui.lock.json, and fails when a copy differs from the
registry: a look is changed in the registry and synced, never edited in the app.
npx surface-ui init --ref v0.1.0 # ui.lock.json naming the registry on GitHub at a tag
npx surface-ui add button dialog # install items and what they depend on
npx surface-ui add --for <package> # the items an installed package draws with
npx surface-ui add --all # every item; required for surface-page/gallery
npx surface-ui sync # reinstall everything locked (after moving ref)
npx surface-ui verify # CI: an edited, stale, missing or stray file fails
npx surface-ui status
npx surface-ui report <app dir...> # drift across several appsOptions: --app <dir> (default the current directory), --registry <dir or URL template>. The registry and
its rules are in the repository's registry/README.md.
