1.1.2 • Published 8 years ago
sb-cli v1.1.2
sb-cli
Easiest way to add SB to your project.
Install sb-cli globally.
npm i -g sb-cliThen go to your project and run:
sb-createThat's all you've to do.
Yarn support
sb-cli also supports yarn. If you are using yarn, this is how to use it:
yarn global add sb-cli
sb-create --use-yarnsb-create will identify it's installed with yarn and it'll use yarn to install deps.
This is the way, if you wanna use yarn for all of your storybook projects.
If that's not the case, you can do this:
npm i -g sb-cli
getstorybook --use-yarnFor more information, refer SB documentation.