Skip to content

Instantly share code, notes, and snippets.

@dominykas
Last active August 29, 2015 14:23
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save dominykas/7364dc65a3179dadd84d to your computer and use it in GitHub Desktop.
Save dominykas/7364dc65a3179dadd84d to your computer and use it in GitHub Desktop.
var bugs = [];
[
"api",
"climb",
"const",
"gampee",
"grunt-iw-release",
"import",
"insidewarehouse-tools/os-pdi",
"magicbox",
"mysql-wrapper",
"puzzle",
"quest",
"run",
"sanity-checks"
].forEach(function (appPath) {
var pkg = require(appPath + "/package.json");
var deps = [];
[
"dependencies",
"devDependencies",
"peerDependencies",
"optionalDependencies"
].forEach(function (d) {
if (pkg[d]) {
deps.push.apply(deps, Object.keys(pkg[d]));
}
});
bugs.push.apply(bugs, deps
.map(function (d) {
return require(appPath + "/node_modules/" + d + "/package.json").bugs;
})
.filter(function (bugs) {
return bugs && bugs.url
})
.map(function (bugs) {
return bugs.url;
}));
});
console.log("* " + bugs.sort().join("\n* "));
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment