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

Function _generateFileMapVariables

lib/models/blueprint.js:1004–1024  ·  view source on GitHub ↗

@private @method _generateFileMapVariables @param {String} moduleName @param locals @param {Object} options @return {Object}

(moduleName, locals, options)

Source from the content-addressed store, hash-verified

1002 @return {Object}
1003 */
1004 _generateFileMapVariables(moduleName, locals, options) {
1005 let originBlueprintName = options.originBlueprintName || this.name;
1006 let podModulePrefix = this.project.config().podModulePrefix || '';
1007 let podPath = podModulePrefix.substr(podModulePrefix.lastIndexOf('/') + 1);
1008 let inAddon = this.project.isEmberCLIAddon() || !!options.inRepoAddon;
1009 let inDummy = this.project.isEmberCLIAddon() ? options.dummy : false;
1010
1011 return {
1012 pod: this.pod,
1013 podPath,
1014 hasPathToken: this.hasPathToken,
1015 inAddon,
1016 inRepoAddon: options.inRepoAddon,
1017 in: options.in,
1018 inDummy,
1019 blueprintName: this.name,
1020 originBlueprintName,
1021 dasherizedModuleName: stringUtils.dasherize(moduleName),
1022 locals,
1023 };
1024 },
1025
1026 /**
1027 @private

Callers

nothing calls this directly

Calls 2

configMethod · 0.45
isEmberCLIAddonMethod · 0.45

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…