Michael Shilman 61df3ea48c
Update code/lib/csf-tools/src/enrichCsf.ts
Co-authored-by: Jeppe Reinhold <jeppe@chromatic.com>
2023-01-18 10:53:21 +08:00
..
2022-07-21 11:24:07 +02:00
2022-11-14 14:18:39 +01:00

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)