nyc-config-common
A reusable nyc configuration to improve common workflow
Installation
npm install --save-dev nyc-config-common
Usage
Include this package to the project's nyc
configuration.
Then nyc
command uses the better default settings whenever it's run, as described below:
CI environments
On non-- Runs both
html
andtext
reporter in everynyc
execution - Writes raw coverage information to
coverage
directory where HTML reports are also saved, instead of the default.nyc_output
- So that users don't need to include
.nyc_output
to their.gitignore
- So that users don't need to include
On CI
For example Travis CI and AppVeyor
- Uses
text-lcov
reporter by default while executingreport
subcommand
License
ISC License © 2018 Shinnosuke Watanabe