The yesod-static-angular package

[Tags:library, mit]

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 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.


[Skip to Readme]

Properties

Versions 0.1.0, 0.1.1, 0.1.2, 0.1.3, 0.1.4, 0.1.5, 0.1.6, 0.1.7, 0.1.8
Dependencies aeson (>=0.6), base (==4.*), 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.6.*), mime-types (>=0.1), shakespeare (>=1.2), template-haskell, text (>=0.11), yesod (>=1.2 && <1.5), yesod-core (>=1.2 && <1.5), yesod-static (>=1.2.1 && <1.6), yesod-static-angular [details]
License MIT
Author John Lenz <lenz@math.uic.edu>
Maintainer John Lenz <lenz@math.uic.edu>
Stability Experimental
Category Web
Home page https://bitbucket.org/wuzzeb/yesod-static-angular
Source repository head: hg clone https://bitbucket.org/wuzzeb/yesod-static-angular
Uploaded Mon Apr 11 03:12:52 UTC 2016 by JohnLenz
Distributions LTSHaskell:0.1.8, NixOS:0.1.8, Stackage:0.1.8
Downloads 945 total (24 in the last 30 days)
Votes
0 []
Status Docs pending
Build status unknown [no reports yet]

Modules

  • Yesod
    • EmbeddedStatic
      • Yesod.EmbeddedStatic.AngularJavascript

Flags

NameDescriptionDefaultType
exampleBuild the example programDisabledAutomatic

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 yesod-static-angular

Readme for yesod-static-angular-0.1.8

yesod-static supports generators which run at compile time which create static resources to embed directly into the executable. This package leverages these generators to provide automatic management of 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.

There are several moving parts to integrating AngularJs into Yesod using this module

  • yesod-static-angular (this module) - embeds Angular code and directive templates into the static subsite
  • karma-ng-hamlet2js-preprocessor - a karma plugin to insert Hamlet directive templates into the AngularJs template cache.
  • webdriver - end to end web testing tool
  • webdriver-angular - some Angular specific commands for webdriver. This package contains all the functionality of protractor so protractor does not need to be used.
  • hspec-webdriver - some integration code to easily write hspec examples which are webdriver tests.

The example directory in the source code contains an example application that shows all of the above packages in action. Also, I have two blog posts describing the example and its tests.