{"name":"karma-coverage-istanbul-reporter","version":"2.0.1-alpha.0","description":"A karma reporter that uses the latest istanbul 1.x APIs (with full sourcemap support) to report coverage.","main":"src/reporter.js","files":["src"],"scripts":{"start":"npm run test:watch","lint":"xo","pretest":"npm run lint","test":"nyc mocha","test:watch":"mocha --watch","codecov":"cat coverage/lcov.info | codecov","commitmsg":"commitlint -e","commit":"git-cz","prerelease":"npm test","release":"standard-version && git push --follow-tags origin master","postrelease":"npm publish","precommit":"pretty-quick --staged"},"repository":{"type":"git","url":"git+https://github.com/mattlewis92/karma-coverage-istanbul-reporter.git"},"keywords":["karma-plugin","karma-reporter","coverage","istanbul","istanbuljs"],"author":{"name":"Matt Lewis"},"license":"MIT","bugs":{"url":"https://github.com/mattlewis92/karma-coverage-istanbul-reporter/issues"},"homepage":"https://github.com/mattlewis92/karma-coverage-istanbul-reporter#readme","dependencies":{"istanbul-api":"^1.3.1","minimatch":"^3.0.4"},"devDependencies":{"@commitlint/cli":"^6.2.0","@commitlint/config-conventional":"^6.1.3","@commitlint/prompt":"^6.1.3","@types/chai":"^4.1.3","@types/mocha":"^5.2.0","chai":"^4.0.0","codecov-lite":"^0.1.3","commitizen":"^2.9.6","husky":"^0.14.3","istanbul-instrumenter-loader":"^3.0.1","karma":"^2.0.2","karma-mocha":"^1.3.0","karma-phantomjs-launcher":"^1.0.2","karma-sourcemap-loader":"^0.3.7","karma-webpack":"^3.0.0","mocha":"^5.1.1","nyc":"^11.8.0","prettier":"^1.12.1","pretty-quick":"^1.4.1","rimraf":"^2.5.4","standard-version":"^4.3.0","ts-loader":"^4.3.0","tslint":"^5.10.0","tslint-loader":"^3.6.0","typescript":"^2.8.3","webpack":"^4.8.3","xo":"^0.21.0"},"nyc":{"reporter":["html","text-summary","lcovonly"]},"xo":{"space":true,"envs":["node","mocha"],"rules":{"space-before-function-paren":0,"object-curly-spacing":0,"operator-linebreak":0,"indent":0}},"config":{"commitizen":{"path":"@commitlint/prompt"}},"commitlint":{"extends":["@commitlint/config-conventional"]},"readme":"# karma-coverage-istanbul-reporter\n\n[![Build Status](https://travis-ci.org/mattlewis92/karma-coverage-istanbul-reporter.svg?branch=master)](https://travis-ci.org/mattlewis92/karma-coverage-istanbul-reporter)\n[![codecov](https://codecov.io/gh/mattlewis92/karma-coverage-istanbul-reporter/branch/master/graph/badge.svg)](https://codecov.io/gh/mattlewis92/karma-coverage-istanbul-reporter)\n[![npm version](https://badge.fury.io/js/karma-coverage-istanbul-reporter.svg)](http://badge.fury.io/js/karma-coverage-istanbul-reporter)\n[![npm](https://img.shields.io/npm/dm/karma-coverage-istanbul-reporter.svg)](http://badge.fury.io/js/karma-coverage-istanbul-reporter)\n[![GitHub issues](https://img.shields.io/github/issues/mattlewis92/karma-coverage-istanbul-reporter.svg)](https://github.com/mattlewis92/karma-coverage-istanbul-reporter/issues)\n[![GitHub stars](https://img.shields.io/github/stars/mattlewis92/karma-coverage-istanbul-reporter.svg)](https://github.com/mattlewis92/karma-coverage-istanbul-reporter/stargazers)\n[![GitHub license](https://img.shields.io/badge/license-MIT-blue.svg)](https://raw.githubusercontent.com/mattlewis92/karma-coverage-istanbul-reporter/master/LICENSE)\n\n> A karma reporter that uses the latest istanbul 1.x APIs (with full sourcemap support) to report coverage.\n\n## About\n\nThis is a reporter only and does not perform the actual instrumentation of your code. Babel users should use the [istanbul babel plugin](https://github.com/istanbuljs/babel-plugin-istanbul) to instrument your code and webpack + typescript users should use the [istanbul-instrumenter-loader](https://github.com/deepsweet/istanbul-instrumenter-loader) and then use this karma reporter to do the actual reporting. See the [test config](https://github.com/mattlewis92/karma-coverage-istanbul-reporter/blob/master/test/karma.conf.js) for an e2e example of how to combine them.\n\n## Installation\n\n```bash\nnpm install karma-coverage-istanbul-reporter --save-dev\n```\n\n## Configuration\n\n```js\n// karma.conf.js\nconst path = require('path');\n\nmodule.exports = function(config) {\n  config.set({\n    // ... rest of karma config\n\n    // anything named karma-* is normally auto included so you probably dont need this\n    plugins: ['karma-coverage-istanbul-reporter'],\n\n    reporters: ['coverage-istanbul'],\n\n    // any of these options are valid: https://github.com/istanbuljs/istanbuljs/blob/aae256fb8b9a3d19414dcf069c592e88712c32c6/packages/istanbul-api/lib/config.js#L33-L39\n    coverageIstanbulReporter: {\n      // reports can be any that are listed here: https://github.com/istanbuljs/istanbuljs/tree/aae256fb8b9a3d19414dcf069c592e88712c32c6/packages/istanbul-reports/lib\n      reports: ['html', 'lcovonly', 'text-summary'],\n\n      // base output directory. If you include %browser% in the path it will be replaced with the karma browser name\n      dir: path.join(__dirname, 'coverage'),\n\n      // Combines coverage information from multiple browsers into one report rather than outputting a report\n      // for each browser.\n      combineBrowserReports: true,\n\n      // if using webpack and pre-loaders, work around webpack breaking the source path\n      fixWebpackSourcePaths: true,\n\n      // stop istanbul outputting messages like `File [${filename}] ignored, nothing could be mapped`\n      skipFilesWithNoCoverage: true,\n\n      // Most reporters accept additional config options. You can pass these through the `report-config` option\n      'report-config': {\n        // all options available at: https://github.com/istanbuljs/istanbuljs/blob/aae256fb8b9a3d19414dcf069c592e88712c32c6/packages/istanbul-reports/lib/html/index.js#L135-L137\n        html: {\n          // outputs the report in ./coverage/html\n          subdir: 'html'\n        }\n      },\n\n      // enforce percentage thresholds\n      // anything under these percentages will cause karma to fail with an exit code of 1 if not running in watch mode\n      thresholds: {\n        emitWarning: false, // set to `true` to not fail the test command when thresholds are not met\n        // thresholds for all files\n        global: {\n          statements: 100,\n          lines: 100,\n          branches: 100,\n          functions: 100\n        },\n        // thresholds per file\n        each: {\n          statements: 100,\n          lines: 100,\n          branches: 100,\n          functions: 100,\n          overrides: {\n            'baz/component/**/*.js': {\n              statements: 98\n            }\n          }\n        }\n      },\n\n      verbose: true // output config used by istanbul for debugging\n    }\n  });\n};\n```\n\n### List of reporters and options\n\n* [clover](https://github.com/istanbuljs/istanbuljs/blob/aae256fb8b9a3d19414dcf069c592e88712c32c6/packages/istanbul-reports/lib/clover/index.js#L8-L9)\n* [cobertura](https://github.com/istanbuljs/istanbuljs/blob/aae256fb8b9a3d19414dcf069c592e88712c32c6/packages/istanbul-reports/lib/cobertura/index.js#L9-L10)\n* [html](https://github.com/istanbuljs/istanbuljs/blob/aae256fb8b9a3d19414dcf069c592e88712c32c6/packages/istanbul-reports/lib/html/index.js#L135-L137)\n* [json-summary](https://github.com/istanbuljs/istanbuljs/blob/aae256fb8b9a3d19414dcf069c592e88712c32c6/packages/istanbul-reports/lib/json-summary/index.js#L8)\n* [json](https://github.com/istanbuljs/istanbuljs/blob/aae256fb8b9a3d19414dcf069c592e88712c32c6/packages/istanbul-reports/lib/json/index.js#L8)\n* lcov\n* [lcovonly](https://github.com/istanbuljs/istanbuljs/blob/aae256fb8b9a3d19414dcf069c592e88712c32c6/packages/istanbul-reports/lib/lcovonly/index.js#L8)\n* none\n* [teamcity](https://github.com/istanbuljs/istanbuljs/blob/aae256fb8b9a3d19414dcf069c592e88712c32c6/packages/istanbul-reports/lib/teamcity/index.js#L9-L10)\n* [text-lcov](https://github.com/istanbuljs/istanbuljs/blob/aae256fb8b9a3d19414dcf069c592e88712c32c6/packages/istanbul-reports/lib/text-lcov/index.js#L9)\n* [text-summary](https://github.com/istanbuljs/istanbuljs/blob/aae256fb8b9a3d19414dcf069c592e88712c32c6/packages/istanbul-reports/lib/text-summary/index.js#L9)\n* [text](https://github.com/istanbuljs/istanbuljs/blob/aae256fb8b9a3d19414dcf069c592e88712c32c6/packages/istanbul-reports/lib/text/index.js#L159-L160)\n\n## Credits\n\n* [Original karma-coverage source](https://github.com/karma-runner/karma-coverage/blob/master/lib/reporter.js)\n* [Example of using the new reporter API](https://github.com/facebook/jest/blob/master/scripts/mapCoverage.js)\n* [Karma remap istanbul](https://github.com/marcules/karma-remap-istanbul)\n\n## License\n\nMIT\n","readmeFilename":"README.md","gitHead":"a17b6ca48053f2b5ff7659f1d5794317187b51d9","_id":"karma-coverage-istanbul-reporter@2.0.1-alpha.0","_npmVersion":"6.0.1","_nodeVersion":"10.1.0","_npmUser":{"name":"mattlewis92","email":"npm@mattlewis.me"},"dist":{"integrity":"sha512-kOTEPOevDMme13n1j6Sv0yzYNqMIp+FThQcf0u0mJtP5LDYpf73JQ6qJPHRCWy90EZOvXkdszbRA0Yu5VzERyg==","shasum":"3ea6b791fdd8820e4905a2920807d5e8ceca1105","tarball":"http://registry-npm.ywwl.com/karma-coverage-istanbul-reporter/download/karma-coverage-istanbul-reporter-2.0.1-alpha.0.tgz","fileCount":6,"unpackedSize":23556,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJbBTA2CRA9TVsSAnZWagAA0SEP/3S2trY9xRpvrzEH+eDw\nxBGBZ26Kr3meS9DSxuPJdlsbpfEhLmptoCdTPb8ncZZrXyIro2PD3TzBMWPf\nxs6dirJkqI91xS1Qo1hk2tdULSrL+bD3NYRb5IhQMHLGq9x8ypyixval2Gcn\nn/ZnYGh2oC5+OhOpCj6UTfiwjrnqKhhtzLR2RSxh7O5vrvfckOJ8j14TaZv4\npVEJ7Ep3OjdFzrr+0Jm8NS6CK0Rr3+Ki1wDBNr37Tf0BYezygCizbPDSeJFe\nbLZC+cD47WzcDJPZxGn9u9lT661Zl9wCelC6ot0lU5RtPbKrlHZynGg9NDbK\nhVbX9btALftbPB70capXwusleerAK+6jrpmZW0om22AFK2/TdQOt3JJPNFzJ\nSBf7X8wQJNUNbPV9CZ+wpa1ueq2ufenU4xbXQtN/d8ow12p2ghlS8MA+qTno\nPAkv1VjLfbPb62/DcQiqjj3/SDIeeOEzSv7/mL7HZk8W89STYOHa9NPAeBiY\nKe8LD5bMQDFKLiZbhxVYWcW9pzmDYEsee6Sxj4tUFGsa+OjOv9doxIFqy7hX\nDS2YZP7ywg+QCQ9C1cIG2PNwpszQR77/Ab+/mmJFx8B7rwePWYhhxfH0BRwE\neGxLnbkOO/Rr+9xFL2BA+KJfqxBq69gtt/vQmGl/ZtT5bcS5l076eEgpst+W\n5rNx\r\n=LmLe\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIHWngz3E+LXfR/QMvu84ooLxo2HAjqQPYVEvYG5mWnwsAiEAnnpQJHnnUX/TFiBb8AQCVuX0HpKINfBFhDCSaLNPeq0="}],"size":6842,"noattachment":false,"key":"/karma-coverage-istanbul-reporter/-/karma-coverage-istanbul-reporter-2.0.1-alpha.0.tgz"},"maintainers":[{"name":"mattlewis92","email":"matthew.lewis@socialsignin.co.uk"}],"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/karma-coverage-istanbul-reporter_2.0.1-alpha.0_1527066678034_0.0798221083868722"},"_hasShrinkwrap":false,"publish_time":1527066678149,"_cnpm_publish_time":1527066678149,"dist-tags":{"latest":"3.0.3","next":"3.0.1"}}