Skip to content
This repository has been archived by the owner on Dec 20, 2024. It is now read-only.

Commit

Permalink
Add nyc and coveralls (#11)
Browse files Browse the repository at this point in the history
  • Loading branch information
ralphtheninja authored and vweevers committed Jul 16, 2018
1 parent 0347b82 commit b4147b8
Show file tree
Hide file tree
Showing 4 changed files with 8 additions and 1 deletion.
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,2 +1,3 @@
node_modules/
DB/
.nyc_output/
2 changes: 2 additions & 0 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,3 +6,5 @@ node_js:
- 6
- 8
- 10

after_success: npm run coverage
1 change: 1 addition & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@
![Node version](https://img.shields.io/node/v/level-concat-iterator.svg)
[![Travis](https://img.shields.io/travis/Level/concat-iterator.svg)](http://travis-ci.org/Level/concat-iterator)
[![dependencies](https://david-dm.org/Level/level-concat-iterator.svg)](https://david-dm.org/level/level-concat-iterator)
[![Coverage Status](https://coveralls.io/repos/github/Level/concat-iterator/badge.svg)](https://coveralls.io/github/Level/concat-iterator)
[![JavaScript Style Guide](https://img.shields.io/badge/code_style-standard-brightgreen.svg)](https://standardjs.com)
[![npm](https://img.shields.io/npm/dm/level-concat-iterator.svg)](https://www.npmjs.com/package/level-concat-iterator)

Expand Down
5 changes: 4 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,8 @@
"description": "Concatenate items from an iterator into an array.",
"main": "index.js",
"scripts": {
"test": "standard && node test"
"test": "standard && nyc node test",
"coverage": "nyc report --reporter=text-lcov | coveralls"
},
"repository": {
"type": "git",
Expand All @@ -19,6 +20,8 @@
"author": "Lars-Magnus Skog <ralphtheninja@riseup.net>",
"license": "MIT",
"devDependencies": {
"coveralls": "^3.0.2",
"nyc": "^12.0.2",
"standard": "^11.0.1",
"tape": "^4.9.1"
},
Expand Down

0 comments on commit b4147b8

Please sign in to comment.