1.3.2 • Published 5 years ago

versus-common v1.3.2

Weekly downloads
1
License
ISC
Repository
-
Last release
5 years ago

🔮 Versus COMMON

Useage

npm i --save versus-common

The package will expose 2 objects

  • actions
  • reducers

import {getAllTeams} from 'versus-common/actions'

Update: At this stage each client has to combine reducers and create the store itself. I will look at doing this on the common side. Then the client just needs to provide it to the root component.

Contribute

All code is done in the ./src in es6

Everything should be COVERED in tests. This project does not have a client whcih we can use to test - therefore everything must be done programmaticaly through tests.

Linting TBC

Build

Run npm run build to compile the src (es6) folder into ./build (es5)

Only the src/lib, src/classes and src/data are compiled into ./build. This is because the actions, middleware and reducers and straight imported in the client projects which will inturn compile the es6 with webpack. This may change depending on test... TBC

Test

Jest is the test runner and looks for the .test.js files in ./build

This means we can use es6 syntax like imports in our tests.

To test run npm run test or npm run test:watch when developing.

The build process will run before each test run ensuring the latest copy of the src is being tested.

Deploy

npm run deploy

1.3.2

5 years ago

1.3.1

5 years ago

1.3.0

5 years ago

1.2.0

5 years ago