aboutsummaryrefslogtreecommitdiff
path: root/script.it/dune
blob: dd1f7d2c5d92acc4891f384996427d9f046f1337 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
(executable
 (name script)
 (libraries 
   brr
   brr.note
   script_state
   shapes
   elements
   blog
   application
   layer
   worker_messages
   outline
   )
 (modes js)
 (modules script)
 (preprocess (pps ppx_hash js_of_ocaml-ppx))
 (link_flags (:standard -no-check-prims))
 )


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

(executable
 (name worker)
 (modules worker)
 (libraries 
   js_of_ocaml
   shapes
   path
   worker_messages
   outline
   )
 (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 (copy %{deps} %{targets})))