| 1 | |
| 2 | |
| 3 | |
| 4 | |
| 5 | |
| 6 | |
| 7 | |
| 8 | |
| 9 | |
| 10 | |
| 11 | |
| 12 | |
| 13 | |
| 14 | |
| 15 | |
| 16 | |
| 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.19.3")
|
| 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 "0a3pyf6wnix7v0vdjhag3dd32l4fm2hxhxpjdgr1zfvy3m4d1hmh"))))
|
| 38 | (build-system node-build-system)
|
| 39 | (native-inputs
|
| 40 | (list node-acorn node-semver))
|
| 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)
|