0.0.18-48 • Published 5 years ago

@xterm-stack/client-redux v0.0.18-48

Weekly downloads
-
License
MIT
Repository
github
Last release
5 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. @@xterm-stack/INCREMENT_COUNTER 4. MUST have reducer in the form npm-module-or-app/reducer_name eg. @xterm-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.18-48

5 years ago

0.0.18-47

5 years ago

0.0.18-46

5 years ago

0.0.18-45

6 years ago

0.0.18-43

6 years ago

0.0.18-41

6 years ago

0.0.18-40

6 years ago

0.0.18-39

6 years ago

0.0.18-38

6 years ago

0.0.18-37

6 years ago

0.0.18-36

6 years ago

0.0.18-35

6 years ago

0.0.18-34

6 years ago

0.0.18-31

6 years ago

0.0.18-30

6 years ago

0.0.18-29

6 years ago

0.0.18-28

6 years ago

0.0.18-27

6 years ago

0.0.18-26

6 years ago

0.0.18-25

6 years ago

0.0.18-22

6 years ago

0.0.18-21

6 years ago

0.0.18-20

6 years ago

0.0.18-19

6 years ago

0.0.18-18

6 years ago

0.0.18-17

6 years ago

0.0.18-16

6 years ago

0.0.18-15

6 years ago

0.0.18-14

6 years ago

0.0.18-13

6 years ago

0.0.18-12

6 years ago

0.0.18-11

6 years ago

0.0.18-10

6 years ago

0.0.18-9

6 years ago

0.0.18-8

6 years ago

0.0.18-7

6 years ago

0.0.18-6

6 years ago

0.0.18-5

6 years ago

0.0.18-3

6 years ago

0.0.18-2

6 years ago

0.0.18-1

6 years ago

0.0.18-0

6 years ago

0.0.17

6 years ago

0.0.16

6 years ago

0.0.16-11

6 years ago

0.0.16-9

6 years ago

0.0.16-8

6 years ago

0.0.16-7

6 years ago

0.0.16-6

6 years ago

0.0.16-3

6 years ago

0.0.16-2

6 years ago

0.0.16-1

6 years ago

0.0.15

6 years ago

0.0.14

6 years ago

0.0.13

6 years ago

0.0.12

6 years ago

0.0.11

6 years ago

0.0.10

6 years ago

0.0.6

7 years ago

0.0.4

7 years ago

0.0.3

7 years ago

0.0.2

7 years ago