2.1.1-alpha.1 • Published 4 years ago

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

Weekly downloads
256
License
MIT
Repository
github
Last release
4 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

4 years ago

0.0.59-alpha.41

4 years ago

0.0.59-alpha.40

4 years ago

2.0.1-alpha.0

4 years ago

0.0.59-alpha.37

4 years ago

0.0.59-alpha.36

4 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

5 years ago

0.0.58-alpha.58

5 years ago

0.0.58-alpha.57

5 years ago

0.0.58-alpha.56

5 years ago

0.0.58-alpha.55

5 years ago

0.0.58-alpha.54

5 years ago

0.0.58-alpha.49

5 years ago

0.0.58-alpha.47

5 years ago

0.0.58-alpha.46

5 years ago

0.0.58-alpha.42

5 years ago

0.0.58-alpha.41

5 years ago

0.0.58-alpha.40

5 years ago

0.0.58-alpha.38

5 years ago

0.0.58-alpha.35

5 years ago

0.0.58-alpha.30

5 years ago

0.0.58-alpha.29

5 years ago

0.0.58-alpha.27

5 years ago

0.0.58-alpha.28

5 years ago

0.0.58-alpha.18

5 years ago

0.0.58-alpha.15

5 years ago

0.0.58-alpha.11

5 years ago

0.0.58-alpha.14

5 years ago

0.0.58-alpha.13

5 years ago

0.0.58-alpha.7

5 years ago

0.0.58-alpha.4

5 years ago

0.0.58-alpha.0

5 years ago

0.0.56-162

5 years ago

0.0.57

5 years ago

0.0.56-158

5 years ago

0.0.56-154

5 years ago

0.0.56-155

5 years ago

0.0.56-151

5 years ago

0.0.56-150

5 years ago

0.0.56-148

5 years ago

0.0.56-149

5 years ago

0.0.56-138

5 years ago

0.0.56-135

5 years ago

0.0.56-134

5 years ago

0.0.56-130

5 years ago

0.0.56-125

5 years ago

0.0.56-126

5 years ago

0.0.56-118

5 years ago

0.0.56-117

5 years ago

0.0.56-114

5 years ago

0.0.56-115

5 years ago

0.0.56-96

5 years ago

0.0.56-95

5 years ago

0.0.56-93

5 years ago

0.0.56-91

5 years ago

0.0.1-alpha.0

5 years ago

0.0.56-81

5 years ago

0.0.56-73

5 years ago

0.0.56-71

5 years ago

0.0.56-50

5 years ago

0.0.56-48

5 years ago

0.0.56-46

5 years ago

0.0.56-47

5 years ago

0.0.56-42

5 years ago

0.0.56-43

5 years ago

0.0.56-40

5 years ago

0.0.56-41

5 years ago

0.0.56-36

5 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

6 years ago

0.0.56-23

6 years ago

0.0.56-22

6 years ago

0.0.56-21

6 years ago

0.0.56-20

6 years ago

0.0.56-19

6 years ago