nyc-config-common
A reusable nyc configuration to improve common workflow
Installation
npm install --save-dev nyc-config-commonUsage
Include this package to the project's nyc configuration.
{
"nyc": {
"extends": "nyc-config-common"
}
}Then nyc command uses the better default settings whenever it's run, as described below:
On non-CI environments
- Runs both
htmlandtextreporter in everynycexecution - Writes raw coverage information to
coveragedirectory where HTML reports are also saved, instead of the default.nyc_output- So that users don't need to include
.nyc_outputto their.gitignore
- So that users don't need to include
On CI
For example Travis CI and AppVeyor
- Uses
text-lcovreporter by default while executingreportsubcommand
License
ISC License © 2018 Shinnosuke Watanabe