MCPcopy Create free account
hub / github.com/ember-cli/ember-cli / buildTreeFor

Method buildTreeFor

lib/broccoli/ember-app.js:219–235  ·  view source on GitHub ↗
(defaultPath, specified, shouldWatch)

Source from the content-addressed store, hash-verified

217 };
218
219 let buildTreeFor = (defaultPath, specified, shouldWatch) => {
220 if (specified !== null && specified !== undefined && typeof specified !== 'string') {
221 return specified;
222 }
223
224 let tree = null;
225 let resolvedPath = resolvePathFor(defaultPath, specified);
226 if (fs.existsSync(resolvedPath)) {
227 if (shouldWatch !== false) {
228 tree = new WatchedDir(resolvedPath);
229 } else {
230 tree = new UnwatchedDir(resolvedPath);
231 }
232 }
233
234 return tree;
235 };
236 let trees = (options && options.trees) || {};
237
238 let appTree = buildTreeFor('app', trees.app);

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected