danger-plugin-toolbox

2.0.1 • Public • Published

danger-plugin-toolbox

Danger Plugin Toolbox is a Danger JS plugin containing a set of common validations and utilities, build to make it easy to start using Danger JS.

build SonarCloud Coverage npm version

Installation

npm install danger-plugin-toolbox --save-dev

Usage

Edit your dangerfile.js to import the required validations and utilities, and build the contents using those:

const { warn } = require('danger');
const {
  jsLockfile,
  commonValidJson,
  inCommitGrep,
} = require('danger-plugin-toolbox');

jsLockfile();

commonValidJson();

if (inCommitGrep(/.+\.log$/)) {
  warn('Do not commit log files');
}

Validations and utilities

Find here the documentation of all validations and utilities provided by Danger Plugin Toolbox:

Changelog

See the release history in CHANGELOG.md.

Contributing

To contribute please see CONTRIBUTING.md.

Readme

Keywords

Package Sidebar

Install

npm i danger-plugin-toolbox

Weekly Downloads

1,952

Version

2.0.1

License

MIT

Unpacked Size

123 kB

Total Files

59

Last publish

Collaborators

  • sogame