[Pkg-javascript-devel] Bug#495178: Bug#495178: (no subject)
Thomas Bechtold
thomasbechtold at jpberlin.de
Wed Jul 31 06:02:12 UTC 2013
On Tue, Jul 30, 2013 at 09:36:53PM +0200, Jonas Smedegaard wrote:
> Quoting Thomas Bechtold (2013-07-30 19:47:10)
> > forgot to describe the attached debdiff. The patch adds a
> > Build-Depends to yui-compressor and generates jquery.min.js. That's
> > it.
>
> I recommend against using a different and inferior compressor than the
> one well tested upstream: uglify.
I updated the attached debdiff and use node-uglify now. The filesize
with uglify is much better (105841 with yui, 95024 with uglify)
Cheers,
Tom
-------------- next part --------------
diff -Nru jquery-1.7.2+dfsg/debian/changelog jquery-1.7.2+dfsg/debian/changelog
--- jquery-1.7.2+dfsg/debian/changelog 2013-05-11 18:35:00.000000000 +0200
+++ jquery-1.7.2+dfsg/debian/changelog 2013-07-31 07:13:55.000000000 +0200
@@ -1,3 +1,11 @@
+jquery (1.7.2+dfsg-2.1) UNRELEASED; urgency=low
+
+ * Non-maintainer upload.
+ * Build-Depends on node-uglify and generate jquery.min.js from jquery.js
+ (Closes: #495178).
+
+ -- Thomas Bechtold <thomasbechtold at jpberlin.de> Tue, 30 Jul 2013 18:54:25 +0200
+
jquery (1.7.2+dfsg-2) unstable; urgency=high
* Added Breaks to movabletype-opensource (Closes: #700527)
diff -Nru jquery-1.7.2+dfsg/debian/control jquery-1.7.2+dfsg/debian/control
--- jquery-1.7.2+dfsg/debian/control 2013-05-11 18:33:50.000000000 +0200
+++ jquery-1.7.2+dfsg/debian/control 2013-07-31 07:13:26.000000000 +0200
@@ -3,7 +3,7 @@
Priority: optional
Maintainer: Debian Javascript Maintainers <pkg-javascript-devel at lists.alioth.debian.org>
Uploaders: Marcelo Jorge Vieira (metal) <metal at debian.org>, Steve Kemp <skx at debian.org>
-Build-Depends: debhelper (>= 7.0.50~)
+Build-Depends: debhelper (>= 7.0.50~), node-uglify
Standards-Version: 3.9.3
Homepage: http://jquery.com/
Vcs-Browser: http://git.debian.org/?p=pkg-javascript/jquery.git
diff -Nru jquery-1.7.2+dfsg/debian/links jquery-1.7.2+dfsg/debian/links
--- jquery-1.7.2+dfsg/debian/links 2013-05-11 18:33:50.000000000 +0200
+++ jquery-1.7.2+dfsg/debian/links 2013-07-30 19:01:48.000000000 +0200
@@ -1,3 +1,2 @@
/usr/share/javascript/jquery/jquery.min.js /usr/share/javascript/jquery/jquery.pack.js
/usr/share/javascript/jquery/jquery.min.js /usr/share/javascript/jquery/jquery.lite.js
-/usr/share/javascript/jquery/jquery.js /usr/share/javascript/jquery/jquery.min.js
diff -Nru jquery-1.7.2+dfsg/debian/rules jquery-1.7.2+dfsg/debian/rules
--- jquery-1.7.2+dfsg/debian/rules 2013-05-11 18:33:50.000000000 +0200
+++ jquery-1.7.2+dfsg/debian/rules 2013-07-31 07:14:20.000000000 +0200
@@ -2,6 +2,11 @@
build %:
dh $@
+override_dh_auto_build:
+ dh_auto_build
+ #generate compressed jquery.min.js
+ uglifyjs dist/jquery.js > dist/jquery.min.js
+
override_dh_auto_clean:
rm -rf dist/
dh_clean
More information about the Pkg-javascript-devel
mailing list