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

Function locals

blueprints/addon-import/index.js:43–63  ·  view source on GitHub ↗
(options)

Source from the content-addressed store, hash-verified

41 },
42
43 locals(options) {
44 let addonRawName = options.inRepoAddon ? options.inRepoAddon : options.project.name();
45 let addonName = stringUtil.dasherize(addonRawName);
46 let fileName = stringUtil.dasherize(options.entity.name);
47 let blueprintName = options.originBlueprintName;
48 let modulePathSegments = [addonName, pluralize(options.originBlueprintName), fileName];
49
50 if (/-addon/.test(blueprintName)) {
51 blueprintName = blueprintName.substr(0, blueprintName.indexOf('-addon'));
52 modulePathSegments = [addonName, pluralize(blueprintName), fileName];
53 }
54
55 if (options.pod) {
56 modulePathSegments = [addonName, fileName, blueprintName];
57 }
58
59 return {
60 modulePath: modulePathSegments.join('/'),
61 blueprintName,
62 };
63 },
64};

Callers

nothing calls this directly

Calls 1

nameMethod · 0.45

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…