blob: 1538faddfc377a80ea3fce03f256958798bf75a2 (
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
|
(rule
(alias demo)
(enabled_if
(= %{profile} "dev"))
(deps
server/server.exe
; (alias_rec client)
)
(action
(progn
; 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}/.running/built_at.txt"))))
(install
(section bin)
(enabled_if
(= %{profile} dev))
(files
("./js/node_modules/@tailwindcss/cli/dist/index.mjs" as tailwind)))
; (rule
; (target output.css)
; (enabled_if
; (= %{profile} dev))
; (alias client)
; (deps
; (source_tree ./)
; (source_tree ./../server)
; (:config tailwind.config.js)
; (:input styles.css))
; (action
; (progn
; (run tailwind --config=%{config} --input=%{input} --output=%{target}))))
|