From 1eb08184630d48edc82b97f7d6ef40168aa0d3cf Mon Sep 17 00:00:00 2001 From: jutty Date: Wed, 16 Apr 2025 22:41:29 -0300 Subject: [PATCH] OCaml: Add dependency check to justfile, dev commands cleanup and comments --- ocaml/.justfile | 15 +++++++++++++-- 1 file changed, 13 insertions(+), 2 deletions(-) diff --git a/ocaml/.justfile b/ocaml/.justfile index aab4731..e2d0168 100644 --- a/ocaml/.justfile +++ b/ocaml/.justfile @@ -1,20 +1,31 @@ +set unstable + +dependencies := \ + require('dune') && \ + require('entr') && \ + require('bisect-ppx-report') + _default: @just --list +# Build and execute [group('dev')] exec *args: dune exec tori -- {{ args }} +# Build and execute on file changes [group('dev')] exec-watch *args: dune exec --watch tori -- {{ args }} +# Run tests on file changes [group('dev')] -test-watch *args: +test-watch: dune test --watch +# Format check on file changes [group('dev')] -format-watch *args: +format-watch: find . -regex '.*\.mli?$' | entr -c -- dune fmt --preview # Build project with Dune