Skip to content

Commit 5faad33

Browse files
adding coveralls
1 parent b3f5b2b commit 5faad33

File tree

3 files changed

+10
-5
lines changed

3 files changed

+10
-5
lines changed

.travis.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
11
language: node_js
22
node_js:
33
- "6.9.1"
4+
after_success:
5+
- npm run test:coveralls

README.md

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,7 @@
11
# React Router Fetch
2-
2+
[![Dependency Status](https://david-dm.org/kellyrmilligan/react-router-fetch.svg)](https://david-dm.org/kellyrmilligan/react-router-fetch)
3+
[![Build Status](https://travis-ci.org/kellyrmilligan/react-router-fetch.svg?branch=master)](https://travis-ci.org/kellyrmilligan/react-router-fetch)
4+
[![Coverage Status](https://coveralls.io/repos/github/kellyrmilligan/object-looper/badge.svg?branch=master)](https://coveralls.io/github/kellyrmilligan/object-looper?branch=master)
35
Loops through matched routes from react router and calls a static fetch function on each handler. The static fetch function should return a promise. This will return a promise that will resolve/reject when all other promises are finished.
46

57
### usage

package.json

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,8 @@
1717
"standard": "standard --fix",
1818
"standard:watch": "onchange 'src/**/*.js' -- npm run standard",
1919
"test": "cross-env NODE_ENV=test standard && jest",
20-
"test:watch": "npm run test -- --watch"
20+
"test:watch": "npm run test -- --watch",
21+
"test:coveralls": "cat ./coverage/lcov.info | ./node_modules/.bin/coveralls"
2122
},
2223
"author": "Kelly Milligan",
2324
"license": "ISC",
@@ -53,8 +54,7 @@
5354
"standard": {
5455
"parser": "babel-eslint"
5556
},
56-
"dependencies": {
57-
},
57+
"dependencies": {},
5858
"peerDependencies": {
5959
"react-router": "^2.0.0 || ^3.0.0"
6060
},
@@ -64,10 +64,11 @@
6464
"babel-eslint": "^6.1.2",
6565
"babel-jest": "^15.0.0",
6666
"babel-plugin-add-module-exports": "^0.2.1",
67-
"babel-preset-react": "^6.16.0",
6867
"babel-preset-latest": "^6.16.0",
68+
"babel-preset-react": "^6.16.0",
6969
"babel-preset-stage-2": "^6.18.0",
7070
"babel-runtime": "^6.11.6",
71+
"coveralls": "^2.11.15",
7172
"cross-env": "^2.0.1",
7273
"jest": "^15.1.1",
7374
"nodemon": "^1.9.0",

0 commit comments

Comments
 (0)