[Pkg-javascript-commits] [uglifyjs] 02/05: Add new package libjs-uglify
Antonio Terceiro
terceiro at moszumanska.debian.org
Sun Aug 7 23:16:47 UTC 2016
This is an automated email from the git hooks/post-receive script.
terceiro pushed a commit to branch master
in repository uglifyjs.
commit 6e0eb0443dc5f49bdd27e3a4e9a98ee9cc3630c0
Author: Antonio Terceiro <terceiro at debian.org>
Date: Sun Aug 7 20:10:34 2016 -0300
Add new package libjs-uglify
---
debian/changelog | 2 ++
debian/control | 34 ++++++++++++++++++++++++++++++++++
debian/control.in | 34 ++++++++++++++++++++++++++++++++++
debian/rules | 9 +++++++++
4 files changed, 79 insertions(+)
diff --git a/debian/changelog b/debian/changelog
index f8570c9..92dc8d4 100644
--- a/debian/changelog
+++ b/debian/changelog
@@ -1,6 +1,8 @@
uglifyjs (2.4.15-6) UNRELEASED; urgency=medium
* Team upload.
+ * Add new package libjs-uglify providing UglifyJS in library form ready for
+ use by web applications and other packages.
-- Antonio Terceiro <terceiro at debian.org> Sun, 07 Aug 2016 13:49:50 -0300
diff --git a/debian/control b/debian/control
index ea6c815..d6df830 100644
--- a/debian/control
+++ b/debian/control
@@ -46,3 +46,37 @@ Description: JavaScript parser, mangler/compressor and beautifier toolkit
(except for the effective generation of the source-map, which is
handled by the source-map module). Compared to alternatives, UglifyJS
is pretty small.
+
+Package: libjs-uglify
+Architecture: all
+Depends: ${cdbs:Depends},
+ ${misc:Depends}
+Recommends: ${cdbs:Recommends}
+Suggests: ${cdbs:Suggests}
+Provides: ${cdbs:Provides}
+Description: UglifyJS in library form
+ UglifyJS is a JavaScript compressor/minifier written in JavaScript. It
+ also contains tools that allow one to automate working with JavaScript
+ code:
+ .
+ * A parser which produces an abstract syntax tree (AST) from
+ JavaScript code.
+ * A code generator which outputs JavaScript code from an AST, also
+ providing the option to get a source map.
+ * A compressor (optimizer) - it uses the transformer API to optimize
+ an AST into a smaller one.
+ * A mangler - reduce names of local variables to (usually)
+ single-letters.
+ * A scope analyzer, which is a tool that augments the AST with
+ information about where variables are defined/referenced etc.
+ * A tree walker - a simple API allowing you to do something on every
+ node in the AST.
+ * A tree transformer - another API intended to transform the tree.
+ .
+ All the above utilities and APIs are defined in ~6500 lines of code
+ (except for the effective generation of the source-map, which is
+ handled by the source-map module). Compared to alternatives, UglifyJS
+ is pretty small.
+ .
+ This package provides UglifyJS in library form for use by other Javascript
+ packages and web applications.
diff --git a/debian/control.in b/debian/control.in
index fa5a4b0..5dd5143 100644
--- a/debian/control.in
+++ b/debian/control.in
@@ -40,3 +40,37 @@ Description: JavaScript parser, mangler/compressor and beautifier toolkit
(except for the effective generation of the source-map, which is
handled by the source-map module). Compared to alternatives, UglifyJS
is pretty small.
+
+Package: libjs-uglify
+Architecture: all
+Depends: ${cdbs:Depends},
+ ${misc:Depends}
+Recommends: ${cdbs:Recommends}
+Suggests: ${cdbs:Suggests}
+Provides: ${cdbs:Provides}
+Description: UglifyJS in library form
+ UglifyJS is a JavaScript compressor/minifier written in JavaScript. It
+ also contains tools that allow one to automate working with JavaScript
+ code:
+ .
+ * A parser which produces an abstract syntax tree (AST) from
+ JavaScript code.
+ * A code generator which outputs JavaScript code from an AST, also
+ providing the option to get a source map.
+ * A compressor (optimizer) - it uses the transformer API to optimize
+ an AST into a smaller one.
+ * A mangler - reduce names of local variables to (usually)
+ single-letters.
+ * A scope analyzer, which is a tool that augments the AST with
+ information about where variables are defined/referenced etc.
+ * A tree walker - a simple API allowing you to do something on every
+ node in the AST.
+ * A tree transformer - another API intended to transform the tree.
+ .
+ All the above utilities and APIs are defined in ~6500 lines of code
+ (except for the effective generation of the source-map, which is
+ handled by the source-map module). Compared to alternatives, UglifyJS
+ is pretty small.
+ .
+ This package provides UglifyJS in library form for use by other Javascript
+ packages and web applications.
diff --git a/debian/rules b/debian/rules
index 88535ca..1d5fa53 100755
--- a/debian/rules
+++ b/debian/rules
@@ -23,6 +23,9 @@ include /usr/share/cdbs/1/rules/debhelper.mk
pkg = node-uglify
libdir = /usr/lib/nodejs/uglify-js
+jspkg = libjs-uglify
+jslibdir = /usr/share/javascript/uglifyjs
+
DEB_UPSTREAM_URL = https://github.com/mishoo/UglifyJS2/archive
DEB_UPSTREAM_TARBALL_BASENAME = v$(DEB_UPSTREAM_TARBALL_VERSION)
@@ -45,12 +48,18 @@ debian/stamp-build:
,\
NODE_PATH=lib nodejs test/run-tests.js)
touch $@
+ nodejs bin/uglifyjs \
+ --self \
+ --comments /Copyright/ \
+ --output debian/uglify.js
common-post-build-indep::
rm -f lib/uglify-js
clean::
rm -f lib/index.js lib/package.json
rm -f debian/stamp-build debian/uglifyjs.1
+ rm -f debian/uglifyjs.js
DEB_DH_INSTALL_ARGS_$(pkg) = package.json bin lib tools $(libdir)
+DEB_DH_INSTALL_ARGS_$(jspkg) = debian/uglify.js $(jslibdir)
DEB_DH_LINK_$(pkg) = $(libdir)/bin/uglifyjs /usr/bin/uglifyjs
DEB_INSTALL_DOCS_ALL += README.md
--
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-javascript/uglifyjs.git
More information about the Pkg-javascript-commits
mailing list