diff options
author | Scott González <scott.gonzalez@gmail.com> | 2012-05-14 17:19:10 -0400 |
---|---|---|
committer | Scott González <scott.gonzalez@gmail.com> | 2012-05-14 17:19:10 -0400 |
commit | 6b1fea9baba7c54e58c0e414ad622b25eaa154b0 (patch) | |
tree | 005cdd2dff1e90396fd886158850b52869b832c6 /grunt.js | |
parent | d4318a5f4c216e1184b6e90c17214b6e6cfbb0fb (diff) | |
download | jquery-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.js | 24 |
1 files changed, 24 insertions, 0 deletions
@@ -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" ); |