1.0.0 • Published 4 years ago

iamnewton-storybook-config v1.0.0

Weekly downloads
-
License
MIT
Repository
github
Last release
4 years ago

Storybook Configuration

A Storybook configuration for React library/component development.

Installation

npm install --save iamnewton-storybook-config

Usage

In your project package.json, add the following:

{
    "scripts": {
        "docs": "build-storybook -c ./node_modules/iamnewton-storybook-config/ -o docs",
        "start": "concurrently --kill-others-on-fail \"npm test -- --watch\" \"start-storybook -p 9001 -c ./node_modules/iamnewton-storybook-config/\""
    }
}

Versioning

All modules, libraries, or frameworks use SemVer for its versioning providing us an opt-in approach to releases. This means we add a version number according to the spec, as you see below. So rather than force developers to consume the latest and greatest, they can choose which version to consume and test any newer ones before upgrading. Please the read the spec as it goes into further detail.

Given a version number MAJOR.MINOR.PATCH, increment the:

MAJOR version when you make incompatible API changes. MINOR version when you add functionality in a backward-compatible manner. PATCH version when you make backward-compatible bug fixes.

Additional labels for pre-release and build metadata are available as extensions to the MAJOR.MINOR.PATCH format.