tasks/init.js
function(files, licenses) {
        licenses.forEach(function(license) {
          var fileobj = helpers.expand({filter: 'isFile'}, 'licenses/LICENSE-' + license)[0];
          if(fileobj) {
            files['LICENSE-' + license] = fileobj.rel;
          }
        });
      }
function(files, licenses) {
        licenses.forEach(function(license) {
          var fileobj = helpers.expand({filter: 'isFile'}, 'licenses/LICENSE-' + license)[0];
          if(fileobj) {
            files['LICENSE-' + license] = fileobj.rel;
          }
        });
      }
function ( files , licenses ) { licenses . forEach ( function ( license ) { var fileobj = helpers . expand ( { filter : 'isFile' } , 'licenses/LICENSE-' + license ) [ 0 ] ; if ( fileobj ) { files [ 'LICENSE-' + license ] = fileobj . rel ; } } ) ; }
Given some number of licenses, add properly-named license files to the files object.
Given some number of licenses add properly - named license files to the files object .