mirror of
https://github.com/jquery/jquery-ui.git
synced 2024-11-21 11:04:24 +00:00
Build/grunt: Coding standards
This commit is contained in:
parent
a454c5d246
commit
12832b7c35
2
grunt.js
2
grunt.js
@ -395,7 +395,7 @@ task.registerMultiTask( "md5", "Create list of md5 hashes for CDN uploads", func
|
|||||||
var hashes = [];
|
var hashes = [];
|
||||||
file.expand( dir + "**/*" ).forEach(function( fileName ) {
|
file.expand( dir + "**/*" ).forEach(function( fileName ) {
|
||||||
var hash = crypto.createHash( "md5" );
|
var hash = crypto.createHash( "md5" );
|
||||||
hash.update( file.read( fileName, 'ascii' ) );
|
hash.update( file.read( fileName, "ascii" ) );
|
||||||
hashes.push( fileName.replace( dir, "" ) + " " + hash.digest( "hex" ) );
|
hashes.push( fileName.replace( dir, "" ) + " " + hash.digest( "hex" ) );
|
||||||
});
|
});
|
||||||
file.write( this.file.dest, hashes.join( "\n" ) + "\n" );
|
file.write( this.file.dest, hashes.join( "\n" ) + "\n" );
|
||||||
|
Loading…
Reference in New Issue
Block a user