summaryrefslogtreecommitdiff
path: root/bs5/dune
diff options
context:
space:
mode:
Diffstat (limited to 'bs5/dune')
-rw-r--r--bs5/dune36
1 files changed, 36 insertions, 0 deletions
diff --git a/bs5/dune b/bs5/dune
new file mode 100644
index 0000000..1538fad
--- /dev/null
+++ b/bs5/dune
@@ -0,0 +1,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}))))