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
- Host: GitHub
- URL: https://github.com/mcasimir/depcheck-ci
- Owner: mcasimir
- Created: 2016-08-17T11:22:16.000Z (almost 9 years ago)
- Default Branch: master
- Last Pushed: 2022-12-09T21:41:11.000Z (over 2 years ago)
- Last Synced: 2024-04-26T07:02:38.056Z (about 1 year ago)
- Language: JavaScript
- Homepage:
- Size: 446 KB
- Stars: 1
- Watchers: 3
- Forks: 1
- Open Issues: 12
-
Metadata Files:
- Readme: README.md
- Changelog: CHANGELOG.md
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
}
```