Commit | Line | Data |
---|---|---|
d16148fc C |
1 | ;;; GNU Guix --- Functional package management for GNU |
2 | ;;; Copyright © 2021 Charles <charles.b.jackson@protonmail.com> | |
3 | ;;; This file is part of GNU Guix. | |
4 | ;;; | |
5 | ;;; GNU Guix is free software; you can redistribute it and/or modify it | |
6 | ;;; under the terms of the GNU General Public License as published by | |
7 | ;;; the Free Software Foundation; either version 3 of the License, or (at | |
8 | ;;; your option) any later version. | |
9 | ;;; | |
10 | ;;; GNU Guix is distributed in the hope that it will be useful, but | |
11 | ;;; WITHOUT ANY WARRANTY; without even the implied warranty of | |
12 | ;;; MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | |
13 | ;;; GNU General Public License for more details. | |
14 | ;;; | |
15 | ;;; You should have received a copy of the GNU General Public License | |
16 | ;;; along with GNU Guix. If not, see <http://www.gnu.org/licenses/>. | |
17 | ||
18 | (define-module (gnu packages uglifyjs) | |
19 | #:use-module ((guix licenses) #:prefix license:) | |
20 | #:use-module (guix packages) | |
21 | #:use-module (guix git-download) | |
22 | #:use-module (guix build-system node) | |
23 | #:use-module (gnu packages node-xyz)) | |
24 | ||
25 | (define-public node-uglify-js | |
26 | (package | |
27 | (name "node-uglify-js") | |
28 | (version "3.13.9") | |
29 | (source | |
30 | (origin | |
31 | (method git-fetch) | |
32 | (uri (git-reference | |
33 | (url "https://github.com/mishoo/UglifyJS") | |
34 | (commit (string-append "v" version)))) | |
35 | (file-name (git-file-name name version)) | |
36 | (sha256 | |
37 | (base32 "0q1f91xwwm829cl5v727d4qkxy4yh7wri3pgl89f0m3a4y1n7hi4")))) | |
38 | (build-system node-build-system) | |
39 | (native-inputs | |
8394619b | 40 | (list node-acorn node-semver)) |
d16148fc C |
41 | (home-page "https://lisperator.net/uglifyjs/") |
42 | (synopsis "JavaScript parser / mangler / compressor / beautifier toolkit") | |
43 | (description "UglifyJS is a JavaScript compressor/minifier written in | |
44 | JavaScript. It also contains tools that allow one to automate working with | |
45 | JavaScript code: parser, code generator, compressor, mangler, scope analyzer, | |
46 | tree walker, and tree transformer.") | |
47 | (license license:bsd-2))) | |
48 | ||
49 | (define-public uglifyjs node-uglify-js) |