Skip to content

vnys/react-storybook-setup

Repository files navigation

react-storybook-setup

A basic setup for React, Storybook, Rollup, Lerna, Conventional Commits, Eslint, Styled Components, Travis etc.

What's included

Workflow

yarn start - runs test, generates output, starts storybook yarn test:watch - run this in a separate window

If a snapshot test fails because you've changed something, type "u" to update the snapshot

yarn build:components - runs tests, runs lerna run build, which in turn runs the build command in all components

Depencencies

Common dependencies are installed in the root package.json, and pointed to in the individual modules package.jsons using relative file: specifiers. These get symlinked during npm installed, and during deployment the version number gets pulled from the root package.json.

We use lerna to run tasks across multiple packages, but do not use other functionalities.

About

Basic setup for react component development

Resources

Stars

Watchers

Forks

Packages

No packages published