istanbul-instrumenter-loader
Advanced tools
Comparing version 1.2.0 to 2.0.0
{ | ||
"name": "istanbul-instrumenter-loader", | ||
"version": "1.2.0", | ||
"version": "2.0.0", | ||
"description": "Istanbul instrumenter loader for webpack", | ||
@@ -27,3 +27,3 @@ "keywords": [ | ||
}, | ||
"license": "WTFPL" | ||
"license": "MIT" | ||
} |
@@ -1,2 +0,2 @@ | ||
## Istanbul instrumenter loader for [webpack](https://webpack.github.io/) | ||
## Istanbul instrumenter loader for [webpack](https://webpack.js.org/) | ||
@@ -11,3 +11,5 @@ [![npm](http://img.shields.io/npm/v/istanbul-instrumenter-loader.svg?style=flat-square)](https://www.npmjs.org/package/istanbul-instrumenter-loader) | ||
```sh | ||
$ npm i -D istanbul-instrumenter-loader | ||
npm install --save-dev istanbul-instrumenter-loader | ||
# or | ||
yarn add --dev istanbul-instrumenter-loader | ||
``` | ||
@@ -19,5 +21,5 @@ | ||
* [Using loaders](https://webpack.github.io/docs/using-loaders.html) | ||
* [karma-webpack](https://github.com/webpack/karma-webpack#karma-webpack) | ||
* [karma-coverage](https://github.com/karma-runner/karma-coverage#configuration) | ||
* [Loaders](https://webpack.js.org/concepts/loaders/) | ||
* [karma-webpack](https://github.com/webpack/karma-webpack) | ||
* [karma-coverage-istanbul-reporter](https://github.com/mattlewis92/karma-coverage-istanbul-reporter) | ||
@@ -74,3 +76,3 @@ #### Project structure | ||
module: { | ||
preLoaders: [ | ||
rules: [ | ||
// instrument only testing sources with Istanbul | ||
@@ -80,3 +82,3 @@ { | ||
include: path.resolve('src/components/'), | ||
loader: 'istanbul-instrumenter' | ||
loader: 'istanbul-instrumenter-loader' | ||
} | ||
@@ -87,5 +89,6 @@ ] | ||
}, | ||
reporters: [ 'progress', 'coverage' ], | ||
coverageReporter: { | ||
type: 'text' | ||
reporters: [ 'progress', 'coverage-istanbul' ], | ||
coverageIstanbulReporter: { | ||
reports: [ 'text-summary' ], | ||
fixWebpackSourcePaths: true | ||
}, | ||
@@ -100,2 +103,2 @@ … | ||
### License | ||
[WTFPL](http://www.wtfpl.net/wp-content/uploads/2012/12/wtfpl-strip.jpg) | ||
MIT |
SPDX disjunction
LicenseSPDX disjunction for an artifact's license information
Found 1 instance in 1 package
SPDX disjunction
LicenseSPDX disjunction for an artifact's license information
Found 1 instance in 1 package
5594
4
99