The hjsmin package

[Tags:bsd3, library, program]

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


[Skip to Readme]

Properties

Versions 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.2.0.0, 0.2.0.1, 0.2.0.2
Dependencies base (==4.*), blaze-builder (>=0.2 && <1), bytestring (==0.9.*), containers (>=0.2 && <0.5), HUnit, language-javascript (==0.4.*), QuickCheck (==2.*), test-framework, test-framework-hunit, text (>=0.8 && <1) [details]
License BSD3
Author Alan Zimmerman <alan.zimm@gmail.com>
Maintainer Alan Zimmerman <alan.zimm@gmail.com>
Stability unstable
Category Web
Home page http://github.com/alanz/hjsmin
Bug tracker http://github.com/alanz/hjsmin/issues
Source repository head: git clone git://github.com/alanz/hjsmin.git
Uploaded Sun Jan 23 20:48:12 UTC 2011 by AlanZimmerman
Distributions Arch:0.2.0.1, Debian:0.1.5.1, Fedora:0.2.0.1, FreeBSD:0.1.5.0, LTSHaskell:0.2.0.2, NixOS:0.2.0.2, Stackage:0.2.0.2, Tumbleweed:0.2.0.2
Downloads 28651 total (64 in the last 30 days)
Votes
0 []
Status Docs uploaded by user
Build status unknown [no reports yet]

Modules

[Index]

Flags

NameDescriptionDefaultType
buildtestsBuild the executable to run unit testsDisabledAutomatic

Use -f <flag> to enable a flag, or -f -<flag> to disable that flag. More info

Downloads

Maintainer's Corner

For package maintainers and hackage trustees

Readme for hjsmin

Readme for hjsmin-0.0.11

hjsmin

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 -fbuildtests && cabal build

Running the tests

./dist/build/runtests/runtests

Changes

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