Skip to content

Commit 0682544

Browse files
committed
Build: Upgrade to grunt-git-authors 2.0.0 and add update-authors task
Closes jquerygh-1378
1 parent 06231cf commit 0682544

File tree

4 files changed

+70
-5
lines changed

4 files changed

+70
-5
lines changed

.mailmap

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -37,6 +37,7 @@ Filippo Cavallarin <filippo.cavallarin@codseq.it> <poplix@papuasia.org>
3737
Florian Gutmann <f.gutmann@chronimo.com> <blackfeet@gmx.at>
3838
Genie <386@mail.com>
3939
Guntupalli Karunakar <karunakarg@yahoo.com>
40+
Harri Kilpiö <harri.kilpio@gmail.com>
4041
Heiko Henning <heiko@thehennings.ch> <h.henning@educa.ch>
4142
Hiroshi Tomita <tomykaira@gmail.com>
4243
Ian Simpson <spoonlikesham@gmail.com>

AUTHORS.txt

Lines changed: 11 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ Chi Cheng <cloudream@gmail.com>
2828
Ca-Phun Ung <pazu2k@gmail.com>
2929
Ariel Flesler <aflesler@gmail.com>
3030
Maggie Wachs <maggie@filamentgroup.com>
31-
Scott Jehl <scott@scottjehl.com>
31+
Scott Jehl <scottjehl@gmail.com>
3232
Todd Parker <todd@filamentgroup.com>
3333
Andrew Powell <andrew@shellscape.org>
3434
Brant Burnett <btburnett3@gmail.com>
@@ -52,7 +52,7 @@ Eyal Kobrigo <kobrigo@hotmail.com>
5252
Tiago Freire <tiago.freire@gmail.com>
5353
Diego Tres <diegotres@gmail.com>
5454
Holger Rüprich <holger@rueprich.de>
55-
Ziling Zhao <zizhao@cisco.com>
55+
Ziling Zhao <zilingzhao@gmail.com>
5656
Mike Alsup <malsup@gmail.com>
5757
Robson Braga Araujo <robsonbraga@gmail.com>
5858
Pierre-Henri Ausseil <ph.ausseil@gmail.com>
@@ -80,7 +80,7 @@ Kyle Wilkinson <kai@wikyd.org>
8080
Khaled AlHourani <me@khaledalhourani.com>
8181
Marian Rudzynski <mr@impaled.org>
8282
Jean-Francois Remy <jeff@melix.org>
83-
Doug Blood
83+
Doug Blood <dougblood@gmail.com>
8484
Filippo Cavallarin <filippo.cavallarin@codseq.it>
8585
Heiko Henning <heiko@thehennings.ch>
8686
Aliaksandr Rahalevich <saksmlz@gmail.com>
@@ -140,7 +140,8 @@ Wesley Walser <waw325@gmail.com>
140140
Kouhei Sutou <kou@clear-code.com>
141141
Karl Kirch <karlkrch@gmail.com>
142142
Chris Kelly <ckdake@ckdake.com>
143-
Jay Oster <jay@loyalize.com>
143+
Jason Oster <jay@kodewerx.org>
144+
Felix Nagel <info@felixnagel.com>
144145
Alexander Polomoshnov <alex.polomoshnov@gmail.com>
145146
David Leal <dgleal@gmail.com>
146147
Igor Milla <igor.fsp.milla@gmail.com>
@@ -150,12 +151,14 @@ Marwan Al Jubeh <marwan.aljubeh@gmail.com>
150151
Milan Broum <midlis@googlemail.com>
151152
Sebastian Sauer <info@dynpages.de>
152153
Gaëtan Muller <m.gaetan89@gmail.com>
154+
Michel Weimerskirch <michel@weimerskirch.net>
153155
William Griffiths <william@ycymro.com>
154156
Stojce Slavkovski <stojce@gmail.com>
155157
David Soms <david.soms@gmail.com>
156158
David De Sloovere <david.desloovere@outlook.com>
157159
Michael P. Jung <michael.jung@terreon.de>
158160
Shannon Pekary <spekary@gmail.com>
161+
Dan Wellman <danwellman@hotmail.com>
159162
Matthew Edward Hutton <meh@corefiling.co.uk>
160163
James Khoury <james@jameskhoury.com>
161164
Rob Loach <robloach@gmail.com>
@@ -208,6 +211,7 @@ Bernhard Sirlinger <bernhard.sirlinger@tele2.de>
208211
Jared A. Scheel <jared@jaredscheel.com>
209212
Rafael Xavier de Souza <rxaviers@gmail.com>
210213
John Chen <zhang.z.chen@intel.com>
214+
Robert Beuligmann <robertbeuligmann@gmail.com>
211215
Dale Kocian <dale.kocian@gmail.com>
212216
Mike Sherov <mike.sherov@gmail.com>
213217
Andrew Couch <andy@couchand.com>
@@ -282,3 +286,6 @@ Will Holley <willholley@gmail.com>
282286
Uri Gilad <antishok@gmail.com>
283287
Richard Gibson <richard.gibson@gmail.com>
284288
Simen Bekkhus <sbekkhus91@gmail.com>
289+
Chen Eshchar <eshcharc@gmail.com>
290+
Bruno Pérel <brunoperel@gmail.com>
291+
Mohammed Alshehri <m@dralshehri.com>

Gruntfile.js

Lines changed: 57 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -305,9 +305,66 @@ grunt.initConfig({
305305
"jquery-2.0.3/MIT-LICENSE.txt": "jquery-2.0.3/MIT-LICENSE.txt"
306306
}
307307
}
308+
},
309+
310+
authors: {
311+
prior: [
312+
"Paul Bakaus <paul.bakaus@gmail.com>",
313+
"Richard Worth <rdworth@gmail.com>",
314+
"Yehuda Katz <wycats@gmail.com>",
315+
"Sean Catchpole <sean@sunsean.com>",
316+
"John Resig <jeresig@gmail.com>",
317+
"Tane Piper <piper.tane@gmail.com>",
318+
"Dmitri Gaskin <dmitrig01@gmail.com>",
319+
"Klaus Hartl <klaus.hartl@gmail.com>",
320+
"Stefan Petre <stefan.petre@gmail.com>",
321+
"Gilles van den Hoven <gilles@webunity.nl>",
322+
"Micheil Bryan Smith <micheil@brandedcode.com>",
323+
"Jörn Zaefferer <joern.zaefferer@gmail.com>",
324+
"Marc Grabanski <m@marcgrabanski.com>",
325+
"Keith Wood <kbwood@iinet.com.au>",
326+
"Brandon Aaron <brandon.aaron@gmail.com>",
327+
"Scott González <scott.gonzalez@gmail.com>",
328+
"Eduardo Lundgren <eduardolundgren@gmail.com>",
329+
"Aaron Eisenberger <aaronchi@gmail.com>",
330+
"Joan Piedra <theneojp@gmail.com>",
331+
"Bruno Basto <b.basto@gmail.com>",
332+
"Remy Sharp <remy@leftlogic.com>",
333+
"Bohdan Ganicky <bohdan.ganicky@gmail.com>"
334+
]
308335
}
309336
});
310337

338+
grunt.registerTask( "update-authors", function() {
339+
var getAuthors = require( "grunt-git-authors" ),
340+
done = this.async();
341+
342+
getAuthors({
343+
priorAuthors: grunt.config( "authors.prior" )
344+
}, function( error, authors ) {
345+
if ( error ) {
346+
grunt.log.error( error );
347+
return done( false );
348+
}
349+
350+
authors = authors.map(function( author ) {
351+
if ( author.match( /^Jacek Jędrzejewski </ ) ) {
352+
return "Jacek Jędrzejewski (http://jacek.jedrzejewski.name)";
353+
} else if ( author.match( /^Pawel Maruszczyk </ ) ) {
354+
return "Pawel Maruszczyk (http://hrabstwo.net)";
355+
} else {
356+
return author;
357+
}
358+
});
359+
360+
grunt.file.write( "AUTHORS.txt",
361+
"Authors ordered by first contribution\n" +
362+
"A list of current team members is available at http://jqueryui.com/about\n\n" +
363+
authors.join( "\n" ) + "\n" );
364+
done();
365+
});
366+
});
367+
311368
grunt.registerTask( "default", [ "lint", "test" ]);
312369
grunt.registerTask( "lint", [ "asciilint", "jshint", "jscs", "csslint", "htmllint" ]);
313370
grunt.registerTask( "test", [ "qunit" ]);

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -71,7 +71,7 @@
7171
"grunt-contrib-qunit": "0.4.0",
7272
"grunt-contrib-uglify": "0.1.1",
7373
"grunt-esformatter": "0.2.0",
74-
"grunt-git-authors": "1.2.0",
74+
"grunt-git-authors": "2.0.0",
7575
"grunt-html": "1.0.0",
7676
"grunt-jscs": "0.6.2",
7777
"load-grunt-tasks": "0.3.0",

0 commit comments

Comments
 (0)