1.0.1 • Published 9 years ago
depcheck-ci v1.0.1
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
.depcheckrcorpackage.jsonsection
Install
npm i --save-dev --save-exact depcheck-ciAdd npm script in package.json:
scripts: {
"depcheck": "depcheck-ci"
}Usage
npm run depcheckConfiguration
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
}