reusability - How to "pack" an Ember CLI component? -


i'm using ember-cli , made custom component using ember-cli syntax & naming conventions. highly reusable component , i'd know better way put "package" it's easy integrate other projects.

my component use .js file ember.component subclass along .hbs file template , yet couple of .js files necessary ember.view subclasses. right now, every file in respective folder along files rest of project.

how can isolate files related component , package them reuse? in ruby on rails use gems matter, , in jquery used write plugins extending $.fn in single file.

take advantage of ember cli addon system. it's been designed cases one. process should easy if familiar ember cli already. ember cli addon system's been reworked in recent past , it's api changing it's possible older articles or guides on topic became out of sync.

the comprehensive , kept in sync guide on topic kristianmandrup's gist converting libraries ember cli addons.

there addons tutorials section on official ember cli site.


Comments