-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdune
49 lines (45 loc) · 1.12 KB
/
dune
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
46
47
48
(library
(name server_lib)
(flags :standard -open ReactCompat -linkall)
(modules :standard \ server_prod server_dev)
(libraries
react_compat
eio_main
fmt.tty
logs.fmt
logs.threaded
piaf
ptime.clock.os
routes
server-reason-react.react
server-reason-react.reactDom
react_plugin
)
(preprocess (pps server-reason-react.ppx))
)
(executable
(public_name server_prod)
(name server_prod)
(modules server_prod)
(libraries server_lib react_plugin_static)
(preprocess (pps server-reason-react.ppx))
)
(executable
(public_name server_dev)
(name server_dev)
(modules server_dev)
(flags :standard -linkall)
(libraries server_lib react_plugin_dynamic)
(preprocess (pps server-reason-react.ppx))
)
(rule
(alias default)
(deps ./server_dev.exe)
(mode
(promote (until-clean)))
(action
; we want dune to write the file but not attach any fsevents listeners to it,
; so that watchexec can read from it without issues.
; this means no (target), no (with-stdout-to), just a bash command with stdout
; redirect inside a string
(bash "date > %{project_root}/../../.processes/last_built_at.txt")))