(inputTree)
| 417 | * @return {BroccoliTree} |
| 418 | */ |
| 419 | processTemplates(inputTree) { |
| 420 | if (this._cachedProcessedTemplates === null) { |
| 421 | let appFiles = new Funnel(inputTree, { |
| 422 | srcDir: `${this.name}/`, |
| 423 | destDir: `${this.name}/`, |
| 424 | annotation: 'processTemplates: app files', |
| 425 | }); |
| 426 | |
| 427 | let mergedTemplates = [appFiles]; |
| 428 | |
| 429 | mergedTemplates = mergeTrees(mergedTemplates, { |
| 430 | overwrite: true, |
| 431 | annotation: 'Templates', |
| 432 | }); |
| 433 | let preprocessedTemplatesFromAddons = callAddonsPreprocessTreeHook(this.project, 'template', mergedTemplates); |
| 434 | |
| 435 | this._cachedProcessedTemplates = callAddonsPostprocessTreeHook( |
| 436 | this.project, |
| 437 | 'template', |
| 438 | preprocessTemplates(preprocessedTemplatesFromAddons, { |
| 439 | registry: this.registry, |
| 440 | treeType: 'templates', |
| 441 | }) |
| 442 | ); |
| 443 | } |
| 444 | |
| 445 | return this._cachedProcessedTemplates; |
| 446 | } |
| 447 | |
| 448 | /* |
| 449 | * Runs pre/post-processors hooks on the javascript files and returns a single |
no test coverage detected