ember.js - upgrade ember addon on ember-cli 0.2.2 -


i started developing addon in on ember-cli 0.2.1 , when generated files using generator, placed files in ~/app/ , not ~/addon.

what need put files in right place?

the project contains services, mixins , utils tests covering them.

i think default behavior reason: generators meant used in context of application. should consider addon/ folder being sort of lib directory, can use file/folder structure fits best addon. app/ folder, however, meant contain re-exported modules, they'll become available on host app's container automatically.

browse around few well-written addons find out how people this, example ember-radio-button

notice abstact class radio-button-base useless itself, and, therefore, unnecessary reside on container, addon user want import , extend own purposes, can writing import radiobuttonbase 'ember-radio-button/components/radio-button-base';


Comments

Popular posts from this blog

cakephp - simple blog with croogo -

How to group boxplot outliers in gnuplot -

bash - Performing variable substitution in a string -