@storybook/csf-tools

An experimental library to read, analyze, transform, and write CSF programmatically.

Downloads in past

Stats

StarsIssuesVersionUpdatedCreatedSize
@storybook/csf-tools
74,0932,0476.5.1211 days agoa year agoMinified + gzip package size for @storybook/csf-tools in KB

Readme

Storybook CSF Tools
An experimental library to read, analyze, transform, and write CSF programmatically.
  • Read - Parse a CSF file with Babel
  • Analyze - Extract its metadata & stories based on the Babel AST
  • Write - Write the AST back to a file

It can can parse MDX into CSF.
Coming soon:
  • Transform - Update the AST to add/remove/modify stories & metadata (TODO)