(tree)
| 486 | * @return {BroccoliTree} |
| 487 | */ |
| 488 | processJavascript(tree) { |
| 489 | if (this._cachedProcessedJavascript === null) { |
| 490 | let javascript = new Funnel(tree, { |
| 491 | srcDir: this.name, |
| 492 | destDir: this.name, |
| 493 | annotation: '', |
| 494 | }); |
| 495 | let app = callAddonsPreprocessTreeHook(this.project, 'js', javascript); |
| 496 | |
| 497 | let preprocessedApp = preprocessJs(app, '/', this.name, { |
| 498 | registry: this.registry, |
| 499 | treeType: 'app', |
| 500 | }); |
| 501 | |
| 502 | this._cachedProcessedJavascript = callAddonsPostprocessTreeHook(this.project, 'js', preprocessedApp); |
| 503 | } |
| 504 | |
| 505 | return this._cachedProcessedJavascript; |
| 506 | } |
| 507 | |
| 508 | /* |
| 509 | * Compiles application css files, runs pre/post-processors hooks on the them, |
no test coverage detected