emblem-rails icon indicating copy to clipboard operation
emblem-rails copied to clipboard

Any word on emblem rails working with ember-1.10.0

Open danielspaniel opened this issue 10 years ago • 17 comments

Wondering if anyone has got an ember rails application running with ember-1.10.0 ??

I have tried just about every combination of things to get this working, but no luck. But if anyone has had success that I would be really thrilled to hear how they did it.

danielspaniel avatar Feb 14 '15 18:02 danielspaniel

Work on this should be finished within the week with the next version of Emblem; progress can be tracked here: https://github.com/bantic/emblem.js/tree/ember-cli

machty avatar Feb 15 '15 00:02 machty

Was a supremely good idea to just compile to handlebars syntax by the way .. and thanks for the update. Look forward to the new release.

danielspaniel avatar Feb 15 '15 10:02 danielspaniel

I noticed that the new version of emblem 0.5.0 is now out, and there is a special add on for ember-cli: https://github.com/201-created/ember-cli-emblem-hbs-printer Is there something like this for ember-rails? or is emblem ready to go now with the current versions of barber-emblem and emblem-rails?

danielspaniel avatar Feb 28 '15 10:02 danielspaniel

@danielspaniel I think this needs resolved first: https://github.com/machty/emblem.js/issues/216

jimmay5469 avatar Mar 02 '15 21:03 jimmay5469

Any update here? Still can't get anything to compile and there are so many moving pieces, I don't know what to track.. Any guidance would be appreciated!

coladarci avatar Mar 29 '15 16:03 coladarci

I'm unlikely to work on this, I don't use ember-rails anymore. PRs welcome, but I strongly reccomend moving to ember-cli as soon as possible.

alexspeller avatar Mar 29 '15 16:03 alexspeller

Thanks for the quick reply - completely agree with the need to switch over - massive code base so unfortunately not a trivial task on our part.. It sounds like the majority of the work needs to be done else where, so maybe those folks are still more into fixing this.

coladarci avatar Mar 29 '15 16:03 coladarci

Yeah .. I feel for you on having to push the whole codebase over the ember-cli mountain, and for being let down by @matchy.  I just spent 2 weeks moving to cli because I see that emblem is finished in sprockets land.   They got emblem working for cli and stopped there.  So, you either convert all your templates to html/hbs ( and stay on ember rails )  or convert the js code to es6 and go to cli.  I found a gem 'ember-cli-rails' that makes the conversion alittle easier at least.  It allows your rails code to hook into the cli process. 

 On Sunday, March 29, 2015 12:42 PM, coladarci <[email protected]> wrote:

Thanks for the quick reply - completely agree with the need to switch over - massive code base so unfortunately not a trivial task on our part.. It sounds like the majority of the work needs to be done else where, so maybe those folks are still more into fixing this.— Reply to this email directly or view it on GitHub.

danielspaniel avatar Mar 29 '15 16:03 danielspaniel

Can't say I'm let down by @machty - the work he and everyone else has done / is doing has made our code base amazing. There are so many exciting things happen in CLI, I can't wait to get it in our stack, just going to be a tad painful.

coladarci avatar Mar 29 '15 17:03 coladarci

Am I right in seeing that ember-cli requires a dependency on npm? I have a gem that I wrote using emblem-rails and I don't want to have everybody that uses my gem have to install npm...

cheerfulstoic avatar Apr 29 '15 23:04 cheerfulstoic

(to clarify a bit, my gem is a Rails engine)

cheerfulstoic avatar Apr 29 '15 23:04 cheerfulstoic

@cheerfulstoic I suggest compiling your code with ember-cli and then publishing the gem with the output of that code

alexspeller avatar Apr 30 '15 04:04 alexspeller

Got it, I'll give that a try. Thanks!

cheerfulstoic avatar Apr 30 '15 08:04 cheerfulstoic

Hey folks, I just released the extremely poorly named ember-emblem-template gem: https://github.com/botandrose/ember-emblem-template. This should be a replacement for emblem-rails, if you want to use Emblem 0.5 on Ember 1.10+ with Rails.

@alexspeller What do you think about something like this becoming emblem-rails 0.3.0?

botandrose avatar May 06 '15 20:05 botandrose

Note that it doesn't require Ember 1.10+, just facilitates upgrading to it.

botandrose avatar May 06 '15 20:05 botandrose

@botandrose thanks, it works perfect to below gems combination:

gem 'ember-rails', '~> 0.19.0'
gem 'ember-source', '~> 1.11.3.1'
gem 'ember-emblem-template'
gem 'emblem-source', '~> 0.4'

Eric-Guo avatar Jul 13 '15 15:07 Eric-Guo

@botandrose -- Thanks! Thought I was losing my mind trying to figure this one out.

Jsericks avatar Aug 29 '15 04:08 Jsericks