* Returns a Data instance for either the src/course or build/course folder * depending on the specification of the useOutputData property on either the * function or the Framework instance. * @returns {Data}
({
useOutputData = this.useOutputData,
performLoad = true
} = {})
| 90 | * @returns {Data} |
| 91 | */ |
| 92 | getData({ |
| 93 | useOutputData = this.useOutputData, |
| 94 | performLoad = true |
| 95 | } = {}) { |
| 96 | const data = new Data({ |
| 97 | framework: this, |
| 98 | sourcePath: useOutputData ? this.outputPath : this.sourcePath, |
| 99 | courseDir: this.courseDir, |
| 100 | jsonext: this.jsonext, |
| 101 | trackingIdType: this.trackingIdType, |
| 102 | log: this.log |
| 103 | }); |
| 104 | if (performLoad) data.load(); |
| 105 | return data; |
| 106 | } |
| 107 | |
| 108 | /** @returns {Plugins} */ |
| 109 | getPlugins({ |
no test coverage detected