Dangerfile Builder is a Danger JS plugin containing a set of common validations and utilities, build to make it easy to start using Danger JS.
npm install danger-plugin-dangerfile-builder --save-dev
Edit your dangerfile.js
to import the required validations and utilities, and buil the contents using those:
const { warn } = require('danger');
const {
jsLockfile,
commonValidJson,
inCommitGrep,
} require('danger-plugin-dangerfile-builder');
jsLockfile();
commonValidJson();
if (inCommitGrep(/.+\.log$/)) {
warn('Do not commit log files');
}
Find here the documentation of all validations and utilities provided by Dangerfile Builder:
See the release history in CHANGELOG.md.
To contribute please see CONTRIBUTING.md.