OCaml: Add dependency check to justfile, dev commands cleanup and comments
This commit is contained in:
parent
dc85dc0493
commit
1eb0818463
1 changed files with 13 additions and 2 deletions
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue