Skip to content

Commit

Permalink
Coverage added to README
Browse files Browse the repository at this point in the history
  • Loading branch information
markdicksonjr committed Sep 16, 2017
1 parent 8d19c4f commit 475041e
Show file tree
Hide file tree
Showing 4 changed files with 14 additions and 3 deletions.
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
**/*.js
**/*.js.map
node_modules
/coverage
4 changes: 3 additions & 1 deletion .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,4 +8,6 @@ script:
- npm test
cache:
directories:
- "node_modules"
- "node_modules"
after_success:
- npm run coveralls
3 changes: 3 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,11 +2,14 @@

[![Build Status][travis-img]][travis-url]
[![NPM Downloads][downloads-image]][downloads-url]
[![Test Coverage][coveralls-img]][coveralls-url]

[travis-img]: https://travis-ci.org/markdicksonjr/wink-api.svg?branch=master
[travis-url]: https://travis-ci.org/markdicksonjr/wink-api
[downloads-image]: https://img.shields.io/npm/dm/wink-api.svg
[downloads-url]: https://npmjs.org/package/wink-api
[coveralls-img]: https://coveralls.io/repos/github/markdicksonjr/wink-api/badge.svg?branch=master
[coveralls-url]: https://coveralls.io/github/markdicksonjr/wink-api?branch=master

A typescript/javascript binding for Wink's v2 API.

Expand Down
9 changes: 7 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,11 +1,13 @@
{
"name": "wink-api",
"version": "0.5.10",
"version": "0.5.11",
"description": "The Wink API connects Wink devices to users, apps, each other, and the wider web. Targets the v2 API",
"main": "index.js",
"scripts": {
"test": "tsc && jasmine",
"postinstall": "tsc"
"cover": "istanbul cover --include-all-sources node_modules/jasmine/bin/jasmine.js",
"postinstall": "tsc",
"coveralls": "npm run cover -- --report lcovonly && cat ./coverage/lcov.info | coveralls"
},
"repository": {
"type": "git",
Expand All @@ -21,7 +23,10 @@
"@types/jasmine": "^2.5.54",
"@types/node": "^8.0.26",
"@types/request": "^2.0.3",
"coveralls": "^2.13.1",
"istanbul": "^0.4.5",
"jasmine": "^2.8.0",
"mocha-lcov-reporter": "^1.3.0",
"typescript": "^2.3.4"
},
"dependencies": {
Expand Down

0 comments on commit 475041e

Please sign in to comment.