(tree)
| 166 | * @return {BroccoliTree} |
| 167 | */ |
| 168 | processIndex(tree) { |
| 169 | if (this._cachedProcessedIndex === null) { |
| 170 | let indexFilePath = this.distPaths.appHtmlFile; |
| 171 | |
| 172 | let index = new Funnel(tree, { |
| 173 | allowEmtpy: true, |
| 174 | include: [`${this.name}/index.html`], |
| 175 | getDestinationPath: () => indexFilePath, |
| 176 | annotation: 'Classic: index.html', |
| 177 | }); |
| 178 | |
| 179 | let patterns = configReplacePatterns({ |
| 180 | addons: this.project.addons, |
| 181 | autoRun: this.autoRun, |
| 182 | storeConfigInMeta: this.storeConfigInMeta, |
| 183 | }); |
| 184 | |
| 185 | this._cachedProcessedIndex = new ConfigReplace(index, this.packageConfig(), { |
| 186 | configPath: path.join(this.name, 'config', 'environments', `${this.env}.json`), |
| 187 | files: [indexFilePath], |
| 188 | patterns, |
| 189 | }); |
| 190 | } |
| 191 | |
| 192 | return this._cachedProcessedIndex; |
| 193 | } |
| 194 | |
| 195 | /* |
| 196 | * Combines compiled javascript, external files (node modules), |
no test coverage detected