blob: 60ecc7a1876c7bc8e9b7f7a7ac967b8cbf2524f4 (
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
|
(rule
(alias demo)
(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"))))
(alias
(name default)
(deps (alias demo)))
(install
(section bin)
(files
("./js/node_modules/@tailwindcss/cli/dist/index.mjs" as tailwind)))
(rule
(target output.css)
(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}))))
|