tasks/versioning.js
function versioningJSON ( obj, dest, ns ) {
        var content = {};
        content[ ns ] = obj;
        var json = JSON.stringify( content, null, 2 );
        grunt.log.subhead( 'Generating JSON config file' );
        grunt.file.write( dest + '/assets.config.json', json );
        grunt.log.ok( 'File "' + dest + '/assets.config.json" created.' );
    }
function versioningJSON ( obj, dest, ns ) {
        var content = {};
        content[ ns ] = obj;
        var json = JSON.stringify( content, null, 2 );
        grunt.log.subhead( 'Generating JSON config file' );
        grunt.file.write( dest + '/assets.config.json', json );
        grunt.log.ok( 'File "' + dest + '/assets.config.json" created.' );
    }
function versioningJSON ( obj , dest , ns ) { var content = { } ; content [ ns ] = obj ; var json = JSON . stringify ( content , null , 2 ) ; grunt . log . subhead ( 'Generating JSON config file' ) ; grunt . file . write ( dest + '/assets.config.json' , json ) ; grunt . log . ok ( 'File "' + dest + '/assets.config.json" created.' ) ; }
Generate a JSON config file

@todo   Determine if keeping these in this file is the right approach

@param  {Object} obj  Versioning object created by the task
@param  {String} dest Location to save the generated config file
@param  {String} ns   Namespace to wrap config content
@return {undefined}
Generate a JSON config file