2.0.0 • Published 6 years ago

@gigster/module-redux-base v2.0.0

Weekly downloads
16
License
UNLICENSED
Repository
-
Last release
6 years ago

redux-base

RoleNameEmailSlack
Product OwnerFrances Haugenfrances@gigster.com@frances
MaintainerGeoff Kindergeoff.kinder@gigster.com@geoff
DeveloperMark Miyashitamark.miyashita@gigster.com@mark

Overview

Adds Redux infrastructure to your React app. This includes a store, a way to easily create and add reducers, and infrastructure to store your state in localstorage on web and native.

Usage

Specification

NameStatusDescription
generateTeststrue/falseSet to true if you would like generated tests to be created for you for the app.
storybooktrue/falseSet to true if you would like to generate storybook decorators for Redux.

Dependencies

This module is dependent on redux version 3.7.2.

Examples

There are two examples for this project:

  1. with-tests - This example is generated with generateTests: true so it has the infrastructure as well as generated tests.
  2. with-storybook - This example is generated with storybook: true so it contains storybook decorators to use when rendering with Redux.

Troubleshooting

Testing

Module tests are defined using a test/scenarios.yaml file. This file defines the set of example gigs that we generate as part of integration testing. To run all tests, run yarn test at the root of this module.

Each scenario is generated in test/scenario/<name> which you can then cd into and run the actual app. For a scenario called default, this is done via:

cd test/scenario/default
yarn install

# Run tests.
yarn test

# Start the app.
yarn start
2.0.0

6 years ago

1.0.5

6 years ago

1.0.4

6 years ago

1.0.3

6 years ago

1.0.2

6 years ago

1.0.1

6 years ago

1.0.0

6 years ago

0.1.7

6 years ago

0.1.6

6 years ago

0.1.5

6 years ago

0.1.4

6 years ago

0.1.3

6 years ago

0.1.2

6 years ago

0.1.1

6 years ago

0.1.0

6 years ago