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

Function addAddonToProject

lib/models/blueprint.js:1200–1206  ·  view source on GitHub ↗

Used to add an addon to the project's `package.json` and run it's `defaultBlueprint` if it provides one. Generally, this would be done from the `afterInstall` hook, to ensure that a package that is required by a given blueprint is available. @method addAddonToProject @param

(options)

Source from the content-addressed store, hash-verified

1198 @return {Promise}
1199 */
1200 addAddonToProject(options) {
1201 return this.addAddonsToProject({
1202 packages: [options],
1203 extraArgs: options.extraArgs || {},
1204 blueprintOptions: options.blueprintOptions || {},
1205 });
1206 },
1207
1208 /**
1209 Used to add multiple addons to the project's `package.json` and run their

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…