Skip to content

Latest commit

 

History

History
28 lines (18 loc) · 865 Bytes

ui-workshop.md

File metadata and controls

28 lines (18 loc) · 865 Bytes

Preset: ui-workshop

Usage

Inject into existing package

npx @sanity/plugin-kit@latest inject --preset-only --preset ui-workshop

Use to init plugin

npx @sanity/plugin-kit@latest init --preset ui-workshop <new-plugin-name>

What does it do?

Sets up your package with @sanity/ui-workshop, to make component testing a breeze.

  • Adds @sanity/ui-workshop dev dependency.
  • Adds a example files for testing components using @sanity/ui-workshop
  • Adds .workshop to .gitignore

Manual steps after inject

  • Run npm i to install dependencies.
  • Start the workshop with workshop dev.
  • Put your plugin/package components into workshop to test them.
  • Refer to @sanity/ui-workshop README for more.