blob: 8dc2bb13c7ffe4f98438907e27df23db385f0aaa (
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
|
(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 js/tailwind.config.js)
(:input js/styles.css))
(action
(progn
(run tailwind --config=%{config} --input=%{input} --output=%{target}))))
|