Add justfile to build for correct out dir
parent
6ae8d0b8e4
commit
4c9edbfadb
@ -0,0 +1,13 @@
|
||||
set shell := ["nu", "-c"]
|
||||
|
||||
default:
|
||||
print "Select a command"
|
||||
|
||||
dev target +FLAGS="": (build target FLAGS)
|
||||
if ('out/{{target}}' | path exists) { out/{{target}} } else { ^$"out/('{{target}}' | str replace -r '\.roc$' '')" }
|
||||
|
||||
build target +FLAGS="--optimize": init
|
||||
roc build {{FLAGS}} ('{{target}}.roc' | str replace -r '\.roc\.roc$' '.roc') --output out/
|
||||
|
||||
init:
|
||||
mkdir out/
|
Loading…
Reference in New Issue