indigotech / dangerjs-plugin

Danger JS plugin used by Peril implementation at https://github.com/indigotech/peril
MIT License
6 stars 0 forks source link

taqtile-dangerjs-plugin

Build Status npm version semantic-release Code Climate

Taqtile Danger-js Plugin

Environment

$ nvm use

(If any error is found, install correct node versio via $ nvm install)

$ npm install -g yarn@`node -pe "require('./package.json').engines.yarn"`

Install dependencies

$ yarn install

Adding new rules

Add your rules to src/rules folder and its respective tests.

When adding new rules, please follow current scope files for pr, nodejs, android, etc or create a new one in case your rule does not fit in any of the existing ones.

Also, check Danger's guide on Phrasing to understand how to better use error messages to provide an impartial but polite feedback.

What is currently being checked

PR

Platform/Language agnostic

Node

iOS

Android

Web

Nice to have

Usage

For danger-js

Install:

yarn add taqtile-dangerjs-plugin --dev

At a glance:

// dangerfile.js
import { schedule } from 'danger'
import taqtileDangerjsPlugin from 'taqtile-dangerjs-plugin'

schedule(async() => {
  await taqtileDangerjsPlugin();
})

For peril

Install:

yarn add taqtile-dangerjs-plugin --dev

Add plugin module to json settings:

"settings": {
  "modules": ["taqtile-dangerjs-plugin"]
},

Use it in any peril dangerfile

// dangerfile.js
import { schedule } from 'danger'
import taqtileDangerjsPlugin from 'taqtile-dangerjs-plugin'

schedule(async() => {
  await taqtileDangerjsPlugin();
})

Changelog

See the GitHub release history.

Contributing

See CONTRIBUTING.md.