About bootstrap-sass and bundled javascript

Axilleas Pipinellis axilleaspi at ymail.com
Mon Jul 15 11:13:22 UTC 2013


I have submitted a review request of bootstrap-sass [0] and after a
discussion with Troy, we kinda agreed to ship only what is included
in vendor/assets/stylesheets and leave out the javascripts folder.

Whereas this might seem like a solution by the standards of Fedora
guidelines [1], I am curious whether this package will work after all.
(Please take a moment to read our discussion. I thought that it would
be better to further discuss it here for future reference.)

If we don't ship the javascript folder, then a rails developer wouldn't
have to also install Twitter bootstrap separately for this to work?

There is also a gem named twitter-bootstrap-rails [2] that does the same
job but ships the native less css. So, I get it that a rails app can
have either one of these gems, right?
If that's the case, I think we must ship the javascripts of each gem,
even if this seems like bundling.

On a side note, I have been following the packaging ML and the
discussion about the guideline drafts on web assets and javascript [3].
In that case, it would make sense to split the javascripts and place
them in `_assetdir` as stated by [4]. I think bootstrap-sass case falls
in second bullet.

gems that use bundled javascript code should ship it until guidelines[3]
become official.

[0] https://bugzilla.redhat.com/show_bug.cgi?id=982679
[2] https://github.com/seyhunak/twitter-bootstrap-rails

FAS : axilleas
GPG : 0xABF99BE5
Blog: http://axilleas.me

More information about the ruby-sig mailing list