code: function getResources( filePath ) {
  	if ( fs.existsSync( filePath ) ) {
  		return readDirectory( filePath )
  			.then( function( contents ) {
  				return _.map( contents, function( item ) {
  					var resourcePath = path.join( filePath, item, 'resource.js' );
  					if ( fs.existsSync( resourcePath ) ) {
  						return resourcePath;
  					}
  				}.bind( this ) );
  			}.bind( this ) );
  	} else {
  		return when( [] );
  	}
  }
docs: returns a list of resource files from a given parent directory