@dwp/nyc-config-base

base configuration for nyc

Stats

stars 🌟issues ⚠️updated 🛠created 🐣size 🏋️‍♀️
11Feb 5, 2018Jan 12, 2018Minified + gzip package size for @dwp/nyc-config-base in KB

Readme

@dwp/nyc-config-base

Shareable nyc config for instrumenting code.

Getting started

npm install --save-dev @dwp/nyc-config-base nyc

Rules

Add an .nycrc file that looks something like:

{
    "extends": "@dwp/nyc-config-base"
}

You can add your own rules to enhance this, but in doing so please ensure you don't weaken the baseline ruleset.

Instrumenting tests

Add nyc to your test suite like this, or see our package.json for an example of how we do it:

    "test": "nyc jasmine"

If you find any bugs or have a feature request, please open an issue on github!

The npm package download data comes from npm's download counts api and package details come from npms.io.