Replace nyc code-coverage with c8 (smaller, integrated with Node.js).

This commit is contained in:
David Anson 2020-01-11 12:57:39 -08:00
parent 8766fc1fc3
commit 6ea1a21a95
5 changed files with 2 additions and 24 deletions

1
.gitignore vendored
View file

@ -4,5 +4,4 @@ demo/markdownlint-browser.min.js
lib-es3 lib-es3
node_modules node_modules
npm-debug.log npm-debug.log
.nyc_output
.vscode .vscode

View file

@ -2,9 +2,6 @@
.eslintrc.json .eslintrc.json
.github .github
.markdownlint.json .markdownlint.json
.nycrc.json
.nyc_output
.travis.yml
.vscode .vscode
coverage coverage
demo/* demo/*

View file

@ -1,6 +0,0 @@
{
"branches": 100,
"functions": 100,
"lines": 100,
"statements": 100
}

View file

@ -1,12 +0,0 @@
language: node_js
node_js:
- "8"
- "10"
- "12"
os:
- windows
- linux
- osx
cache: npm
script: "npm run-script test-cover"
after_script: "npm install coveralls && nyc report --reporter=text-lcov | coveralls"

View file

@ -14,7 +14,7 @@
"bugs": "https://github.com/DavidAnson/markdownlint/issues", "bugs": "https://github.com/DavidAnson/markdownlint/issues",
"scripts": { "scripts": {
"test": "node test/markdownlint-test.js", "test": "node test/markdownlint-test.js",
"test-cover": "nyc --check-coverage --skip-full node test/markdownlint-test.js", "test-cover": "c8 --check-coverage --branches 100 --functions 100 --lines 100 --statements 100 node test/markdownlint-test.js",
"test-declaration": "cd example/typescript && tsc && node type-check.js", "test-declaration": "cd example/typescript && tsc && node type-check.js",
"test-extra": "node test/markdownlint-test-extra.js", "test-extra": "node test/markdownlint-test-extra.js",
"debug": "node debug node_modules/nodeunit/bin/nodeunit", "debug": "node debug node_modules/nodeunit/bin/nodeunit",
@ -35,6 +35,7 @@
"devDependencies": { "devDependencies": {
"@types/node": "~12.12.17", "@types/node": "~12.12.17",
"browserify": "~16.5.0", "browserify": "~16.5.0",
"c8": "~7.0.0",
"cpy-cli": "~3.0.0", "cpy-cli": "~3.0.0",
"eslint": "~6.7.2", "eslint": "~6.7.2",
"glob": "~7.1.6", "glob": "~7.1.6",
@ -44,7 +45,6 @@
"markdown-it-sub": "~1.0.0", "markdown-it-sub": "~1.0.0",
"markdown-it-sup": "~1.0.0", "markdown-it-sup": "~1.0.0",
"markdownlint-rule-helpers": "~0.5.0", "markdownlint-rule-helpers": "~0.5.0",
"nyc": "~14.1.1",
"rimraf": "~3.0.0", "rimraf": "~3.0.0",
"tape": "~4.12.1", "tape": "~4.12.1",
"toml": "~3.0.0", "toml": "~3.0.0",