Ember Addon depending on another ember addon


#1

Hi,

I’m trying to create an ember addon for our application. Would it be possible to use another ember addon within my addon and have the ember app use it?

I"m trying to look into using ember json api resource addon on the addon that I’m developing.


#2

You have to specify the addon you need for your addon in your package.json under "dependencies".


#3

So using ember install ember-jsonapi-resources, would be enough? I don’t have to specify anything under the “ember-addon” in the package.json? I’ve read that there’s a before and after option under it.


#4

No it is not. You have to specify it in your package.json

For example ember-cli-pagination dependsonember-cli-version-checker` See:

If you install ember-cli-pagination ember-cli-version-checker will also be installed this way.


#5

Okay! Got it! Thank you for all your help :smile: