An open API service indexing awesome lists of open source software.

https://github.com/mcasimir/depcheck-ci

Npm depcheck util that plays nice with ci
https://github.com/mcasimir/depcheck-ci

Last synced: about 2 months ago
JSON representation

Npm depcheck util that plays nice with ci

Awesome Lists containing this project

README

        

# Depcheck CI

Depcheck util that plays nice with ci

## Differences with depcheck

- Also checks for non strict dependencies (configurable)
- Does not check for missing dependencies
- Actually fails on errors (reliable for ci)
- Configurable through `.depcheckrc` or `package.json` section

## Install

``` bash
npm i --save-dev --save-exact depcheck-ci
```

Add npm script in `package.json`:

``` json
scripts: {
"depcheck": "depcheck-ci"
}
```

### Usage

```
npm run depcheck
```

### Configuration

Either add a `.depcheckrc` file on root of project or a `depcheck` section in `package.json`

Default settings are:

```
{
"ignore": [],
"ignoreDirs": [
"node_modules",
"bower_components"
],
"strict": true,
"unused": true
}
```