(options)
| 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 | }; |
nothing calls this directly
no test coverage detected
searching dependent graphs…