kurko / ember-sync

MIT License
282 stars 28 forks source link

How does kurko hookup ember-sync to a test/development app #19

Closed cheneveld closed 10 years ago

cheneveld commented 10 years ago

I am trying to hook up a forked local version of ember-sync to a sample app.

I have a ember-sync submodule under vendor and a brocfile that contains an import of the ember-sync's dist js file.

Here is the project -> https://github.com/Genkilabs/ember-cli-example/tree/develop

Any idea how we can get this hooked up to dev on locally?

jakecraige commented 10 years ago

Looks like you're missing https://github.com/kurko/ember-sync/blob/master/app-addon/initializers/ember-sync.js

If you add you're forked version with npm, that'll be included automatically

cheneveld commented 10 years ago

Adding the local version with npm works but I am trying to do this in a way in which I can modify ember-sync js in real time without having to re install.

Does this make sense?

I am used to working on gems this way and would like something similar.

kurko commented 10 years ago

@cheneveld I did it before Ember CLI. Once it was working, I moved to ES6/Ember CLI/Broccoli and never coded in it directly from my app workspace.

But I think you could try it. Can you try loading it with Bower instead of NPM (I believe the cache used by the later is way harder to overcome)? Then you load it in the Brocfile.js. I'm not sure if it's going to cache it or not. I believe there should be an easy way to live reload it, even if it's inside of the vendor/bower_components. Perhaps @joliss can help us with that.

Let know how it goes.