hjsmin: Haskell implementation of a javascript minifier

[ bsd3, library, program, web ] [ Propose Tags ]

Reduces size of javascript files by stripping out extraneous whitespace and other syntactic elements, without changing the semantics.


[Skip to Readme]

Modules

[Index]

Downloads

Maintainer's Corner

Package maintainers

For package maintainers and hackage trustees

Candidates

Versions [RSS] 0.0.1, 0.0.2, 0.0.3, 0.0.4, 0.0.5, 0.0.6, 0.0.7, 0.0.8, 0.0.9, 0.0.11, 0.0.12, 0.0.13, 0.0.14, 0.0.15, 0.0.16, 0.1.0, 0.1.1, 0.1.2, 0.1.3, 0.1.4, 0.1.4.1, 0.1.4.2, 0.1.4.3, 0.1.4.4, 0.1.4.5, 0.1.4.6, 0.1.4.7, 0.1.4.8, 0.1.5.0, 0.1.5.1, 0.1.5.2, 0.1.5.3, 0.1.5.4, 0.2.0.0, 0.2.0.1, 0.2.0.2, 0.2.0.3, 0.2.0.4, 0.2.1
Dependencies base (>=4.5 && <5), blaze-builder (>=0.2), bytestring (>=0.9), containers (>=0.2), language-javascript (>=0.5.14 && <0.6), optparse-applicative (>=0.13 && <0.14), text (>=0.8) [details]
License BSD-3-Clause
Author Alan Zimmerman <alan.zimm@gmail.com>
Maintainer Erik de Castro Lopo <erikd@mega-nerd.com>
Category Web
Home page http://github.com/erikd/hjsmin
Bug tracker http://github.com/erikd/hjsmin/issues
Source repo head: git clone https://github.com/erikd/hjsmin.git
Uploaded by ErikDeCastroLopo at 2016-08-29T11:42:47Z
Distributions Arch:0.2.0.4, Debian:0.2.0.4, Fedora:0.2.1, FreeBSD:0.1.5.0, LTSHaskell:0.2.1, NixOS:0.2.1, Stackage:0.2.1, openSUSE:0.2.1
Reverse Dependencies 14 direct, 77 indirect [details]
Executables hjsmin
Downloads 61092 total (106 in the last 30 days)
Rating (no votes yet) [estimated by Bayesian average]
Your Rating
  • λ
  • λ
  • λ
Status Docs available [build log]
Last success reported on 2016-08-29 [all 1 reports]

Readme for hjsmin-0.1.5.4

[back to package description]

hjsmin

Build Status

Haskell implementation of a javascript minifier

It is intended to be used in conjunction with Hamlet, part of Yesod.

As such, much of the structure of the package is shamelessly copied from Hamlet.

See http://github.com/snoyberg/hamlet

How to build

Library:

cabal clean && cabal configure && cabal build

Tests:

cabal clean && cabal configure --enable-tests && cabal build

Running the tests

dist/build/test-hjsmin/test-hjsmin

Changes

0.1.5.3 - fix handling of hex literals

0.1.5.1 - fix if/else/if minify issue

0.1.5.0 - fix tests to work with language-javascript >= 0.5.14

0.1.4.7 - remove upper bounds in cabal file

0.1.4.6 - relax upper bound in optparse-applicative

0.1.4.5 - relax upper bound in text to support 1.1 - introduce CLI wrapper for minifying files from the commandline, courtesy of @CodeBlock

0.1.4.4 - relax upper bound in text to support 1.0

0.1.4.3 - make sure all missing cases are covered

0.1.4.2 - minify octal literals too

0.1.4.1 - Bump upper bound for containers to < 0.6 for the tests as well as the library

0.1.4 - Include test assets in cabal to allow cabal test to pass. Courtesy of @snoyberg

0.1.3 - Update version ranges for GHC 7.6.1, courtesy of @mietek

0.1.2 - More general fix to the space after 'new' keyword, for issue #8 & #9

0.1.1 - Fixed problem with missing space after 'new' keyword, in issue #8.

0.1.0 - Major update to work with language-javascript 0.5.1. All changes should be internal. Update of build process to make use of Cabal testing support, and Travis CI.

0.0.15 - Fix GHC 7.4.1 compile compatibility. Patch accepted from github.com/luite

0.0.14 - Allow unicode characters in comments

0.0.13 - Error in parsing numbers with zeros before decimal point

0.0.12 - Worked in Michael Snoyman's fix for unicode output

0.0.11 - Worked in language-javascript 0.4.*, with source locations in the AST Worked in processing of property get/set in object literals 0.0.10 - Removed attoparsec dependency and historical Parse/Token