fix coverage report & update scripts

This commit is contained in:
Antoni Kepinski 2020-04-14 11:59:32 +02:00
parent 5ecb48eec6
commit 8f3c540794
No known key found for this signature in database
GPG Key ID: 2617333E73BC00EF
2 changed files with 16 additions and 14 deletions

View File

@ -12,5 +12,4 @@ matrix:
cache: npm cache: npm
script: after_success: npm run coverage
- npm run coverage

View File

@ -8,9 +8,8 @@
"scripts": { "scripts": {
"build": "pika build --out dist/", "build": "pika build --out dist/",
"prepublishOnly": "npm run build", "prepublishOnly": "npm run build",
"test": "cross-env BABEL_ENV=test mocha --require @babel/register --throw-deprecation test/*.js", "test": "nyc --reporter=html --reporter=text mocha --require @babel/register --throw-deprecation",
"report": "cross-env BABEL_ENV=coverage nyc --reporter lcov --reporter text mocha -R spec test/*.js", "coverage": "nyc report --reporter=text-lcov | coveralls",
"coverage": "cross-env BABEL_ENV=coverage nyc --reporter json --reporter text mocha -R spec test/*.js && codecov -f coverage/coverage-final.json",
"lint": "xo" "lint": "xo"
}, },
"repository": { "repository": {
@ -36,17 +35,18 @@
"@babel/core": "^7.9.0", "@babel/core": "^7.9.0",
"@babel/preset-env": "^7.9.5", "@babel/preset-env": "^7.9.5",
"@babel/register": "^7.9.0", "@babel/register": "^7.9.0",
"@istanbuljs/nyc-config-babel": "^3.0.0",
"@pika/pack": "^0.5.0", "@pika/pack": "^0.5.0",
"@pika/plugin-build-node": "^0.9.2", "@pika/plugin-build-node": "^0.9.2",
"@pika/plugin-standard-pkg": "^0.9.2", "@pika/plugin-standard-pkg": "^0.9.2",
"abort-controller": "^3.0.0", "abort-controller": "^3.0.0",
"abortcontroller-polyfill": "^1.4.0", "abortcontroller-polyfill": "^1.4.0",
"babel-plugin-istanbul": "^6.0.0",
"chai": "^4.2.0", "chai": "^4.2.0",
"chai-as-promised": "^7.1.1", "chai-as-promised": "^7.1.1",
"chai-iterator": "^3.0.2", "chai-iterator": "^3.0.2",
"chai-string": "^1.5.0", "chai-string": "^1.5.0",
"codecov": "^3.6.5", "coveralls": "^3.0.11",
"cross-env": "^7.0.2",
"form-data": "^3.0.0", "form-data": "^3.0.0",
"mocha": "^7.1.1", "mocha": "^7.1.1",
"nyc": "^15.0.1", "nyc": "^15.0.1",
@ -62,8 +62,12 @@
}, },
"@pika/pack": { "@pika/pack": {
"pipeline": [ "pipeline": [
["@pika/plugin-standard-pkg"], [
["@pika/plugin-build-node"] "@pika/plugin-standard-pkg"
],
[
"@pika/plugin-build-node"
]
] ]
}, },
"xo": { "xo": {
@ -115,14 +119,13 @@
} }
} }
] ]
],
"plugins": [
"istanbul"
] ]
}, },
"nyc": { "nyc": {
"require": [ "extends": "@istanbuljs/nyc-config-babel"
"@babel/register"
],
"sourceMap": false,
"instrument": false
}, },
"runkitExampleFilename": "example.js" "runkitExampleFilename": "example.js"
} }