MCPcopy Index your code
hub / github.com/ember-cli/ember-cli / processIndex

Method processIndex

lib/broccoli/default-packager.js:168–193  ·  view source on GitHub ↗
(tree)

Source from the content-addressed store, hash-verified

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),

Callers 2

_legacyPackageMethod · 0.80
index-test.jsFile · 0.80

Calls 2

packageConfigMethod · 0.95
configReplacePatternsFunction · 0.85

Tested by

no test coverage detected