yesod-static-angular: Yesod generators for embedding AngularJs code into yesod-static at compile time

[ library, mit, web ] [ Propose Tags ] [ Report a vulnerability ]

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]

Modules

[Index]

Flags

Automatic Flags
NameDescriptionDefault
example

Build the example program

Disabled

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

Downloads

Maintainer's Corner

Package maintainers

For package maintainers and hackage trustees

Candidates

  • No Candidates
Versions [RSS] 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 && <5), 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 && <0.7), 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>
Category Web
Home page https://bitbucket.org/wuzzeb/yesod-static-angular
Source repo head: hg clone https://bitbucket.org/wuzzeb/yesod-static-angular
Uploaded by JohnLenz at 2016-04-11T03:12:52Z
Distributions
Reverse Dependencies 1 direct, 0 indirect [details]
Executables example-dev, example-production
Downloads 6866 total (3 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-11-27 [all 5 reports]

Readme for yesod-static-angular-0.1.8

[back to package description]

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.