bower-locker-common.js
function getAllDependencies() {
    var folder = './' + getBowerFolder();
    var bowerDependencies = fs.readdirSync(folder, {encoding: 'utf8'});

    var dependencyInfos = [];
    bowerDependencies.forEach(function(dirname) {
        var filepath = nodePath.resolve(cwd, folder, dirname, '.bower.json');
        if (fs.existsSync(filepath)) {
            var dependencyInfo = getDependency(filepath);
            dependencyInfo.dirName = dirname;
            dependencyInfos.push(dependencyInfo);
        }
    });

    return dependencyInfos;
}
function getAllDependencies() {
    var folder = './' + getBowerFolder();
    var bowerDependencies = fs.readdirSync(folder, {encoding: 'utf8'});

    var dependencyInfos = [];
    bowerDependencies.forEach(function(dirname) {
        var filepath = nodePath.resolve(cwd, folder, dirname, '.bower.json');
        if (fs.existsSync(filepath)) {
            var dependencyInfo = getDependency(filepath);
            dependencyInfo.dirName = dirname;
            dependencyInfos.push(dependencyInfo);
        }
    });

    return dependencyInfos;
}
function getAllDependencies ( ) { var folder = './' + getBowerFolder ( ) ; var bowerDependencies = fs . readdirSync ( folder , { encoding : 'utf8' } ) ; var dependencyInfos = [ ] ; bowerDependencies . forEach ( function ( dirname ) { var filepath = nodePath . resolve ( cwd , folder , dirname , '.bower.json' ) ; if ( fs . existsSync ( filepath ) ) { var dependencyInfo = getDependency ( filepath ) ; dependencyInfo . dirName = dirname ; dependencyInfos . push ( dependencyInfo ) ; } } ) ; return dependencyInfos ; }
Function to return the metadata for all the dependencies loaded within the `bower_components` directory
@returns {Object} Returns dependency object for each dependency containing (dirName, commit, release, src, etc.)
Function to return the metadata for all the dependencies loaded within the bower_components directory