diff --git a/.gitignore b/.gitignore index 7f616c8a..20bf8fcb 100644 --- a/.gitignore +++ b/.gitignore @@ -1,4 +1,5 @@ .DS_Store node_modules .nyc_output +coverage package-lock.json diff --git a/.nycrc b/.nycrc new file mode 100644 index 00000000..258129d5 --- /dev/null +++ b/.nycrc @@ -0,0 +1,13 @@ +{ + "exclude": [ + "test/**" + ], + "reporter": [ + "html", + "text" + ], + "branches": 96.5, + "lines": 100, + "functions": 94, + "statements": 100 +} diff --git a/README.md b/README.md index 36cd3495..b80abac5 100644 --- a/README.md +++ b/README.md @@ -1,7 +1,5 @@ # y18n -[![Build Status][travis-image]][travis-url] -[![Coverage Status][coveralls-image]][coveralls-url] [![NPM version][npm-image]][npm-url] [![js-standard-style][standard-image]][standard-url] [![Conventional Commits](https://img.shields.io/badge/Conventional%20Commits-1.0.0-yellow.svg)](https://conventionalcommits.org) @@ -105,10 +103,6 @@ post on why we think this is important](https://medium.com/the-node-js-collectio ISC -[travis-url]: https://travis-ci.org/yargs/y18n -[travis-image]: https://img.shields.io/travis/yargs/y18n.svg -[coveralls-url]: https://coveralls.io/github/yargs/y18n -[coveralls-image]: https://img.shields.io/coveralls/yargs/y18n.svg [npm-url]: https://npmjs.org/package/y18n [npm-image]: https://img.shields.io/npm/v/y18n.svg [standard-image]: https://img.shields.io/badge/code%20style-standard-brightgreen.svg diff --git a/package.json b/package.json index e64aca3a..3c523913 100644 --- a/package.json +++ b/package.json @@ -22,17 +22,16 @@ "index.js" ], "scripts": { - "coverage": "nyc report --reporter=text-lcov | coveralls", + "coverage": "nyc report && nyc check-coverage", "release": "standard-version", "pretest": "standard", "test": "nyc mocha" }, "devDependencies": { "chai": "^4.0.1", - "coveralls": "^3.0.0", "mocha": "^4.0.1", - "nyc": "^11.0.1", - "rimraf": "^2.5.0", + "nyc": "^15.1.0", + "rimraf": "^3.0.2", "standard": "^10.0.0-beta.0", "standard-version": "^5.0.0" },