{"name":"danger","version":"0.7.3","keywords":["danger","ci"],"author":{"name":"Orta Therox"},"license":"MIT","_id":"danger@0.7.3","maintainers":[{"name":"orta","email":"orta.therox@gmail.com"}],"homepage":"https://github.com/danger/danger-js#readme","bugs":{"url":"https://github.com/danger/danger-js/issues"},"bin":{"danger":"distribution/commands/danger.js"},"dist":{"shasum":"8305d5a1c1f8887a7897c84b17240bad010f64fb","tarball":"http://registry-npm.ywwl.com/danger/download/danger-0.7.3.tgz","integrity":"sha512-1ed9cfge2bnp1xNmnfSGsMoSZDGtOPkn2vBGzNoPAXENvcmRLTkuhZKdz4JLq5O8bxIxFw08lAmu6f7xtvz9Hw==","signatures":[{"sig":"MEUCIEhkZm94Tfu/4Aq3XEvbXphwxwH1G/sNOLVw1sSe2sSOAiEAj/ONR2VYCeHJ4Wy7mqdrxbYnKoeE5FEoZB0DG6ES+WU=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"size":38783,"noattachment":false,"key":"/danger/-/danger-0.7.3.tgz"},"jest":{"verbose":true,"testPathIgnorePatterns":["/node_modules/","/distribution/"]},"main":"distribution/danger.js","_from":".","_shasum":"8305d5a1c1f8887a7897c84b17240bad010f64fb","gitHead":"ce794f2a54ee52a4d3bc9f682778dc4c860f5a85","scripts":{"fix":"eslint ./source --fix","flow":"flow check","link":"npm run build ; chmod +x distribution/commands/danger.js ; npm link","lint":"eslint ./source","test":"jest","build":"babel source --out-dir distribution --source-maps","testwatch":"jest --watch","buildwatch":"babel source --watch --out-dir distribution","prepublish":"in-publish && npm run build && npm run export-flowtype || not-in-publish","export-flowtype":"node scripts/create-flow-typed-export.js"},"_npmUser":{"name":"orta","email":"orta.therox@gmail.com"},"repository":{"url":"git+https://github.com/danger/danger-js.git","type":"git"},"_npmVersion":"3.10.10","description":"Unit tests for Team Culture","directories":{},"_nodeVersion":"7.2.1","dependencies":{"commander":"^2.9.0","node-fetch":"^1.6.3","parse-diff":"^0.4.0","jest-runtime":"^18.0.0","babel-polyfill":"^6.16.0"},"devDependencies":{"jest":"^18.0.0","eslint":"^3.12.2","flow-bin":"^0.37.4","babel-cli":"^6.16.0","in-publish":"^2.0.0","babel-eslint":"^7.1.1","@types/commander":"^2.3.31","@types/node-fetch":"^1.6.6","babel-preset-es2015":"^6.16.0","babel-preset-stage-3":"^6.17.0","eslint-plugin-promise":"^3.4.0","eslint-config-standard":"^6.0.0-beta.3","eslint-plugin-flowtype":"^2.29.1","eslint-plugin-standard":"^2.0.0","babel-plugin-transform-regenerator":"^6.16.1","babel-plugin-syntax-async-functions":"^6.13.0","babel-plugin-transform-flow-strip-types":"^6.8.0"},"_npmOperationalInternal":{"tmp":"tmp/danger-0.7.3.tgz_1483114831258_0.9094403050839901","host":"packages-12-west.internal.npmjs.com"},"readme":"<p align=\"center\">\n  <img src=\"http://danger.systems/images/js/danger-logo-hero-cachable@2x.png\" width=250 /></br>\n  Formalize your Pull Request etiquette.\n</p>\n\n<p align=\"center\">\n    <a href=\"#what-is-danger-js\">What is Danger JS?</a> &bull;\n    <a href=\"VISION.md\">Vision</a> &bull;\n    <a href=\"#this-thing-is-broken-i-should-help-improve-it\">Helping Out</a> &bull;\n    <a href=\"http://danger.systems/js/usage/extending-danger.html\">Plugin Development</a>\n</p>\n\n## What is Danger JS?\n\nDanger runs after your CI, automating your team's conventions surrounding code review.\n\nThis provides another logical step in your process, through which Danger can help lint your rote tasks in daily code\nreview.\n\nYou can use Danger to codify your team's norms, leaving humans to think about harder problems.\n\nDanger JS works with GitHub, BitBucket Server, BitBucket Cloud for code review, then with: Travis CI, GitLab CI,\nSemaphore, Circle CI, GitHub Actions, Jenkins, Bamboo, Bitrise, surf-build, Codeship, Drone, Buildkite, Buddy.works,\nTeamCity, Visual Studio Team Services, Screwdriver, Concourse, Netlify, CodeBuild, Codefresh, AppCenter, BitBucket\nPipelines, Cirrus CI, Codemagic or Xcode Cloud.\n\n[![npm](https://img.shields.io/npm/v/danger.svg)](https://www.npmjs.com/package/danger)\n[![Build Status](https://travis-ci.org/danger/danger-js.svg?branch=main)](https://travis-ci.org/danger/danger-js)\n[![Build Status](https://ci.appveyor.com/api/projects/status/ep5hgeox3lbc5c7f?svg=true)](https://ci.appveyor.com/project/orta/danger-js/branch/main)\n\n## For example?\n\nYou can:\n\n- Enforce CHANGELOGs\n- Enforce links to Trello/JIRA in PR/MR bodies\n- Enforce using descriptive labels\n- Look out for common anti-patterns\n- Highlight interesting build artifacts\n- Give warnings when specific files change\n\nDanger provides the glue to let _you_ build out the rules specific to your team's culture, offering useful metadata and\na comprehensive plugin system to share common issues.\n\n## Getting Started\n\nAlright. So, actually, you may be in the wrong place. From here on in, this README is going to be for people who are\ninterested in working on and improving on Danger JS.\n\nWe keep all of the end-user documentation at <http://danger.systems/js>.\n\nSome quick links to get you started:\n\n- [Getting Started](http://danger.systems/js/guides/getting_started.html)\n- [Guides Index](http://danger.systems/js/guides.html)\n- [DSL Reference](http://danger.systems/js/reference.html)\n\n## This thing is broken, I should help improve it\n\nAwesommmmee. Everything you need is down below. You can also refer to [CONTRIBUTING](CONTRIBUTING.md) file where you'll\nfind the same information listed below.\n\n```sh\ngit clone https://github.com/danger/danger-js.git\ncd danger-js\n\n# if you don't have yarn installed\nnpm install -g yarn\n\nyarn install\n```\n\nYou can then verify your install by running the tests, and the linters:\n\n```sh\nyarn test\nyarn lint\n```\n\nThe fixers for both tslint and prettier will be applied when you commit, and on a push your code will be verified that\nit compiles.\n\nYou can run your dev copy of danger against a PR by running:\n\n```sh\nyarn build; node --inspect distribution/commands/danger-pr.js https://github.com/danger/danger-js/pull/817\n```\n\n### How does Danger JS work?\n\nCheck the [architecture doc](https://github.com/danger/danger-js/blob/main/docs/architecture.md).\n\n### What is the TODO?\n\nCheck the issues, I try and keep my short term perspective there. Long term is in the [VISION.md](VISION.md).\n\n### Releasing a new version of Danger\n\nReleases are triggered by pushing a version tag. Tag creation on this repo is restricted by the \"Release tags\"\nrepository ruleset, so the set of people who can ship a release is that ruleset's bypass list.\n\n- Checkout the `main` branch. Ensure your working tree is clean, and make sure you have the latest changes by running\n  `git pull; yarn`.\n- Bump and tag - `npm run release -- patch --ci`. This bumps `package.json`, commits, tags and pushes. It no longer publishes\n  to npm from your machine, so there's no OTP to enter.\n- Pushing the tag runs [`npm_publish.yml`](.github/workflows/npm_publish.yml), which publishes to npm using npm's\n  trusted publishing (there is no `NPM_TOKEN` secret) and then kicks off `release.yml` for the macOS native builds and\n  the homebrew tap.\n\nThe publish job runs in the `npm-release` environment, which only tags can deploy to. Combined with the tag ruleset,\nthat means a branch can never obtain npm's OIDC credentials. Changes to anything under `.github/workflows/` need a\nreview from an admin, via [CODEOWNERS](.github/CODEOWNERS).\n\n:ship:\n\n## License, Contributor's Guidelines and Code of Conduct\n\nWe try to keep as much discussion as possible in GitHub issues, but also have a pretty inactive Slack --- if you'd like\nan invite, ping [@Orta](https://twitter.com/orta/) a DM on Twitter with your email. It's mostly interesting if you want\nto stay on top of Danger without all the emails from GitHub.\n\n> This project is open source under the MIT license, which means you have full access to the source code and can modify\n> it to fit your own needs but don't have access to deploy.\n>\n> This project subscribes to the [Moya Contributors Guidelines](https://github.com/Moya/contributors) which TLDR: means\n> we give out push access easily and often.\n>\n> Contributors subscribe to the [Contributor Code of Conduct](http://contributor-covenant.org/version/1/3/0/) based on\n> the [Contributor Covenant](http://contributor-covenant.org) version 1.3.0.\n","publish_time":1483114833222,"_cnpm_publish_time":1483114833222,"dist-tags":{"alpha":"3.0.0-beta.2","beta":"5.0.0-beta-24","gitlab":"8.0.0-alpha-1","latest":"14.1.0"}}