0.0.5 • Published 3 years ago

@fiahfy/storiesof2csf v0.0.5

Weekly downloads
5
License
MIT
Repository
github
Last release
3 years ago

storiesof2csf

badge

CLI to convert old-style storiesOf stories into Component Story Format (CSF).
This package extends storiesof-to-csf transform to support dynamic story titles and story files written in TypeScript or Flow.

Installation

npm install @fiahfy/storiesof2csf

Usage

import { convert } from '@fiahfy/storiesof2csf'

convert(code, { parser: 'babel' })

CLI

npm install -g @fiahfy/storiesof2csf
storiesof2csf Button.stories.js

or use via npx

npx @fiahfy/storiesof2csf Button.stories.js
0.0.5

3 years ago

0.0.4

4 years ago

0.0.3

4 years ago

0.0.2

4 years ago

0.0.1

4 years ago