name: yesod-static-angular
version: 0.1.1
cabal-version: >= 1.8
build-type: Simple
synopsis: Yesod generators for embedding AngularJs code into yesod-static at compile time
category: Web
author: John Lenz <lenz@math.uic.edu>
maintainer: John Lenz <lenz@math.uic.edu>
license: MIT
license-file: LICENSE
homepage: https://bitbucket.org/wuzzeb/yesod-static-generators
stability: Experimental
description: yesod-static supports generators which run at compile time which create static
resources to embed directly into the executable. This package leverages this to
provide automatic management of <http://angularjs.org/ AngularJS> code. During
development individual files served and reloaded on every request. When compiling
for production, the files are minimized, compressed, and then embedded into the
executable.
-- Temp workaround for http://hackage.haskell.org/trac/hackage/ticket/792
extra-source-files: README.md
, test/*.hs
, test/angular/*.js.expected
, test/angular/mod1/*.js
, test/angular/mod1/*.js.expected
, test/angular/mod1/*.hamlet
, test/angular/mod2/*.js
, test/angular/mod2/*.js.expected
, test/angular/mod2/*.json
, example/README.md
, example/*.hs
, example/angular-app/*.js
, example/angular-app/README.md
, example/angular-app/*.hamlet
, example/static/*.js
, example/static/*.min.css
, example/templates/*.hamlet
, example/templates/*.cassius
, example/tests/*.conf.js
, example/tests/unit-js/*.js
, example/tests/end2end/*.hs
source-repository head
type: mercurial
location: https://bitbucket.org/wuzzeb/yesod-static-generators
flag example
Description: Build the example program
Default: False
library
hs-source-dirs: .
exposed-modules: Yesod.EmbeddedStatic.AngularJavascript
other-modules: Yesod.EmbeddedStatic.AngularJsMangle
ghc-options: -Wall -O2
build-depends: base >= 4 && < 5
, aeson >= 0.6
, blaze-builder >= 0.3
, blaze-markup >= 0.5
, bytestring >= 0.10
, data-default >= 0.5
, directory >= 1.2
, filepath >= 1.3
, hamlet >= 1.1
, language-javascript >= 0.5
, mime-types >= 0.1
, shakespeare >= 1.2
, shakespeare-js >= 1.2
, template-haskell
, text >= 0.11
, yesod-core >= 1.2 && < 1.3
, yesod-static >= 1.2.1 && < 1.3
test-suite test
type: exitcode-stdio-1.0
main-is: Spec.hs
hs-source-dirs: test
ghc-options: -Wall
build-depends: base
, bytestring
, hamlet
, hspec >= 1.7
, HUnit >= 1.2
, shakespeare >= 2.0
, text
, template-haskell
, yesod-core
, yesod-test >= 1.2 && < 1.3
, yesod-static
, yesod-static-angular
executable example-production
if !flag(example)
Buildable: False
main-is: main.hs
hs-source-dirs: example
build-depends: base
, data-default
, shakespeare
, shakespeare-css
, yesod >= 1.2 && < 1.3
, yesod-static
, yesod-static-angular
executable example-dev
if !flag(example)
Buildable: False
main-is: main.hs
cpp-options: -DDEV
hs-source-dirs: example
build-depends: base
, data-default
, shakespeare
, shakespeare-css
, yesod >= 1.2 && < 1.3
, yesod-static
, yesod-static-angular