Skip to content

Commit

Permalink
Add Danger by using a subfolder (jestjs#2532)
Browse files Browse the repository at this point in the history
* Initial Dangerfile, adds a rule for including flow and the FB header

* [Danger] Use a local path for jest-runtime instead of the downloaded NPM package

* [Danger] Makes the FB copyright header check correct

* just run danger

* Update Danger

* Use danger from a subfolder
  • Loading branch information
orta authored and skovhus committed Apr 29, 2017
1 parent 7d56ad1 commit 0fc9c37
Show file tree
Hide file tree
Showing 7 changed files with 1,681 additions and 2 deletions.
1 change: 1 addition & 0 deletions .flowconfig
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@
.*/vendor/jsonlint/.*
.*/examples/.*
.*/website/.*
.*/dangerfile.js

[options]
module.name_mapper='^types/\(.*\)$' -> '<PROJECT_ROOT>/types/\1.js'
Expand Down
2 changes: 1 addition & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -18,4 +18,4 @@ npm-debug.log*
website/core/metadata*.js
website/src/jest/blog
website/src/jest/docs
yarn-error.log
/danger/node_modules/
6 changes: 5 additions & 1 deletion .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,4 +13,8 @@ cache:
- ".eslintcache"
- "node_modules"

script: yarn run test-ci
script:
- yarn run test-ci
- (cd danger && yarn install)
- yarn run danger

6 changes: 6 additions & 0 deletions danger/package.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
{
"private": true,
"devDependencies": {
"danger": "^0.8.0"
}
}
Loading

0 comments on commit 0fc9c37

Please sign in to comment.