debian/0000755000000000000000000000000012061205424007162 5ustar debian/node-uglify.install0000644000000000000000000000016012061203746012776 0ustar bin/uglifyjs /usr/bin/ lib/* /usr/lib/nodejs/uglify-js/ uglify-js.js /usr/lib/nodejs/uglify-js/ debian/patches/0000755000000000000000000000000012061203746010616 5ustar debian/patches/fix_lib_path.patch0000644000000000000000000000172112061203746014270 0ustar Description: Adapt paths to system-wide install Forwarded: not-needed Author: Marcelo Jorge Vieira Author: Jonas Smedegaard Last-Update: 2012-12-06 --- a/uglify-js.js +++ b/uglify-js.js @@ -11,8 +11,8 @@ return final_code; }; -uglify.parser = require("./lib/parse-js"); -uglify.uglify = require("./lib/process"); -uglify.consolidator = require("./lib/consolidator"); +uglify.parser = require("./parse-js"); +uglify.uglify = require("./process"); +uglify.consolidator = require("./consolidator"); module.exports = uglify --- a/bin/uglifyjs +++ b/bin/uglifyjs @@ -3,7 +3,7 @@ global.sys = require(/^v0\.[012]/.test(process.version) ? "sys" : "util"); var fs = require("fs"), path = require("path"); -var uglify = require("../uglify-js"), // symlink ~/.node_libraries/uglify-js.js to ../uglify-js.js +var uglify = require("uglify-js"), consolidator = uglify.consolidator, jsp = uglify.parser, pro = uglify.uglify; debian/patches/node_conflict.patch0000644000000000000000000000027712061203746014453 0ustar --- a/bin/uglifyjs +++ b/bin/uglifyjs @@ -1,4 +1,4 @@ -#!/usr/bin/env node +#!/usr/bin/env nodejs // -*- js -*- global.sys = require(/^v0\.[012]/.test(process.version) ? "sys" : "util"); debian/patches/series0000644000000000000000000000004712061203746012034 0ustar fix_lib_path.patch node_conflict.patch debian/node-uglify.manpages0000644000000000000000000000002212061203746013120 0ustar debian/uglifyjs.1 debian/control0000644000000000000000000000136512061204564010576 0ustar Source: uglifyjs Section: web Priority: optional Maintainer: Debian Javascript Maintainers Uploaders: Marcelo Jorge Vieira (metal) , Jonas Smedegaard Build-Depends: cdbs, devscripts, debhelper, dh-buildinfo Standards-Version: 3.9.3 Homepage: https://github.com/mishoo/UglifyJS Vcs-Browser: http://anonscm.debian.org/gitweb/?p=pkg-javascript/uglifyjs.git Vcs-Git: git://git.debian.org/git/pkg-javascript/uglifyjs.git Package: node-uglify Architecture: all Depends: ${misc:Depends}, nodejs (>= 0.6.19~dfsg1-3) Provides: uglifyjs Description: JavaScript parser/compressor/beautifier This package implements a general-purpose JavaScript parser/compressor/beautifier toolkit. debian/source/0000755000000000000000000000000012061203746010467 5ustar debian/source/format0000644000000000000000000000001412061203746011675 0ustar 3.0 (quilt) debian/changelog0000644000000000000000000001211212061205424011031 0ustar uglifyjs (1.3.4-1) unstable; urgency=low [ upstream ] * New upstream release. [ Jonas Smedegaard ] * Fix adapt path in binary too in fix_lib_path patch. * Consistently adjust only actually used files in node_conflict patch, as already partly done (accidentally?) in 1.3.3-1. * Refresh patches with shortening quilt options. * Bump dephelper compatibility level to 8. * Update package relations: + Relax to build-depend unversioned on debhelper: Needed version satisfied in stable, and oldstable no longer supported. + Build-depend on dh-buildinfo, to improve ability to debug packaging independent from central Debian resources. + Build-depend on devscripts, to enable CDBS copyright checking. * Use anonscm.debian.org for Vcs-Browser field. * Improve slightly unsetting executable bit: use symbolic format, and improve comment. * Update copyright file: + Use recommended License shortname BSD-2-clause. + Rewrap License paragraph at 72 chars with minimal indentation. + Add Upstream-Contact and Source fields. + Fix add additional copyright holder (same license), thanks to CDBS copyright check. * Drop obsolete binary package libnode-uglify (and stop providing/replacing as well). * Update watch file to directly use github.com URL (not githubredir.debian.net). * Switch packaging from short-form dh to CDBS. -- Jonas Smedegaard Sun, 09 Dec 2012 22:59:07 +0100 uglifyjs (1.3.3-1) experimental; urgency=low * Imported Upstream version 1.3.3 -- Marcelo Jorge Vieira (metal) Sat, 29 Sep 2012 15:06:47 -0300 uglifyjs (1.2.6-3) unstable; urgency=low * Uglify should depend on new nodejs package -- Marcelo Jorge Vieira (metal) Wed, 01 Aug 2012 10:16:03 -0300 uglifyjs (1.2.6-2) unstable; urgency=low * Node conflict; For more info, see: http://lists.debian.org/debian-devel-announce/2012/07/msg00002.html -- Marcelo Jorge Vieira (metal) Tue, 31 Jul 2012 18:31:20 -0300 uglifyjs (1.2.6-1) unstable; urgency=low * New Upstream Release * Improving manpage + Added new entry: -c or --consolidate-primitive-values * Updated Standards-Version to 3.9.3 + Machine-readable debian/copyright version 1.0 -- Marcelo Jorge Vieira (metal) Sun, 25 Mar 2012 19:32:00 -0300 uglifyjs (1.2.5-1) unstable; urgency=low * New Upstream Release -- Marcelo Jorge Vieira (metal) Wed, 29 Feb 2012 14:21:47 -0300 uglifyjs (1.2.3-1) unstable; urgency=low * New Upstream Release * Improving manpage + Added new entry: -nmf or --no-mangle-functions -- Marcelo Jorge Vieira (metal) Sat, 24 Dec 2011 17:02:57 -0200 uglifyjs (1.1.1-2) unstable; urgency=high * Fixed old references to libnode-uglify (Closes: #649525) -- Marcelo Jorge Vieira (metal) Mon, 21 Nov 2011 20:34:19 -0200 uglifyjs (1.1.1-1) unstable; urgency=low * New Upstream Release. * Renamed the binary package from 'libnode-uglify' to 'node-uglify' to follow the Debian JavaScript Policy. -- Marcelo Jorge Vieira (metal) Mon, 21 Nov 2011 01:23:17 -0200 uglifyjs (1.1-1) unstable; urgency=low * New Upstream Release * Improving manpage + Added new entry: --lift-vars -- Marcelo Jorge Vieira (metal) Tue, 27 Sep 2011 12:53:55 -0300 uglifyjs (1.0.6-1) unstable; urgency=low * New Upstream Release * Improving manpage + Added new entry: --inline-script -- Marcelo Jorge Vieira (metal) Tue, 19 Jul 2011 18:05:58 -0300 uglifyjs (1.0.4-1) unstable; urgency=low * New upstream release. * Add myself as uploader. * Fix support "require 'uglify-js'": + Adjust install paths. + Add symlinks. + Simplify patch. * Refresh patch w/ shortening options --no-index --no-timestamps -pab. * Add DEP3 header to patch. * Ease building with git-buildpackage: Git-ignore quilt .pc dir. * Bump policy compliance to standards-version 3.9.2. -- Jonas Smedegaard Fri, 08 Jul 2011 23:26:55 +0200 uglifyjs (1.0.3-1) unstable; urgency=low * New Upstream Release -- Marcelo Jorge Vieira (metal) Wed, 29 Jun 2011 20:04:08 -0300 uglifyjs (1.0.2-1) UNRELEASED; urgency=low * New Upstream Release * Fixed description-synopsis-starts-with-article * Updating fix_lib_path.patch -- Marcelo Jorge Vieira (metal) Sun, 29 May 2011 22:05:00 -0300 uglifyjs (1.0.1-1) unstable; urgency=low * New Upstream Release -- Marcelo Jorge Vieira (metal) Sun, 24 Apr 2011 17:22:43 -0300 uglifyjs (1.0-1) unstable; urgency=low * New Upstream Release * Improving manpage + Added new entries (--ascii and --reserved-names) + Fixed options params + Added description for all options * Updating fix_lib_path.patch -- Marcelo Jorge Vieira (metal) Wed, 16 Mar 2011 11:46:36 -0300 uglifyjs (0.90-1) unstable; urgency=low * Initial Release (Closes: #616700). -- Marcelo Jorge Vieira (metal) Sat, 05 Mar 2011 15:41:54 -0300 debian/README.source0000644000000000000000000000034512061203746011350 0ustar CDBS+git-buildpackage --------------------- This source package uses CDBS and git-buildpackage. More info here: http://wiki.debian.org/CDBS+git-buildpackage -- Jonas Smedegaard Wed, 14 Nov 2012 18:34:55 +0100 debian/node-uglify.docs0000644000000000000000000000004412061203746012261 0ustar docstyle.css README.html README.org debian/compat0000644000000000000000000000000212061203746010365 0ustar 8 debian/watch0000644000000000000000000000012212061203746010213 0ustar version=3 https://github.com/mishoo/uglifyjs/tags .*/archive/v?(\d[\d\.]+).tar.gz debian/copyright_hints0000644000000000000000000001236512061204561012332 0ustar Format: http://www.debian.org/doc/packaging-manuals/copyright-format/1.0/ Upstream-Name: FIXME Upstream-Contact: FIXME Source: FIXME Disclaimer: Autogenerated by CDBS Files: debian/README.source debian/compat debian/control debian/control.in debian/node-uglify.docs debian/node-uglify.install debian/node-uglify.links debian/node-uglify.manpages debian/patches/fix_lib_path.patch debian/patches/node_conflict.patch debian/patches/series debian/rules debian/source/format debian/watch docstyle.css lib/squeeze-more.js package.json test/beautify.js test/testconsolidator.js test/unit/compress/expected/1e21.js test/unit/compress/expected/array1.js test/unit/compress/expected/array2.js test/unit/compress/expected/array3.js test/unit/compress/expected/array4.js test/unit/compress/expected/assignment.js test/unit/compress/expected/concatstring.js test/unit/compress/expected/const.js test/unit/compress/expected/div-with-regexp.js test/unit/compress/expected/empty-blocks.js test/unit/compress/expected/forstatement.js test/unit/compress/expected/if-not.js test/unit/compress/expected/if.js test/unit/compress/expected/ifreturn.js test/unit/compress/expected/ifreturn2.js test/unit/compress/expected/infinite.js test/unit/compress/expected/issue10.js test/unit/compress/expected/issue11.js test/unit/compress/expected/issue13.js test/unit/compress/expected/issue14.js test/unit/compress/expected/issue16.js test/unit/compress/expected/issue17.js test/unit/compress/expected/issue20.js test/unit/compress/expected/issue21.js test/unit/compress/expected/issue25.js test/unit/compress/expected/issue27.js test/unit/compress/expected/issue278.js test/unit/compress/expected/issue28.js test/unit/compress/expected/issue29.js test/unit/compress/expected/issue30.js test/unit/compress/expected/issue34.js test/unit/compress/expected/issue349.js test/unit/compress/expected/issue353.js test/unit/compress/expected/issue372.js test/unit/compress/expected/issue4.js test/unit/compress/expected/issue48.js test/unit/compress/expected/issue50.js test/unit/compress/expected/issue53.js test/unit/compress/expected/issue54.1.js test/unit/compress/expected/issue68.js test/unit/compress/expected/issue69.js test/unit/compress/expected/issue9.js test/unit/compress/expected/issues222_324.js test/unit/compress/expected/mangle.js test/unit/compress/expected/null_string.js test/unit/compress/expected/strict-equals.js test/unit/compress/expected/var.js test/unit/compress/expected/whitespace.js test/unit/compress/expected/with.js test/unit/compress/test/1e21.js test/unit/compress/test/array1.js test/unit/compress/test/array2.js test/unit/compress/test/array3.js test/unit/compress/test/array4.js test/unit/compress/test/assignment.js test/unit/compress/test/concatstring.js test/unit/compress/test/const.js test/unit/compress/test/div-with-regexp.js test/unit/compress/test/empty-blocks.js test/unit/compress/test/forstatement.js test/unit/compress/test/if-not.js test/unit/compress/test/if.js test/unit/compress/test/ifreturn.js test/unit/compress/test/ifreturn2.js test/unit/compress/test/infinite.js test/unit/compress/test/issue10.js test/unit/compress/test/issue11.js test/unit/compress/test/issue13.js test/unit/compress/test/issue14.js test/unit/compress/test/issue16.js test/unit/compress/test/issue17.js test/unit/compress/test/issue20.js test/unit/compress/test/issue21.js test/unit/compress/test/issue25.js test/unit/compress/test/issue27.js test/unit/compress/test/issue278.js test/unit/compress/test/issue28.js test/unit/compress/test/issue29.js test/unit/compress/test/issue30.js test/unit/compress/test/issue34.js test/unit/compress/test/issue349.js test/unit/compress/test/issue353.js test/unit/compress/test/issue372.js test/unit/compress/test/issue4.js test/unit/compress/test/issue48.js test/unit/compress/test/issue50.js test/unit/compress/test/issue53.js test/unit/compress/test/issue54.1.js test/unit/compress/test/issue68.js test/unit/compress/test/issue69.js test/unit/compress/test/issue9.js test/unit/compress/test/mangle.js test/unit/compress/test/null_string.js test/unit/compress/test/strict-equals.js test/unit/compress/test/var.js test/unit/compress/test/whitespace.js test/unit/compress/test/with.js test/unit/scripts.js tmp/hoist.js tmp/instrument.js tmp/test.js uglify-js.js Copyright: *No copyright* License: UNKNOWN FIXME Files: README.org lib/parse-js.js lib/process.js Copyright: 2010, Mihai Bazon HOLDER BE HOLDER “AS IS” AND ANY License: BSD-2-clause FIXME Files: lib/consolidator.js Copyright: 2012, Robert Gust-Bardon HOLDER "AS IS" AND ANY HOLDER BE License: BSD-2-clause FIXME Files: debian/uglifyjs.1 Copyright: 2011, Marcelo Jorge Vieira HOLDER BE HOLDER “AS IS” AND ANY License: BSD-2-clause FIXME Files: README.html Copyright: 2010, Mihai Bazon <mihai.bazon@gmail.com> HOLDER BE HOLDER “AS IS” AND ANY License: BSD-2-clause FIXME Files: bin/uglifyjs Copyright: = false; true License: UNKNOWN FIXME Files: test/unit/compress/test/issues222_324.js Copyright: Mc (third to last) License: UNKNOWN FIXME Files: test/testparser.js Copyright: x;", "2 if statement" License: UNKNOWN FIXME debian/copyright0000644000000000000000000000341312061203746011123 0ustar Format: http://www.debian.org/doc/packaging-manuals/copyright-format/1.0/ Upstream-Name: UglifyJS Upstream-Contact: https://github.com/mishoo/UglifyJS/issues http://groups.google.com/group/uglifyjs Source: https://github.com/mishoo/UglifyJS Files: * Copyright: 2010 Mihai Bazon License: BSD-2-clause Files: lib/consolidator.js Copyright: 2012, Robert Gust-Bardon License: BSD-2-clause Files: debian/* Copyright: 2011 Marcelo Jorge Vieira License: BSD-2-clause License: BSD-2-clause Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met: . * Redistributions of source code must retain the above copyright notice, this list of conditions and the following disclaimer. . * Redistributions in binary form must reproduce the above copyright notice, this list of conditions and the following disclaimer in the documentation and/or other materials provided with the distribution. . THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDER “AS IS” AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. debian/uglifyjs.10000644000000000000000000001420412061203746011106 0ustar .\" Copyright (c) 2011 Marcelo Jorge Vieira '\" '\" Redistribution and use in source and binary forms, with or without '\" modification, are permitted provided that the following conditions '\" are met: '\" '\" * Redistributions of source code must retain the above '\" copyright notice, this list of conditions and the following '\" disclaimer. '\" '\" * Redistributions in binary form must reproduce the above '\" copyright notice, this list of conditions and the following '\" disclaimer in the documentation and/or other materials '\" provided with the distribution. '\" '\" THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDER “AS IS” AND ANY '\" EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE '\" IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR '\" PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER BE '\" LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, '\" OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, '\" PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR '\" PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY '\" THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR '\" TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF '\" THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF '\" SUCH DAMAGE. .TH UGLIFYJS 1 .SH NAME uglifyjs \- a JavaScript parser/compressor/beautifier .SH SYNOPSIS .B uglifyjs [options] [input_file] .SH DESCRIPTION This package implements a general-purpose JavaScript parser/compressor/beautifier toolkit. .SH OPTIONS .TP .B \-b, \-\-beautify .br Output indented code; when passed, additional options control the beautifier. .br .TP .B \-i \fInumber-of-spaces\fR, \-\-indent \fInumber-of-spaces\fR .br Indentation level. .br .TP .B \-q, \-\-quote\-keys .br Quote keys in literal objects (by default, only keys that cannot be identifier names will be quotes). .br .TP .B \-mt, \-\-mangle\-toplevel .br Mangle names in the toplevel scope too (by default we don’t do this). .br .TP .B \-nm, \-\-no\-mangle .br Don’t mangle variable names. .br .TP .B \-nmf, \-\-no\-mangle-functions .br In case you want to mangle variable names, but not touch function names. .br .TP .B \-ns, \-\-no\-squeeze .br Don’t call ast_squeeze() (which does various optimizations that result in smaller, less readable code). .br .TP .B \-\-no\-seqs .br When ast_squeeze() is called (thus, unless you pass \-\-no-squeeze) it will reduce consecutive statements in blocks into a sequence. For example, "a = 10; b = 20; foo();" will be written as "a=10,b=20,foo();". In various occasions, this allows us to discard the block brackets (since the block becomes a single statement). This is ON by default because it seems safe and saves a few hundred bytes on some libs that I tested it on, but pass \-\-no-seqs to disable it. .br .TP .B \-\-no\-dead\-code .br By default, UglifyJS will remove code that is obviously unreachable (code that follows a return, throw, break or continue statement and is not a function/variable declaration). Pass this option to disable this optimization. .br .TP .B \-nc, \-\-no\-copyright .br By default, uglifyjs will keep the initial comment tokens in the generated code (assumed to be copyright information etc.). If you pass this it will discard it. .br .TP .B \-o \fIfilename\fR, \-\-output \fIfilename\fR .br Put the result in filename. If this isn’t given, the result goes to standard output (or see next one). .br .TP .B \-\-overwrite .br If the code is read from a file (not from STDIN) and you pass --overwrite then the output will be written in the same file. .br .TP .B \-v, \-\-verbose .br Output some notes on STDERR (for now just how long each operation takes). .br .TP .B \-\-ast .br Pass this if you want to get the Abstract Syntax Tree instead of JavaScript as output. Useful for debugging or learning more about the internals. .br .TP .B \-\-unsafe .br Enable other additional optimizations that are known to be unsafe in some contrived situations, but could still be generally useful. For now only this: foo.toString() ==> foo+"" .br .TP .B \-\-max\-line\-len \fIvalue\fR .br (default 32K characters) — Add a newline after around 32K characters. I’ve seen both FF and Chrome croak when all the code was on a single line of around 670K. Pass \-\-max-line-len 0 to disable this safety feature. .br .TP .B \-\-reserved\-names \fIname1\fR,\fI$name2\fR,\fIname3\fR .br Some libraries rely on certain names to be used, as pointed out in issue #92 and #81, so this option allow you to exclude such names from the mangler. For example, to keep names require and $super intact you’d specify \-\-reserved-names "require,$super" .br .TP .B \-c, \-\-consolidate\-primitive\-values .br Consolidates null, Boolean, and String values. Known as aliasing in the Closure Compiler. Worsens the data compression ratio of gzip. .br .TP .B \-\-ascii .br Pass this argument to encode non-ASCII characters as \uXXXX sequences. By default UglifyJS won’t bother to do it and will output Unicode characters instead. (the output is always encoded in UTF8, but if you pass this option you’ll only get ASCII). .br .TP .B \-\-inline-script .br when you want to include the output literally in an HTML Uploaders: Marcelo Jorge Vieira (metal) , Jonas Smedegaard Build-Depends: @cdbs@ Standards-Version: 3.9.3 Homepage: https://github.com/mishoo/UglifyJS Vcs-Browser: http://anonscm.debian.org/gitweb/?p=pkg-javascript/uglifyjs.git Vcs-Git: git://git.debian.org/git/pkg-javascript/uglifyjs.git Package: node-uglify Architecture: all Depends: ${misc:Depends}, nodejs (>= 0.6.19~dfsg1-3) Provides: uglifyjs Description: JavaScript parser/compressor/beautifier This package implements a general-purpose JavaScript parser/compressor/beautifier toolkit. debian/node-uglify.links0000644000000000000000000000011012061203746012443 0ustar usr/lib/nodejs/uglify-js/uglify-js.js usr/lib/nodejs/uglify-js/index.js