aboutsummaryrefslogtreecommitdiffstats
path: root/grunt.js
diff options
context:
space:
mode:
authorScott González <scott.gonzalez@gmail.com>2012-05-14 17:19:10 -0400
committerScott González <scott.gonzalez@gmail.com>2012-05-14 17:19:10 -0400
commit6b1fea9baba7c54e58c0e414ad622b25eaa154b0 (patch)
tree005cdd2dff1e90396fd886158850b52869b832c6 /grunt.js
parentd4318a5f4c216e1184b6e90c17214b6e6cfbb0fb (diff)
downloadjquery-ui-6b1fea9baba7c54e58c0e414ad622b25eaa154b0.tar.gz
jquery-ui-6b1fea9baba7c54e58c0e414ad622b25eaa154b0.zip
Grunt: Added task for generating the list of authors.
Diffstat (limited to 'grunt.js')
-rw-r--r--grunt.js24
1 files changed, 24 insertions, 0 deletions
diff --git a/grunt.js b/grunt.js
index 202779e0b..98e8b30f5 100644
--- a/grunt.js
+++ b/grunt.js
@@ -572,6 +572,30 @@ grunt.registerTask( "clean", function() {
require( "rimraf" ).sync( "dist" );
});
+grunt.registerTask( "authors", function() {
+ var done = this.async();
+
+ grunt.utils.spawn({
+ cmd: "git",
+ args: [ "log", "--pretty=%an <%ae>" ]
+ }, function( err, result ) {
+ if ( err ) {
+ grunt.log.error( err );
+ return done( false );
+ }
+
+ var authors,
+ tracked = {};
+ authors = result.split( "\n" ).reverse().filter(function( author ) {
+ var first = !tracked[ author ];
+ tracked[ author ] = true;
+ return first;
+ }).join( "\n" );
+ grunt.log.writeln( authors );
+ done();
+ });
+});
+
grunt.registerTask( "default", "lint csslint htmllint qunit" );
grunt.registerTask( "sizer", "concat:ui min:dist/jquery-ui.min.js compare_size:all" );
grunt.registerTask( "sizer_all", "concat:ui min compare_size" );