2.1.1-alpha.1 • Published 3 years ago

@files-stack/client-state v2.1.1-alpha.1

Weekly downloads
256
License
MIT
Repository
github
Last release
3 years ago

Client State Package

All client(cache) state management will be done in this package. It not includes Redux,Apollo Client, Redux-Epics or anything that is used for managing the state.

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. @@files-stack/INCREMENT_COUNTER 4. MUST have reducer in the form npm-module-or-app/reducer_name eg. @files-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
             
2.1.1-alpha.1

3 years ago

0.0.59-alpha.41

3 years ago

0.0.59-alpha.40

3 years ago

2.0.1-alpha.0

3 years ago

0.0.59-alpha.37

3 years ago

0.0.59-alpha.36

3 years ago

0.0.59-alpha.35

4 years ago

0.0.59-alpha.34

4 years ago

0.0.59-alpha.33

4 years ago

0.0.59-alpha.32

4 years ago

0.0.59-alpha.29

4 years ago

0.0.59-alpha.24

4 years ago

0.0.59-alpha.23

4 years ago

0.0.59-alpha.22

4 years ago

0.0.59-alpha.19

4 years ago

0.0.59-alpha.18

4 years ago

0.0.59-alpha.12

4 years ago

0.0.59-alpha.6

4 years ago

0.0.59-alpha.5

4 years ago

0.0.59-alpha.0

4 years ago

0.0.58-alpha.60

4 years ago

0.0.58-alpha.58

4 years ago

0.0.58-alpha.57

4 years ago

0.0.58-alpha.56

4 years ago

0.0.58-alpha.55

4 years ago

0.0.58-alpha.54

4 years ago

0.0.58-alpha.49

4 years ago

0.0.58-alpha.47

4 years ago

0.0.58-alpha.46

4 years ago

0.0.58-alpha.42

4 years ago

0.0.58-alpha.41

4 years ago

0.0.58-alpha.40

4 years ago

0.0.58-alpha.38

4 years ago

0.0.58-alpha.35

4 years ago

0.0.58-alpha.30

4 years ago

0.0.58-alpha.29

4 years ago

0.0.58-alpha.27

4 years ago

0.0.58-alpha.28

4 years ago

0.0.58-alpha.18

4 years ago

0.0.58-alpha.15

4 years ago

0.0.58-alpha.11

4 years ago

0.0.58-alpha.14

4 years ago

0.0.58-alpha.13

4 years ago

0.0.58-alpha.7

4 years ago

0.0.58-alpha.4

4 years ago

0.0.58-alpha.0

4 years ago

0.0.56-162

4 years ago

0.0.57

4 years ago

0.0.56-158

4 years ago

0.0.56-154

4 years ago

0.0.56-155

4 years ago

0.0.56-151

4 years ago

0.0.56-150

4 years ago

0.0.56-148

4 years ago

0.0.56-149

4 years ago

0.0.56-138

4 years ago

0.0.56-135

4 years ago

0.0.56-134

4 years ago

0.0.56-130

4 years ago

0.0.56-125

4 years ago

0.0.56-126

4 years ago

0.0.56-118

4 years ago

0.0.56-117

4 years ago

0.0.56-114

4 years ago

0.0.56-115

4 years ago

0.0.56-96

4 years ago

0.0.56-95

4 years ago

0.0.56-93

4 years ago

0.0.56-91

4 years ago

0.0.1-alpha.0

4 years ago

0.0.56-81

4 years ago

0.0.56-73

4 years ago

0.0.56-71

4 years ago

0.0.56-50

4 years ago

0.0.56-48

4 years ago

0.0.56-46

4 years ago

0.0.56-47

4 years ago

0.0.56-42

4 years ago

0.0.56-43

4 years ago

0.0.56-40

4 years ago

0.0.56-41

4 years ago

0.0.56-36

4 years ago

0.0.56-35

5 years ago

0.0.56-32

5 years ago

0.0.56-31

5 years ago

0.0.56-27

5 years ago

0.0.56-26

5 years ago

0.0.56-23

5 years ago

0.0.56-22

5 years ago

0.0.56-21

5 years ago

0.0.56-20

5 years ago

0.0.56-19

5 years ago