(executable
 (name script)
 (libraries 
   brr
   brr.note
   shapes
   elements
   blog
   layer
   )
 (modes js)
 (modules script state selection)
 (preprocess (pps ppx_hash js_of_ocaml-ppx))
 (link_flags (:standard -no-check-prims))
 )


(rule
  (targets script.js)
  (deps script.bc.js)
  (action (run cp %{deps} %{targets})))

(executable
 (name worker)
 (modules worker)
 (libraries 
   js_of_ocaml
   shapes
   path
   )
 (modes js)
 (preprocess (pps ppx_hash js_of_ocaml-ppx))
 (link_flags (:standard -no-check-prims))
 )

(rule
  (targets worker.js)
  (deps worker.bc.js)
  (action (run cp %{deps} %{targets})))