Switch branches/tags
Nothing to show
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Failed to load latest commit information.
other
src
.gitattributes
.gitignore
.travis.yml
LICENSE
Setup.hs
ghcjs-testing.cabal
ghcjs-testing.lhs
index.html
readme.md
stack-travis.yaml
stack.yaml

readme.md

ghcjs-testing

Build Status

Minimal ghcjs install and test.

See ghcjs-testing for the rendered page.

This is old-school web page development: example.lhs is used to both render a html page, and insert javascript that tweaks said page.

compiling

The recipe below handles the bits and bobs you need to do every re-compile:

  • stack build
  • rendering of the page
  • optimize (and copy) the js via closure
  
stack build --exec "pandoc -f markdown+lhs -i src/Vanilla.lhs -t markdown -o other/vanilla.md" --exec "pandoc -f markdown+lhs -i ghcjs-testing.lhs -t html -o index.html --filter pandoc-include" --exec "java -jar $(stack path --local-bin)/closure-compiler-v20170124.jar --js_output_file=other/ghcjs-testing.js $(stack path --local-install-root)/bin/ghcjs-testing.jsexe/all.js"
  

reference

ghcjs user guide

ghcjs-base

mdn