Skip to content
This repository has been archived by the owner on Dec 31, 2023. It is now read-only.

archive567/ghcjs-testing

Repository files navigation

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