aboutsummaryrefslogtreecommitdiffstats
path: root/Gruntfile.js
diff options
context:
space:
mode:
authorScott González <scott.gonzalez@gmail.com>2014-10-24 09:21:46 -0400
committerScott González <scott.gonzalez@gmail.com>2014-10-24 09:40:55 -0400
commit068254455ffc3cec55e11486f1f0b7e8086846fd (patch)
treebcad11310f995e61bd9f394bc6aaef76b6036315 /Gruntfile.js
parent06231cf7622fe112703c38535df71aa7f100ef7d (diff)
downloadjquery-ui-068254455ffc3cec55e11486f1f0b7e8086846fd.tar.gz
jquery-ui-068254455ffc3cec55e11486f1f0b7e8086846fd.zip
Build: Upgrade to grunt-git-authors 2.0.0 and add update-authors task
Closes gh-1378
Diffstat (limited to 'Gruntfile.js')
-rw-r--r--Gruntfile.js57
1 files changed, 57 insertions, 0 deletions
diff --git a/Gruntfile.js b/Gruntfile.js
index 72236561f..241831102 100644
--- a/Gruntfile.js
+++ b/Gruntfile.js
@@ -305,9 +305,66 @@ grunt.initConfig({
"jquery-2.0.3/MIT-LICENSE.txt": "jquery-2.0.3/MIT-LICENSE.txt"
}
}
+ },
+
+ authors: {
+ prior: [
+ "Paul Bakaus <paul.bakaus@gmail.com>",
+ "Richard Worth <rdworth@gmail.com>",
+ "Yehuda Katz <wycats@gmail.com>",
+ "Sean Catchpole <sean@sunsean.com>",
+ "John Resig <jeresig@gmail.com>",
+ "Tane Piper <piper.tane@gmail.com>",
+ "Dmitri Gaskin <dmitrig01@gmail.com>",
+ "Klaus Hartl <klaus.hartl@gmail.com>",
+ "Stefan Petre <stefan.petre@gmail.com>",
+ "Gilles van den Hoven <gilles@webunity.nl>",
+ "Micheil Bryan Smith <micheil@brandedcode.com>",
+ "Jörn Zaefferer <joern.zaefferer@gmail.com>",
+ "Marc Grabanski <m@marcgrabanski.com>",
+ "Keith Wood <kbwood@iinet.com.au>",
+ "Brandon Aaron <brandon.aaron@gmail.com>",
+ "Scott González <scott.gonzalez@gmail.com>",
+ "Eduardo Lundgren <eduardolundgren@gmail.com>",
+ "Aaron Eisenberger <aaronchi@gmail.com>",
+ "Joan Piedra <theneojp@gmail.com>",
+ "Bruno Basto <b.basto@gmail.com>",
+ "Remy Sharp <remy@leftlogic.com>",
+ "Bohdan Ganicky <bohdan.ganicky@gmail.com>"
+ ]
}
});
+grunt.registerTask( "update-authors", function() {
+ var getAuthors = require( "grunt-git-authors" ),
+ done = this.async();
+
+ getAuthors({
+ priorAuthors: grunt.config( "authors.prior" )
+ }, function( error, authors ) {
+ if ( error ) {
+ grunt.log.error( error );
+ return done( false );
+ }
+
+ authors = authors.map(function( author ) {
+ if ( author.match( /^Jacek Jędrzejewski </ ) ) {
+ return "Jacek Jędrzejewski (http://jacek.jedrzejewski.name)";
+ } else if ( author.match( /^Pawel Maruszczyk </ ) ) {
+ return "Pawel Maruszczyk (http://hrabstwo.net)";
+ } else {
+ return author;
+ }
+ });
+
+ grunt.file.write( "AUTHORS.txt",
+ "Authors ordered by first contribution\n" +
+ "A list of current team members is available at http://jqueryui.com/about\n\n" +
+ authors.join( "\n" ) + "\n" );
+ done();
+ });
+});
+
grunt.registerTask( "default", [ "lint", "test" ]);
grunt.registerTask( "lint", [ "asciilint", "jshint", "jscs", "csslint", "htmllint" ]);
grunt.registerTask( "test", [ "qunit" ]);