0.0.9-20 • Published 6 years ago

@container-stack/client-redux v0.0.9-20

Weekly downloads
1
License
MIT
Repository
github
Last release
6 years ago

Redux Package

Redux npm package includes actions, action-types and reducers

  1. TypeScript and Redux: getting started
  2. TypeScript and Redux: async actions
  3. TypeScript and Redux: unit testing with Jest
  4. Integrating TypeScript and redux-thunk

What does it include:

1. exported reducers
2. exported actions
3. exported graphql queries
4. Typescript 2.0.0 => ES6
5. unit testing with jest

Purpose:

This package can be installable in front-end webserver to use the reducers and actions.

The goal is to make a isolated and reusable module that is self-contained. In order to avoid name conflicts, following rules need to be abide. 1. MUST export a function call reducer() 2. MUST export its action creators as functions 3. MUST have action types in the form @npm-module-or-app/ACTION_TYPE eg. @@container-stack/INCREMENT_COUNTER 4. MUST have reducer in the form npm-module-or-app/reducer_name eg. @container-stack/counter

What's not included

  • It does not have any client UI components such as React
  • It does not configure Redux Store

Useful commands:

npm run build       - build the library files
npm run test        - run tests once
npm run test:watch  - run tests in watchmode (Useful for development)

Files explained:

 src                         - directory is used for typescript code that is part of the project
    index.ts                 - Index file of the package. Consists of exported reducers and actions
    index.spec.ts            - Tests file for main
    actions                  - Contains Actions to transform the state tree
        index.ts             - References all the exported actions
    reducers                 - Contains reducers, pure function with (state, action) => state signature. 
        index.ts             - References all the exported reducers.
 package.json                - file is used to describe the library and packages that are required added under peer-dependencies section
 tsconfig.json               - configuration file for the library compilation
 webpack.config.js           - configuration file of the compilation automation process for the library
             
0.0.9-20

6 years ago

0.0.9-19

6 years ago

0.0.9-18

6 years ago

0.0.9-17

6 years ago

0.0.9-16

6 years ago

0.0.9-14

6 years ago

0.0.9-13

6 years ago

0.0.9-11

6 years ago

0.0.9-10

6 years ago

0.0.9-9

6 years ago

0.0.9-8

6 years ago

0.0.9-6

6 years ago

0.0.9-5

6 years ago

0.0.9-4

6 years ago

0.0.25

6 years ago

0.0.24

6 years ago

0.0.23

6 years ago

0.0.21

6 years ago

0.0.20

6 years ago

0.0.18

6 years ago

0.0.17

6 years ago

0.0.14

6 years ago

0.0.13

6 years ago

0.0.12

6 years ago

0.0.9-1

6 years ago

0.0.9-0

6 years ago

0.0.8

6 years ago

0.0.7

6 years ago

0.0.6

6 years ago

0.0.5-17

6 years ago

0.0.5-16

6 years ago

0.0.5-15

6 years ago

0.0.5-14

6 years ago

0.0.5-13

6 years ago

0.0.5-12

6 years ago

0.0.5-11

6 years ago

0.0.5-10

6 years ago

0.0.5-5

6 years ago

0.0.5-4

6 years ago

0.0.5-3

6 years ago

0.0.5-2

6 years ago

0.0.5-1

6 years ago

0.0.5-0

6 years ago

0.0.1

6 years ago