utils/OptionUtils.js
function expandFiles(files, basePath) {
    var expandedFiles = [];
    files = files ? _.isArray(files) ? files : [files] : [];

    _.forEach(files, function(fileName) {
        expandedFiles = _.union(
            expandedFiles,
            glob.sync(path.join(basePath, fileName), { dot: true, nodir: true })
        );
    });

    return expandedFiles;
}
function expandFiles(files, basePath) {
    var expandedFiles = [];
    files = files ? _.isArray(files) ? files : [files] : [];

    _.forEach(files, function(fileName) {
        expandedFiles = _.union(
            expandedFiles,
            glob.sync(path.join(basePath, fileName), { dot: true, nodir: true })
        );
    });

    return expandedFiles;
}
function expandFiles ( files , basePath ) { var expandedFiles = [ ] ; files = files ? _ . isArray ( files ) ? files : [ files ] : [ ] ; _ . forEach ( files , function ( fileName ) { expandedFiles = _ . union ( expandedFiles , glob . sync ( path . join ( basePath , fileName ) , { dot : true , nodir : true } ) ) ; } ) ; return expandedFiles ; }
Prepend all given files with the provided basepath and expand all wildcards
@param files the files to expand
@param basePath the basepath from which the files should be expanded
@returns {Array} list of expanded files
Prepend all given files with the provided basepath and expand all wildcards