Subject: Re: [bug#49242] Update UglifyJs (& dependencies) and update dependents

From: Efraim Flashner <[email-masked]>
Date: Mon, 19 Jul 2021 15:34:45 +0300

I combined patches 2 and 3 and moved node-uglify-js to uglify.scm. I
also registered uglify.scm in gnu/local.mk.

On Tue, Jul 13, 2021 at 05:36:54AM +0000, Charles wrote:
> From 37b46e3f25c9a27cdc6bb8f78c0ec29c7759a7a0 Mon Sep 17 00:00:00 2001
> From: Charles <[email-masked]>
> Date: Mon, 12 Jul 2021 22:27:35 -0500
> Subject: [PATCH 2/4] gnu: Add node-uglify-js.
> 
> * gnu/packages/node-xyz.scm (node-uglify-js): Add new variable.
> ---
>  gnu/packages/node-xyz.scm | 27 +++++++++++++++++++++++++++
>  1 file changed, 27 insertions(+)
> 
> diff --git a/gnu/packages/node-xyz.scm b/gnu/packages/node-xyz.scm
> index dc8ae8bb94..9e2f5a5e98 100644
> --- a/gnu/packages/node-xyz.scm
> +++ b/gnu/packages/node-xyz.scm
> @@ -360,3 +360,30 @@ if desired.")
>        (description "Acornjs is a Javascrip parser with many options and an
>  architecture supporting plugins.")
>        (license license:expat))))
> +
> +(define-public node-uglify-js
> +  (let ((commit "b23b333d9d6e97bece90fb7bc37a44870a7fecf7")
> +        (revision "1"))
> +    (package
> +      (name "node-uglify-js")
> +      (version (git-version "3.13.9" revision commit))
> +      (source
> +       (origin
> +         (method git-fetch)
> +         (uri (git-reference
> +               (url "https://github.com/mishoo/UglifyJS")
> +               (commit commit)))
> +         (git-file-name name version)
> +         (sha256
> +          (base32 "06yha17f9qy79ci8h3sgvg8x9l348ap95c4a3y9ln6c5syzyl6rd"))))
> +      (build-system node-build-system)
> +      (inputs
> +       `(("semver" ,node-semver)
> +         ("acorn" ,node-acorn)))
> +      (home-page "https://lisperator.net/uglifyjs/")
> +      (synopsis "JavaScript parser / mangler / compressor / beautifier toolkit")
> +      (description "UglifyJS is a JavaScript compressor/minifier written in
> +JavaScript. It also contains tools that allow one to automate working with
> +JavaScript code: parser, code generator, compressor, mangler, scope analyzer,
> +tree walker, and tree transformer.")
> +      (license license:bsd-2))))
> -- 
> 2.32.0
> 

-- 
Efraim Flashner   <[email-masked]>   אפרים פלשנר
GPG key = A28B F40C 3E55 1372 662D  14F7 41AA E7DC CA3D 8351
Confidentiality cannot be guaranteed on emails sent or received unencrypted