If you've found an issue or you have feature request - open an issue or look if it was already created.
- Clone repository:
git clone git@github.com:storyblok-components/components.git
- Install dependencies by running
yarn
- Install
sb-mig
CLI globally
npm install --global sb-mig@latest
- Install
create-component
plugin forsb-mig
sb-mig plugin:install create-component
- Run
sb-mig create-component name-of-the-component
- It will create folder
name-of-the-component
inside@storyblok-components
folder. Content of the folder:
content
...
- When React and Storyblok Schema part are created, and ready to release:
- a.
git checkout -b name-of-branch
to create branch - a. run
git commit -m ""
- b. it will prompt couple question to be compliant with conventional commits rules
- c.
git push
- d. wait for code review
After successfull code review and merge to master, it will be automatically build and deploy to npm. You can install your new component in other projects like:
npm install @storyblok-components/name-of-the-component
or with yarn
yarn add @storyblok-components/name-of-the-component
- ?
- Special thanks to Pedro Sousa for lerna magic.