()
| 195 | * load user compilers |
| 196 | */ |
| 197 | var loadUserCompilers = function () { |
| 198 | var packages = FileManager.getAllPackageJSONFiles(FileManager.userCompilersDir); |
| 199 | packages.forEach(function (item) { |
| 200 | var packageData = util.readJsonSync(item); |
| 201 | |
| 202 | // check package if complete |
| 203 | var missingFields = checkPackageData(packageData); |
| 204 | if (missingFields.length) { |
| 205 | global.debug(item + ' is not complete, the missing fields: \n' + missingFields.join()); |
| 206 | return false; |
| 207 | } |
| 208 | |
| 209 | exports.addCompiler(packageData, path.dirname(item)); |
| 210 | }); |
| 211 | }; |
| 212 | |
| 213 | /** |
| 214 | * add compiler |
no test coverage detected