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

Function prepareAddon

tests/helpers/fixturify-project.js:19–29  ·  view source on GitHub ↗
(addon, options)

Source from the content-addressed store, hash-verified

17}
18
19function prepareAddon(addon, options) {
20 addon.pkg.keywords.push('ember-addon');
21 addon.pkg['ember-addon'] = {};
22 addon.files['index.js'] =
23 options.addonEntryPoint ||
24 `module.exports = {
25 name: require("./package").name,
26 allowCachingPerBundle: ${Boolean(options.allowCachingPerBundle)},
27 ${options.additionalContent || ''}
28 };`;
29}
30
31/**
32 * Gets a normalized object with provided defaults. If the 2nd argument is a function,

Callers 3

addAddonMethod · 0.85
addDevAddonMethod · 0.85
addInRepoAddonMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…