| 1 | 1 | var gonzales = require('gonzales-pe'); |
| 2 | 1 | var minimatch = require('minimatch'); |
| 3 | 1 | var vow = require('vow'); |
| 4 | 1 | var vfs = require('vow-fs'); |
| 5 | | |
| 6 | | /** |
| 7 | | * @param {Array} predefinedOptions |
| 8 | | * @constructor |
| 9 | | * @name Comb |
| 10 | | */ |
| 11 | 1 | var Comb = function() { |
| 12 | | // nani |
| 13 | | }; |
| 14 | | |
| 15 | 1 | Comb.prototype = { |
| 16 | | // List of file paths that should be excluded from processing: |
| 17 | | excludedPaths_: [], |
| 18 | | |
| 19 | | /** |
| 20 | | * Checks if path is present in `exclude` list. |
| 21 | | * |
| 22 | | * @param {String} path |
| 23 | | * @returns {Boolean} False if specified path is present in `exclude` list. |
| 24 | | * Otherwise returns true. |
| 25 | | */ |
| 26 | | shouldProcess_: function shouldProcess(path) { |
| 27 | 2 | var excludedPaths = this.excludedPaths_; |
| 28 | | |
| 29 | 2 | path = path.replace(/^\.\//, ''); |
| 30 | | for (var i = excludedPaths.length; i--;) { |
| 31 | | if (excludedPaths[i].match(path)) return false; |
| 32 | | } |
| 33 | 1 | return true; |
| 34 | | } |
| 35 | | }; |
| 36 | | |
| 37 | 1 | module.exports = Comb; |
| 38 | | |
| 39 | | |