I believe the main frustration about Sprockets (not really its fault) is
about JS dependencies management.
People often don't want to embed their JS libraries and frameworks in
their source code. Some will prefer doing this due to the way how it
integrates to their flow using JS tools.
Personally I'm using rails-assets.org for managing most of my JS
dependencies.
What I'm saying is that there *is* the need for better dependencies
management of JS code and there are lots of people trying many
alternatives in order to overcome this lack of integrated dependencies
management for the client-side code.
You'll find lots of gems that are only bundling JS assets with almost no
Ruby code on them. This is one of the approaches. The one jquery-rails
uses for instance.
The rails-assets project tries to automatically convert Bower
dependencies to gems in their own repository rather than polluting the
main RubyGems repo with tons of JS wrapper gems. It's not a perfect
solution since there are several cases that it can't deal with, but it
usually works great for many JS libraries and frameworks. Also, it has
to deal with assets paths when converting the bower packages to gems so
that they integrate well with Rails.
While I can see how Sprockets is not a good enough solution, I don't
think that forcing users to convert their libraries in a RequireJS
module is a good thing.
I'd love to see some solid integrated JS dependency management tool to
play well with Rails but I'm not sure if this is gonna happen any time
soon. Even for JS ecosystem it doesn't seem there is any consensus about
what dependency management tool to use (in Ruby RubyGems is the de-facto
standard for sure),
I'll keep using rails-assets.org until a better alternative comes up.
On 09-06-2014 19:36, Ryan Bigg wrote:
Why would the community do that? What are the benefits? Why is
Sprockets bad? Why would we replace it with something that is not up
to its prime? Wouldn't we have to rewrite a whole bunch of Rails code
and documentation?
So many questions.
I'm pretty hard -1 on this.
On Mon, Jun 2, 2014 at 6:36 AM, Frank Tellefsen
<tellefsenfr...@gmail.com <mailto:tellefsenfr...@gmail.com>> wrote:
Hi,
Is there any chance of one day replacing Sprockets with Half Pipe?
* https://github.com/d-i/half-pipe/
* http://www.youtube.com/watch?v=2gaZsFkZ2BQ
It looks like such a great project but seems to be lacking the
resources to bring it to its prime.
Thanks!
Frank
--
You received this message because you are subscribed to the Google
Groups "Ruby on Rails: Core" group.
To unsubscribe from this group and stop receiving emails from it,
send an email to rubyonrails-core+unsubscr...@googlegroups.com
<mailto:rubyonrails-core+unsubscr...@googlegroups.com>.
To post to this group, send email to
rubyonrails-core@googlegroups.com
<mailto:rubyonrails-core@googlegroups.com>.
Visit this group at http://groups.google.com/group/rubyonrails-core.
For more options, visit https://groups.google.com/d/optout.
--
You received this message because you are subscribed to the Google
Groups "Ruby on Rails: Core" group.
To unsubscribe from this group and stop receiving emails from it, send
an email to rubyonrails-core+unsubscr...@googlegroups.com
<mailto:rubyonrails-core+unsubscr...@googlegroups.com>.
To post to this group, send email to rubyonrails-core@googlegroups.com
<mailto:rubyonrails-core@googlegroups.com>.
Visit this group at http://groups.google.com/group/rubyonrails-core.
For more options, visit https://groups.google.com/d/optout.
--
You received this message because you are subscribed to the Google Groups "Ruby on
Rails: Core" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to rubyonrails-core+unsubscr...@googlegroups.com.
To post to this group, send email to rubyonrails-core@googlegroups.com.
Visit this group at http://groups.google.com/group/rubyonrails-core.
For more options, visit https://groups.google.com/d/optout.