How to use danger-plugin-toolbox - 7 common examples

To help you get started, we’ve selected a few danger-plugin-toolbox examples, based on popular ways it is used in public projects.

Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.

github pluralsight / design-system / dangerfile.js View on Github external
void (async function main() {
  // thank new contributors
  toolbox.commonContribution({ msg: 'Thanks for contributing :tada:' })

  // are there any leftover console commands
  toolbox.jsConsoleCommands({ logType: 'fail' })

  // are new images minified
  toolbox.imageMinifiedJpg()
  toolbox.imageMinifiedPng()

  // are there skipped or focused tests
  toolbox.jsTestShortcuts({ logTypeSkipped: 'message', logTypeFocused: 'fail' })

  toolbox.commonPrDescription({ minLength: 10, msg: ':pencil2: Please add a description.' })
})()
github pluralsight / design-system / dangerfile.js View on Github external
void (async function main() {
  // thank new contributors
  toolbox.commonContribution({ msg: 'Thanks for contributing :tada:' })

  // are there any leftover console commands
  toolbox.jsConsoleCommands({ logType: 'fail' })

  // are new images minified
  toolbox.imageMinifiedJpg()
  toolbox.imageMinifiedPng()

  // are there skipped or focused tests
  toolbox.jsTestShortcuts({ logTypeSkipped: 'message', logTypeFocused: 'fail' })

  toolbox.commonPrDescription({ minLength: 10, msg: ':pencil2: Please add a description.' })
})()
github pluralsight / design-system / dangerfile.js View on Github external
void (async function main() {
  // thank new contributors
  toolbox.commonContribution({ msg: 'Thanks for contributing :tada:' })

  // are there any leftover console commands
  toolbox.jsConsoleCommands({ logType: 'fail' })

  // are new images minified
  toolbox.imageMinifiedJpg()
  toolbox.imageMinifiedPng()

  // are there skipped or focused tests
  toolbox.jsTestShortcuts({ logTypeSkipped: 'message', logTypeFocused: 'fail' })

  toolbox.commonPrDescription({ minLength: 10, msg: ':pencil2: Please add a description.' })
})()
github pluralsight / design-system / dangerfile.js View on Github external
void (async function main() {
  // thank new contributors
  toolbox.commonContribution({ msg: 'Thanks for contributing :tada:' })

  // are there any leftover console commands
  toolbox.jsConsoleCommands({ logType: 'fail' })

  // are new images minified
  toolbox.imageMinifiedJpg()
  toolbox.imageMinifiedPng()

  // are there skipped or focused tests
  toolbox.jsTestShortcuts({ logTypeSkipped: 'message', logTypeFocused: 'fail' })

  toolbox.commonPrDescription({ minLength: 10, msg: ':pencil2: Please add a description.' })
})()
github pluralsight / design-system / dangerfile.js View on Github external
void (async function main() {
  // thank new contributors
  toolbox.commonContribution({ msg: 'Thanks for contributing :tada:' })

  // are there any leftover console commands
  toolbox.jsConsoleCommands({ logType: 'fail' })

  // are new images minified
  toolbox.imageMinifiedJpg()
  toolbox.imageMinifiedPng()

  // are there skipped or focused tests
  toolbox.jsTestShortcuts({ logTypeSkipped: 'message', logTypeFocused: 'fail' })

  toolbox.commonPrDescription({ minLength: 10, msg: ':pencil2: Please add a description.' })
})()
github pluralsight / design-system / dangerfile.js View on Github external
void (async function main() {
  // thank new contributors
  toolbox.commonContribution({ msg: 'Thanks for contributing :tada:' })

  // are there any leftover console commands
  toolbox.jsConsoleCommands({ logType: 'fail' })

  // are new images minified
  toolbox.imageMinifiedJpg()
  toolbox.imageMinifiedPng()

  // are there skipped or focused tests
  toolbox.jsTestShortcuts({ logTypeSkipped: 'message', logTypeFocused: 'fail' })

  toolbox.commonPrDescription({ minLength: 10, msg: ':pencil2: Please add a description.' })
})()
github Skyscanner / backpack / dangerfile.js View on Github external
markdownChanges.forEach(path => {
  const fileContent = fs.readFileSync(path);

  fileContent
    .toString()
    .split(/\r?\n/)
    .forEach((line, lineIndex) => {
      AVOID_EXACT_WORDS.forEach(phrase => {
        if (line.includes(phrase.word)) {
          warn(`${phrase.reason} on line ${lineIndex + 1} in ${path}`);
        }
      });
    });
});

commonFileWarnings('test.log', {
  msg:
    'The build logs contain these warnings (check the build output in Travis for more details):',
});

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.

MIT
Latest version published 2 months ago

Package Health Score

72 / 100
Full package analysis