Skip to content

Commit

Permalink
added contributors to package.json
Browse files Browse the repository at this point in the history
  • Loading branch information
davglass committed Sep 9, 2015
1 parent 5a0f774 commit 1f5e326
Show file tree
Hide file tree
Showing 2 changed files with 48 additions and 5 deletions.
29 changes: 24 additions & 5 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,22 @@
"description": "Check license info for a pacakge",
"author": "Dav Glass <davglass@gmail.com>",
"version": "4.0.0",
"contributors": [
"Andrew Couch <andy@couchand.com>",
"Dav Glass <davglass@gmail.com>",
"Glen Arrowsmith <glen.arrowsmith@gmail.com>",
"Holger Knust <holger.knust@certusview.com>",
"James Bloomer <github2@thebloomers.co.uk>",
"Michael Williamson <mike@zwobble.org>",
"Paul Mandel <paul.mand3l@gmail.com>",
"Philipp Tusch <philipp.tusch@huf-group.com>",
"Stan Senotrusov <stan@senotrusov.com>",
"Tero Keski-Valkama <tero.keski-valkama@cybercom.com>",
"Tim Oxley <secoif@gmail.com>",
"Yuri Zapuchlak <yuri@vidmaker.com>",
"badunk <baduncaduncan@gmail.com>",
"gdw2 <gdwarner@Gmail.com>"
],
"dependencies": {
"chalk": "~0.5.1",
"mkdirp": "^0.3.5",
Expand All @@ -11,13 +27,15 @@
"treeify": "^1.0.1"
},
"devDependencies": {
"yui-lint": "~0.1.1",
"jshint": "~1.1.0",
"vows": "0.8.0",
"detectionizr": "*",
"format-package-json": "^0.2.0",
"git-contributors": "^0.2.3",
"istanbul": "*",
"request": "^2.34.0",
"jshint": "~1.1.0",
"queue": "^1.0.0",
"detectionizr": "*"
"request": "^2.34.0",
"vows": "0.8.0",
"yui-lint": "~0.1.1"
},
"keywords": [
"license",
Expand All @@ -30,6 +48,7 @@
"license-checker": "./bin/license-checker"
},
"scripts": {
"contrib": "./scripts/contrib.js",
"pretest": "jshint --config ./node_modules/yui-lint/jshint.json ./lib/",
"test": "istanbul cover --print both vows -- --spec ./tests/*.js",
"posttest": "istanbul check-coverage --statements 95 --functions 100 --lines 95 --branches 90"
Expand Down
24 changes: 24 additions & 0 deletions scripts/contrib.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
#!/usr/bin/env node

var join = require('path').join;
var format = require('format-package-json');
var GitContributors = require('git-contributors').GitContributors;
var opts = join(__dirname, '../');
var pkg = join(__dirname, '../package.json');
var json = require(pkg);

json.contributors = []; //clear it

GitContributors.list(opts, function (err, result) {
result.forEach(function(item) {
json.contributors.push([item.name, '<' + item.email + '>'].join(' '));
});
json.contributors.sort();
format(pkg, json, function() {
console.log('Wrote %s contributors to: %s', result.length, pkg);
});
});




0 comments on commit 1f5e326

Please sign in to comment.