1. nyc-config-common
A reusable nyc configuration to improve common workflow
nyc-config-common
Package: nyc-config-common
Created by: shinnn
Last modified: Wed, 11 May 2022 23:52:01 GMT
Version: 1.0.1
License: ISC
Downloads: 98
Repository: https://github.com/shinnn/nyc-config-common

Install

npm install nyc-config-common
yarn add nyc-config-common

nyc-config-common

npm version
Build Status

A reusable nyc configuration to improve common workflow

Installation

Use npm.

npm install --save-dev nyc-config-common

Usage

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 html and text reporter in every nyc 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

On CI

For example Travis CI and AppVeyor

  • Uses text-lcov reporter by default while executing report subcommand
    • In most case nyc report is expected to print LCOV on CI to integrate coverage report services

License

ISC License © 2018 Shinnosuke Watanabe

RELATED POST

10 Must-Know Windows Shortcuts That Will Save You Time

10 Must-Know Windows Shortcuts That Will Save You Time

Arrays vs Linked Lists: Which is Better for Memory Management in Data Structures?

Arrays vs Linked Lists: Which is Better for Memory Management in Data Structures?

Navigating AWS Networking: Essential Hacks for Smooth Operation

Navigating AWS Networking: Essential Hacks for Smooth Operation

Achieving Stunning Visuals with Unity's Global Illumination

Achieving Stunning Visuals with Unity's Global Illumination

Nim's Hidden Gems: Lesser-known Features for Writing Efficient Code

Nim's Hidden Gems: Lesser-known Features for Writing Efficient Code