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:
|
_default:
|
||||||
@just --list
|
@just --list
|
||||||
|
|
||||||
|
# Build and execute
|
||||||
[group('dev')]
|
[group('dev')]
|
||||||
exec *args:
|
exec *args:
|
||||||
dune exec tori -- {{ args }}
|
dune exec tori -- {{ args }}
|
||||||
|
|
||||||
|
# Build and execute on file changes
|
||||||
[group('dev')]
|
[group('dev')]
|
||||||
exec-watch *args:
|
exec-watch *args:
|
||||||
dune exec --watch tori -- {{ args }}
|
dune exec --watch tori -- {{ args }}
|
||||||
|
|
||||||
|
# Run tests on file changes
|
||||||
[group('dev')]
|
[group('dev')]
|
||||||
test-watch *args:
|
test-watch:
|
||||||
dune test --watch
|
dune test --watch
|
||||||
|
|
||||||
|
# Format check on file changes
|
||||||
[group('dev')]
|
[group('dev')]
|
||||||
format-watch *args:
|
format-watch:
|
||||||
find . -regex '.*\.mli?$' | entr -c -- dune fmt --preview
|
find . -regex '.*\.mli?$' | entr -c -- dune fmt --preview
|
||||||
|
|
||||||
# Build project with Dune
|
# Build project with Dune
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue