No Preview

Sorry, but you either have no stories or none are selected somehow.

If the problem persists, check the browser console, or the terminal you've run Storybook from.

Development

Setup

Install the latest Node JS LTS and Yarn and simply run yarn or yarn install command in the root and stories directory.

It is advised to run the script whenever NPM packages are installed.

Local development

During development:

# watch and build new source changes yarn start # or serve *.stories.js files and manually test on the Storybook app yarn storybook

Including NPM packages

This project uses two package.json structure

Library dependencies

yarn add [package-name] --dev # for dev tools yarn add [package-name] # for app

Lint

yarn lint # runs linter to detect any style issues (css & js) yarn lint:css # lint only css yarn lint:js # lint only js yarn lint:js --fix # tries to fix js lint issues

Test

yarn test:tdd # runs functional/unit tests using Jest with watcher yarn test # runs functional/unit tests using Jest yarn test --coverage # with coverage

Build

yarn build # builds sources at src/