1.0.10 • Published 1 year ago

@devmcee/hygen-stories v1.0.10

Weekly downloads
-
License
ISC
Repository
github
Last release
1 year ago

hygen-stories

CLI wrapper for hygen to generate storybook stories for the existing components (only React at the moment, .tsx)

It recursivly scans the given folder. If it contains .tsx file and no a .stories.tsx, then it generates one. Name of the file and the name of the components that will be used in the story is taken from the .tsx file name. New name will be in the Pascal Case. Hyphen will be replaced and every part of the name be capitalized:

component-name.tsx => ComponentName.tsx

Example usage:

npx @devmcee/hygen-stories --dir src 
Options:
      --help     Show help                                             [boolean]
      --version  Show version number                                   [boolean]
  -d, --dir      directory name, relative path, default is current (./)

TODO:

Use AST analysis of .tsx files to grap the real name of the defined and exported components.

1.0.10

1 year ago

1.0.8

1 year ago

1.0.7

1 year ago

1.0.6

1 year ago

1.0.5

1 year ago

1.0.4

1 year ago

1.0.3

1 year ago

1.0.2

1 year ago

1.0.1

1 year ago