-
-
Notifications
You must be signed in to change notification settings - Fork 364
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Adds danger-yarn plugin #278
Conversation
I feel like there's something uniquely wrong here, maybe it's my plugin? Danger has no problem with other external modules inside the dangerfile. import * as fs from "fs"
import * as child_process from "child_process"
import fetch from "node-fetch"
import { distanceInWords } from "date-fns"
// For some reason we're getting type errors on this includes module?
// Wonder if we could move to the includes function in ES2015?
import * as includesOriginal from "lodash.includes" |
It is - lols |
OK, this works, I'm re-writing danger-plugin-yarn now - so may have improvements |
oh wrong place, this was meant to go danger/generator-danger-plugin#16 - ah well @macklinu will still see it |
30b0b25
to
5e3cbcf
Compare
d10c608
to
1b1d667
Compare
danger-plugin-yarnAuthor: Orta Therox Description: Provides dependency information on dependency changes in a PR Homepage: https://github.com/orta/danger-plugin-yarn#readme
# danger-plugin-yarn
|
Doh - spent all this time thinking things were broken, but really the check only works for |
092bd1c
to
faa24e4
Compare
added: ["@types/danger"], | ||
}, | ||
} | ||
checkForTypesInDeps(deps) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
this is a weird-ish test, as it's making assertions about how danger-plugin-yarn
works, but I'd rather have a test for something, and this seems reasonable enough
added?: any[] | ||
/** If both before & after are arrays, then you optionally get what is removed. Emprty is no removed objects. */ | ||
/** If both before & after are arrays, then you optionally get what is removed. Empty ig no removed objects. */ |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
typos
node_js: node | ||
script: | ||
- yarn run link | ||
- danger run --verbose |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
this isn't run by default, but it's nice when you're working on the dangerfile and want to test quickly
This is a bit of a dupe right now, as the contents of that plugin came from this dangerfile - but I'm more interested in overall integration. If this works then I'll modify the Dangerfile inside this PR.