Add travis/coveralls

This commit is contained in:
Kai Moseley 2017-08-08 08:46:57 +01:00
parent 3afd314f5a
commit cb4f155a29
5 changed files with 555 additions and 509 deletions

1
.coveralls.yml Normal file
View File

@ -0,0 +1 @@
repo_token: YXUyNxG9vtemAqNj82IU91mfswsi0aXep

7
.travis.yml Normal file
View File

@ -0,0 +1,7 @@
language: node_js
node_js:
- "node"
- "7"
- "6"
script: npm run test:coverage
after_success: "npm run coveralls"

1040
package-lock.json generated

File diff suppressed because it is too large Load Diff

View File

@ -1,12 +1,14 @@
{
"name": "redux-scc",
"version": "1.1.0",
"version": "1.2.0",
"description": "Redux store chunk creator",
"main": "./lib/index.js",
"scripts": {
"build": "babel -d lib/ src/",
"test": "jest",
"prepublish": "npm run build"
"test:coverage": "jest --coverage",
"prepublish": "npm run build",
"coveralls": "cat ./coverage/lcov.info | node node_modules/.bin/coveralls"
},
"author": "Kai Moseley",
"license": "ISC",
@ -14,6 +16,11 @@
"type": "git",
"url": "https://github.com/TheComfyChair/redux-scc"
},
"jest": {
"roots": [
"<rootDir>/src"
]
},
"devDependencies": {
"babel-cli": "^6.24.1",
"babel-core": "^6.18.2",
@ -34,6 +41,7 @@
"webpack": "^3.4.1"
},
"dependencies": {
"coveralls": "^2.13.1",
"lodash.filter": "^4.6.0",
"lodash.find": "^4.6.0",
"lodash.flowright": "^3.5.0",

View File

@ -1,5 +1,8 @@
### Redux store chunk creator (redux-scc)
[![Build Status](https://travis-ci.org/TheComfyChair/redux-scc.svg?branch=master)](https://travis-ci.org/TheComfyChair/redux-scc)
[![Coverage Status](https://coveralls.io/repos/github/TheComfyChair/redux-scc/badge.svg?branch=master)](https://coveralls.io/github/TheComfyChair/redux-scc?branch=master)
Are you fed up of hand coding the same pattern over and over again? Fed up of conflicting action names causing your button presses to set off your ajax loading animation? Are you a fan of having a strictly defined structure for your redux store, down to the type level? Then redux-scc may be for you!
#### What does it do?
@ -51,6 +54,7 @@ Types.arrayOf(structure, defaultValue = [])
Types.reducer(structure)
Types.shape(structure)
//Custom types
Types.custom({
validator, //(value: any) => boolean