lib/dir.js
/**
 * Create an array of all the right files in the source dir
 * @param  {String}   source source path
 * @param  {Object}   options option object
 * @return {Array}
 */
Create an array of all the right files in the source dir
@param  {String}   source source path
@param  {Object}   options option object
@return {Array}
Create an array of all the right files in the source dir @param { String } source source path @param { Object } options option object @return { Array }
function collectFiles(source, options) {
  var dirtyFiles = walkdir.sync(source), 
      ignore     = options.ignore || [],
      files      = [];
  dirtyFiles.forEach(function(file){
    file = path.relative(source, file);
    var doNotIgnore = _.all(ignore, function(d){
      return (file.indexOf(d) === -1);
    });
    if ((file.substr(-2) === 'js') && doNotIgnore) {
      files.push(file);
    }
  });
  return files;
}
function collectFiles ( source , options ) { var dirtyFiles = walkdir . sync ( source ) , ignore = options . ignore || [ ] , files = [ ] ; dirtyFiles . forEach ( function ( file ) { file = path . relative ( source , file ) ; var doNotIgnore = _ . all ( ignore , function ( d ) { return ( file . indexOf ( d ) === - 1 ) ; } ) ; if ( ( file . substr ( - 2 ) === 'js' ) && doNotIgnore ) { files . push ( file ) ; } } ) ; return files ; }
Create an array of all the right files in the source dir
 @param  {String}   source source path
 @param  {Object}   options option object
 @return {Array}
Create an array of all the right files in the source dir @param { String } source source path @param { Object } options option object @return { Array }
// tee hee! // return true if no part of the path is in the ignore list