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

Function treeForPublic

lib/models/addon.js:876–886  ·  view source on GitHub ↗

Returns the tree for all public files @public @method treeForPublic @param {Tree} tree @return {Tree} Public file tree

(tree)

Source from the content-addressed store, hash-verified

874 @return {Tree} Public file tree
875 */
876 treeForPublic(tree) {
877 if (!tree) {
878 return tree;
879 }
880
881 return new Funnel(tree, {
882 srcDir: '/',
883 destDir: `/${this.moduleName()}`,
884 annotation: `Addon#treeForPublic (${this.name})`,
885 });
886 },
887
888 /**
889 Returns the tree for all test files namespaced to a given addon.

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…