tonyday567 / ghcjs-testing

ghcjs testing

Home Page:https://tonyday567.github.io/ghcjs-testing/

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

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

About

ghcjs testing

https://tonyday567.github.io/ghcjs-testing/

License:BSD 3-Clause "New" or "Revised" License


Languages

Language:Haskell 100.0%