-- Initial jespresso.cabal generated by cabal init.  For further 
-- documentation, see http://haskell.org/cabal/users-guide/

name:                jespresso
version:             1.0
synopsis:            Extract all JavaScript from an HTML page and consolidate it in one script.
description:         Allows extraction and consolidation of JavaScript code in an HTML page so that it behaves like the original. Consolidation is a process of transforming an HTML page into an equivalent, but containing JavaScript code only in one inlined script tag.
license:             BSD3
license-file:        LICENSE
author:              Andrey Chudnov
maintainer:          Andrey Chudnov <oss@chudnov.com>
Homepage:            http://github.com/achudnov/jespresso
Bug-reports:         http://github.com/achudnov/jespresso/issues
copyright:           (c) 2012-2014 Stevens Institute of Technology
category:            Web
stability:           Experimental
tested-with:         GHC==7.6.3
build-type:          Simple
cabal-version:       >=1.10
extra-source-files:  test-data/cases/*.html, test-data/expects/*.html

Source-repository head
   type: git
   location: git://github.com/achudnov/jespresso.git

Source-repository this
   type: git
   location: git://github.com/achudnov/jespresso.git
   tag: 1.0

library
  build-depends:       base >=4.2.0 && < 5
                      ,hxt >= 9.2.0 && < 10
                      ,hxt-tagsoup >= 9.1.1 && < 10
                      ,arrows >= 0.4 && < 0.5
                      ,HTTP >= 4000.2.0 && < 5000
                      ,language-ecmascript >= 0.15 && < 1.0
                      ,random >= 1 && < 2
                      ,bytestring >= 0.9 && < 0.11
                      ,http-encodings >= 0.9.1 && < 1.0
                      ,network >= 2.4 && < 2.5
                      ,data-default-class >= 0.0.1 && < 0.1
  exposed-modules:    Text.Html.Consolidate
                      Network.Browser.Simple
  hs-source-dirs:     src
  default-language:  Haskell2010

executable jespresso
  main-is:             Main.hs
  build-depends:       base >=4.2.0 && < 5
                      ,jespresso
                      ,cmdargs >= 0.9 && < 0.11
                      ,HTTP >= 4000.2.0 && < 5000
                      ,network >= 2.4 && < 2.5
  default-language:  Haskell2010

Test-Suite unittest
  Hs-Source-Dirs: test
  Type: exitcode-stdio-1.0
  Main-Is: UnitTest.hs
  Build-Depends: base >= 4 && < 5
                ,jespresso
                ,tasty >= 0.4 && < 0.8
                ,tasty-golden >= 2.2 && < 2.3
                ,directory >= 1.2 && < 1.3
                ,filepath >= 1.1 && < 1.4
                ,hxt >= 9.2.0 && < 10
                ,arrows >= 0.4 && < 0.5
                ,transformers >= 0.3 && < 0.4
  Default-Language: Haskell2010