Ember addon naming convention


#1

Is it necessary to have a hyphen ("-") in our custom created ember addon ? (i.e. is “myAddon” fine OR do we need to name it as “my-addon”)

I do know that custom components need to have a hphen to avoid future name clashes while using them as tags in templates (e.g. )


#2

No. Technically, any valid name for a new npm package would be acceptable. If you want to know if a name is valid, see https://github.com/npm/validate-npm-package-name

myAddon is not valid because it has a capital letter. However, myaddon would be valid if it were not yet been taken by another npm package.

It is convention to split words with a hyphen.


#3

So in effect an addon is a npm package itself and would follow the same naming and other rules ?


#4

yes, addons are npm packages