(projectContext, options = {})
| 79 | |
| 80 | export class CordovaProject { |
| 81 | constructor(projectContext, options = {}) { |
| 82 | |
| 83 | this.projectContext = projectContext; |
| 84 | |
| 85 | this.projectRoot = projectContext.getProjectLocalDirectory('cordova-build'); |
| 86 | this.options = options; |
| 87 | |
| 88 | this.pluginsDir = files.pathJoin(this.projectRoot, 'plugins'); |
| 89 | |
| 90 | this.buildJsonPath = files.convertToOSPath( |
| 91 | files.pathJoin(this.projectRoot, 'build.json')); |
| 92 | |
| 93 | this.createIfNeeded(); |
| 94 | } |
| 95 | |
| 96 | createIfNeeded() { |
| 97 | buildmessage.assertInJob(); |
nothing calls this directly
no test coverage detected