Skip to content

Variants system for Redux (with optional React helpers)

Notifications You must be signed in to change notification settings

homezen/redux-variants

Repository files navigation

redux-variants

Greenkeeper badge

CircleCI codecov

Universal JavaScript variants system for Redux (plus React helpers)

Supported platform

  • node 6.x, 8.x
  • React 16.x
  • Redux 3.x

Unsupported But Should Work

  • React 15.6.x

Getting Started

Running tests

To run the full suite, run

npm tst

Other commands

npm run build

Builds the production assets suitable for release

npm run deploy

Git tags release and publishes to npm

npm start

Runs the test watcher

CI/CD

Releases

Every commit to master defaults to a patch bump. If it needs to be a minor or major, ENSURE YOU DO THE FOLLOWING:

If you would like to create a release, add the following to the merge commit message when you merge a PR:

release v+<bump type>

Where <bump type> is one of:

  • major
  • minor
  • patch (default)

This will:

  1. Bump version in package.json and commit back to master
  2. Git tag that newly created commit with the new version
  3. Publish to npm