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
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 <[email protected]> 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 <[email protected]> Uploaders: Marcelo Jorge Vieira (metal) <[email protected]>, Steve Kemp <[email protected]> -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
_______________________________________________ Pkg-javascript-devel mailing list [email protected] http://lists.alioth.debian.org/cgi-bin/mailman/listinfo/pkg-javascript-devel
