lib/moduleLoader/lib/requireAll.js
function (options, iterationInfo, modules) {
        // filename filter
        if (options.fileNameFilter) {
            var match = iterationInfo.fileName.match(options.fileNameFilter);
            if (!match) {
                return;
            }
        }

        // Filter spec.js files
        var match = iterationInfo.fileName.match(/.spec.js/i);
        if (match) {
            return;
        }

        // relative path filter
        if (options.relativePathFilter) {
            var pathMatch = iterationInfo.relativeFullPath.match(options.relativePathFilter);
            if (!pathMatch)
                return;
        }

        //load module
        loadModule(modules, options, iterationInfo);
    }
function (options, iterationInfo, modules) {
        // filename filter
        if (options.fileNameFilter) {
            var match = iterationInfo.fileName.match(options.fileNameFilter);
            if (!match) {
                return;
            }
        }

        // Filter spec.js files
        var match = iterationInfo.fileName.match(/.spec.js/i);
        if (match) {
            return;
        }

        // relative path filter
        if (options.relativePathFilter) {
            var pathMatch = iterationInfo.relativeFullPath.match(options.relativePathFilter);
            if (!pathMatch)
                return;
        }

        //load module
        loadModule(modules, options, iterationInfo);
    }
function ( options , iterationInfo , modules ) { // filename filter if ( options . fileNameFilter ) { var match = iterationInfo . fileName . match ( options . fileNameFilter ) ; if ( ! match ) { return ; } } // Filter spec.js files var match = iterationInfo . fileName . match ( / .spec.js / i ) ; if ( match ) { return ; } // relative path filter if ( options . relativePathFilter ) { var pathMatch = iterationInfo . relativeFullPath . match ( options . relativePathFilter ) ; if ( ! pathMatch ) return ; } //load module loadModule ( modules , options , iterationInfo ) ; }
Process single file to module dictionary
@param options
@param fileName
@param modules
Process single file to module dictionary