set shell := ["nu", "-c"] default: print "Select a command" dev target +FLAGS="--dev": (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/