@xterm-stack/client-redux
TypeScript icon, indicating that this package has built-in type declarations

0.0.18-48 • Public • Published

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

Versions

Current Tags

VersionDownloads (Last 7 Days)Tag
0.0.18-481latest

Version History

VersionDownloads (Last 7 Days)Published
0.0.18-481
0.0.18-470
0.0.18-460
0.0.18-450
0.0.18-430
0.0.18-410
0.0.18-400
0.0.18-390
0.0.18-380
0.0.18-370
0.0.18-360
0.0.18-350
0.0.18-340
0.0.18-310
0.0.18-300
0.0.18-290
0.0.18-280
0.0.18-270
0.0.18-260
0.0.18-250
0.0.18-220
0.0.18-210
0.0.18-200
0.0.18-190
0.0.18-180
0.0.18-170
0.0.18-160
0.0.18-150
0.0.18-140
0.0.18-130
0.0.18-120
0.0.18-110
0.0.18-101
0.0.18-90
0.0.18-80
0.0.18-70
0.0.18-60
0.0.18-50
0.0.18-30
0.0.18-20
0.0.18-10
0.0.18-00
0.0.170
0.0.160
0.0.16-110
0.0.16-90
0.0.16-80
0.0.16-70
0.0.16-60
0.0.16-30
0.0.16-20
0.0.16-10
0.0.150
0.0.140
0.0.130
0.0.120
0.0.110
0.0.100
0.0.60
0.0.40
0.0.30
0.0.20

Package Sidebar

Install

npm i @xterm-stack/client-redux

Weekly Downloads

2

Version

0.0.18-48

License

MIT

Unpacked Size

79.6 kB

Total Files

17

Last publish

Collaborators

  • xterm-stack