ember.js - Custom Ember CLI addon not installing properly -
i've taken stab @ building ember cli addon share world. purpose of addon firebase authenticator ember simple auth. i've gotten code working, after packaging addon according ember cli documentation few tutorials, i'm running issues.
first, when install addon directly repo or npm, following output:
jamesdixon$ ember install ember-cli-simple-auth-firebase version: 0.2.3 installed packages tooling via npm. installing installing browser packages via bower... cached git://github.com/simplabs/ember-simple-auth- component.git#0.7.3 cached git://github.com/firebase/firebase-bower.git#2.2.3 installed browser packages via bower. installing "ember generate" command requires entity name specified. more details, use "ember help".
after install, when looking @ application directory, see addon has been installed under npm_modules
, proper bower packages have been installed under bower_components
directory. unfortunately, none of code under app
directory of addon has been merged app
directory of project supposed happen. i've been through ember cli documentation number of times in addition reading through few tutorials, no luck.
the full source code can found here: https://github.com/jamesdixon/ember-cli-simple-auth-firebase
note i'm running latest version of ember , ember cli: 0.11.1 , 0.2.3, respectively.
if there other details need, please let me know.
thanks in advance!
best, james
a few things:
the error you're seeing isn't stopping things running - it's bug that's been reported. ignore now
the code in app directory isn't phyiscally merged users app directory - it's in background. means when 'merged users app directory' 'make things available if in users app directory'.
so example adding following app.js
file work:
import fbauth './authenticators/firebase';
you had few things missing/needing changes in
index.js
file (a missing.
, needed useamd
version ofsimple-auth
) ,you need manually include
simple-auth
initializer - there no other way run - since bower package purpose of shimming (if i've used word correctly) - don't havesimple-auth
ember addon there no automatic initializer loading - have load it.
i've forked repo , got working on machine - addon , new ember application scratch loads it. this commmit changes made.