(fileName)
| 40 | } |
| 41 | |
| 42 | function readProjectFile(fileName) { |
| 43 | var data = readJSON(fileName), name; |
| 44 | for (var option in defaultConfig) { |
| 45 | if (!data.hasOwnProperty(option)) |
| 46 | data[option] = defaultConfig[option]; |
| 47 | else if (option == "plugins") |
| 48 | for (name in defaultConfig.plugins) |
| 49 | if (!Object.prototype.hasOwnProperty.call(data.plugins, name)) |
| 50 | data.plugins[name] = defaultConfig.plugins[name]; |
| 51 | } |
| 52 | return data; |
| 53 | } |
| 54 | |
| 55 | function findFile(file, projectDir, fallbackDir, options) { |
| 56 | var local = path.resolve(projectDir, file); |
no test coverage detected
searching dependent graphs…