(tree)
| 1117 | * @return {BroccoliTree} |
| 1118 | */ |
| 1119 | packageJavascript(tree) { |
| 1120 | if (this._cachedJavascript === null) { |
| 1121 | let applicationJs = this.processAppAndDependencies(tree); |
| 1122 | |
| 1123 | let vendorFilePath = this.distPaths.vendorJsFile; |
| 1124 | this.scriptOutputFiles[vendorFilePath].unshift('vendor/ember-cli/vendor-prefix.js'); |
| 1125 | |
| 1126 | let appJs = this.packageApplicationJs(applicationJs); |
| 1127 | let vendorJs = this.packageVendorJs(applicationJs); |
| 1128 | |
| 1129 | this._cachedJavascript = mergeTrees([appJs, vendorJs], { |
| 1130 | overwrite: true, |
| 1131 | annotation: 'Packaged Javascript', |
| 1132 | }); |
| 1133 | } |
| 1134 | |
| 1135 | return this._cachedJavascript; |
| 1136 | } |
| 1137 | |
| 1138 | /* |
| 1139 | * Concatenates all application's javascript Broccoli trees into one, as follows: |
no test coverage detected