JSPM

@storybook/csf-tools

6.4.0-beta.9
  • ESM via JSPM
  • ES Module Entrypoint
  • Export Map
  • Keywords
  • License
  • Repository URL
  • TypeScript Types
  • README
  • Created
  • Published
  • Downloads 1221073
  • Score
    100M100P100Q185926F
  • License MIT

Package Exports

  • @storybook/csf-tools
  • @storybook/csf-tools/mdx
  • @storybook/csf-tools/mdx.js

This package does not declare an exports field, so the exports above have been automatically detected and optimized by JSPM instead. If any package subpath is missing, it is recommended to post an issue to the original package (@storybook/csf-tools) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.

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)