(executables
  (names main)
  (libraries js_of_ocaml brr lwd brr-lwd)
  (modes byte))

(rule
  (targets main.js)
  (action
    (run %{bin:js_of_ocaml} --noruntime %{lib:js_of_ocaml-compiler:runtime.js}
         --source-map %{dep:main.bc} -o %{targets} --pretty)))

(alias
  (name default)
  (deps main.js index.html))
