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

Method findAddonByName

lib/models/project.js:607–611  ·  view source on GitHub ↗

Find an addon by its name @public @method findAddonByName @param {String} name Addon name as specified in package.json @return {Addon} Addon instance

(name)

Source from the content-addressed store, hash-verified

605 @return {Addon} Addon instance
606 */
607 findAddonByName(name) {
608 this.initializeAddons();
609
610 return this.addons.find((addon) => addon.pkg?.name === name);
611 }
612
613 /**
614 Generate test file contents.

Callers 6

_initOptionsMethod · 0.80
_initVendorFilesMethod · 0.80
project-test.jsFile · 0.80

Calls 1

initializeAddonsMethod · 0.95

Tested by

no test coverage detected