Post depcheck result to depcheck service and generate report and badge.
- Install depcheck and depcheck-web from npm.
- Add
depcheck --json | depcheck-web
to script section in your.travis.yml
file.
Check this project's .travis.yml
file. It invokes the npm run depcheck-web
command in script section.
Then, in package.json
file, depcheck-web
script is defined as depcheck --json | node ./bin/depcheck-web
(self-check) command.
- Currently, only Travis CI builds from GitHub provider is supported.
MIT License.