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

Function __root__

lib/models/blueprint.js:750–767  ·  view source on GitHub ↗
(options)

Source from the content-addressed store, hash-verified

748 return pluralize(blueprintName);
749 },
750 __root__(options) {
751 if (options.inRepoAddon) {
752 let addon = findAddonByName(project, options.inRepoAddon);
753 let relativeAddonPath = path.relative(project.root, addon.root);
754 return path.join(relativeAddonPath, 'addon');
755 }
756 if (options.in) {
757 let relativeAddonPath = path.relative(project.root, options.in);
758 return path.join(relativeAddonPath, 'addon');
759 }
760 if (options.inDummy) {
761 return path.join('tests', 'dummy', 'app');
762 }
763 if (options.inAddon) {
764 return 'addon';
765 }
766 return 'app';
767 },
768 __test__(options) {
769 if (options.pod && options.hasPathToken) {
770 return options.blueprintName;

Callers

nothing calls this directly

Calls 1

findAddonByNameFunction · 0.85

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…