CLI for creating reusable, modern common libraries using `create-react-library`, `react-styleguidist` or `storybook`.
npm install create-common-libraryCLI for creating reusable, modern common libraries using create-react-library, react-styleguidist or storybook.
The create-common-library library exported as Nodejs module.
Using npm:
```
npm i -g create-common-library
Using yarn:
``
yarn global add create-common-library
default:
``
create-common-library
specify options from the command line:
``
create-common-library --name=newLibrary --template=storybook
create-react-library: the logic is based on create-react-library
react-styleguildist: the logic is based on react-styleguildist
storybook: the logic is based on storybook
and react-styleguildistLocal development is broken into two parts (ideally using two tabs).
First, run rollup to watch your src/ module and automatically recompile it into dist/ whenever you make changes.
`bash`
yarn start # runs rollup with watch flag
The second part will be running the example/ create-react-app that's linked to the local version of your module.
`bash`(in another tab)
cd example
yarn install
yarn start # runs create-react-app dev server
Now, anytime you make a change to your library in src/ or to the example app's example/src, create-react-app will live-reload your local dev server so you can iterate on your component in real-time.
: document: https://storybook.js.org/Example
Select template
Select project name
!Select project name
!Created successfully
Watch your library in
/src`