ValentinH / react-easy-sort

A React component to sort items in lists or grids
https://ValentinH.github.io/react-easy-sort
MIT License
160 stars 25 forks source link

Add storybook #2

Closed raed667 closed 3 years ago

raed667 commented 3 years ago

TL;DR

Adds storybook to use as local development environment. Should close issue https://github.com/ricardo-ch/react-easy-sort/issues/1.

Removed existing example

Removed examples/src/ and the webpack config associated to it.

Created one Example story

It is the same code from the now deleted examples directory.

Added husky

Used a hook to make sure we build the storybook automatically.

Possible improvements

We can load the README.mdas the default welcome screen for the storybook.

We can automatically generate the latest version of docs with every push. (maybe Github Action?)

ValentinH commented 3 years ago

@RaedsLab GH actions seems quite straighforward actually 🎉 https://github.com/marketplace/actions/deploy-to-github-pages

But I can do it later if you don't have time for it 🙂

raed667 commented 3 years ago

But I can do it later if you don't have time for it 🙂

@ValentinH That would awesome thanks!