You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
14 lines
379 B
Plaintext
14 lines
379 B
Plaintext
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/
|