I would like to compile all contracts in a folder at one go.
I tried
"compile all": "docker run --rm -v \"$PWD\":\"$PWD\" -w \"$PWD\" ligolang/ligo:0.24.0 compile-contract contracts/*.ligo main > compiled/*.tz",
Tezos Stack Exchange is a question and answer site for users, experts, and developers of the Tezos blockchain project. It only takes a minute to sign up.
Sign up to join this communityTry
cd contracts
for i in *.ligo; do
docker run --rm -v \"$PWD\":\"$PWD\" -w \"$PWD\" \
ligolang/ligo:0.24.0 compile-contract \
contracts/$i main > compiled/$i.tz
done
*.ligo
of course. updating answer