Documentation
Library Mode
Generate a publishable ESM component package with Storybook.
--type library generates an ESM-only component package.
bash
npm create bonesmith@latest my-lib -- --type libraryWhat it includes
- It builds with
vp pack(Vite+) or Vite library mode. Output isdist/index.jsanddist/index.d.ts, plus./styles.csswhen the styling option emits CSS. reactandreact-domare peer dependencies, as are MUI and Mantine when you pick them.- Storybook is always included. Stories run as Vitest browser tests (Playwright Chromium) as part of
test, andbuild-storybookbuilds the static site.
Routing and state are not used in library mode. Passing
--routing or --state is an error.