Discussion:
Where to pick latest bootstrap.js java script library from
Andreas Tille
2014-08-05 07:16:02 UTC
Permalink
Hi,

I want to replace a minified bootstrap.min.js (from python-mne package)
saying:

/*!
* Bootstrap v3.0.3 (http://getbootstrap.com)
* Copyright 2013 Twitter, Inc.
* Licensed under http://www.apache.org/licenses/LICENSE-2.0
*/

I thought that

libjs-twitter-bootstrap: /usr/share/twitter-bootstrap/files/js/bootstrap.js

would be the right file to link to after removing the minified JS but
I noticed that the header of this file is:

/* ===================================================
* bootstrap-transition.js v2.0.2
* http://twitter.github.com/bootstrap/javascript.html#transitions
* ===================================================


which looks a bit aged to me. Seeking for other replacements via

apt-file search bootstrap.js

I can find a lot and picking a pure random one I get:

debci: /usr/share/debci/public/bootstrap/js/bootstrap.js

/**
* bootstrap.js v3.0.0 by @fat and @mdo
* Copyright 2013 Twitter Inc.
* http://www.apache.org/licenses/LICENSE-2.0
*/


which sounds more recent and potentially better fitting than
libjs-twitter-bootstrap. However, simply depending from a random
package which in the future might or might not ship the said JS
library does not sound reasonable to me.

Any hint how to solve this?

Kind regards

Andreas.
--
http://fam-tille.de
Vincent Cheng
2014-08-05 07:38:30 UTC
Permalink
Post by Andreas Tille
Hi,
I want to replace a minified bootstrap.min.js (from python-mne package)
[...]
Post by Andreas Tille
which sounds more recent and potentially better fitting than
libjs-twitter-bootstrap. However, simply depending from a random
package which in the future might or might not ship the said JS
library does not sound reasonable to me.
Any hint how to solve this?
As with jquery, you really just have 2 options:

- Don't ship embedded copies of bootstrap in your package (and strip
it out of the source tarball as well), potentially breaking stuff in
your package.
- Ship an embedded copy of bootstrap + corresponding unminified
version in your package.

A better long-term solution (credit goes to paultag for suggesting it
first) would be for someone to create a monster js-common package
containing every single released version of popular JS libs such as
jquery and bootstrap, so that we don't have hundreds of copies of
jquery, bootstrap, et al. littering the archive...

Regards,
Vincent
Andrey Rahmatullin
2014-08-05 11:31:00 UTC
Permalink
Post by Andreas Tille
I thought that
libjs-twitter-bootstrap: /usr/share/twitter-bootstrap/files/js/bootstrap.js
would be the right file to link to after removing the minified JS but
/* ===================================================
* bootstrap-transition.js v2.0.2
* http://twitter.github.com/bootstrap/javascript.html#transitions
* ===================================================
Maintainer: Debian QA Group <***@qa.debian.org>
--
WBR, wRAR
Loading...