function getPlugins(opts) {
    var batterRootDir = __dirname.replace(delim + 'lib', '');
    var batterTasks = { rootDir: batterRootDir };
    var currentProject = { rootDir: opts.rootDir };
    var plugins = opts.plugins || [];

    // tasks in batter go to the front of the list; current project at the end (i.e. most important)
    plugins.unshift(batterTasks);

    if (batterRootDir !== opts.rootDir) {
        plugins.push(currentProject);
    }

    return plugins;
}
function getPlugins(opts) {
    var batterRootDir = __dirname.replace(delim + 'lib', '');
    var batterTasks = { rootDir: batterRootDir };
    var currentProject = { rootDir: opts.rootDir };
    var plugins = opts.plugins || [];

    
    plugins.unshift(batterTasks);

    if (batterRootDir !== opts.rootDir) {
        plugins.push(currentProject);
    }

    return plugins;
}
function getPlugins ( opts ) { var batterRootDir = __dirname . replace ( delim + 'lib' , '' ) ; var batterTasks = { rootDir : batterRootDir } ; var currentProject = { rootDir : opts . rootDir } ; var plugins = opts . plugins || [ ] ; // tasks in batter go to the front of the list; current project at the end (i.e. most important) plugins . unshift ( batterTasks ) ; if ( batterRootDir !== opts . rootDir ) { plugins . push ( currentProject ) ; } return plugins ; }
Helper function to get the plugins for which we will look for tasks
@param opts
Helper function to get the plugins for which we will look for tasks