Moonraker is a simple build system I use to define common tasks (such as packaging a .love file).
default "echo"
where = windows! and where or which
desc "Find moon's path"
task test: =>
"MOON_PATH: " .. where "moon" -- results returned from a task are printed to screen
desc "List some stuff"
task dir: "test", =>
cd, status = echo "%CD%" -- calls to any unknown global will os.execute and return the result (string) and status code (number)
"PWD: " .. cd
desc "Echo some useless information"
task echo: {"test", "dir"}, =>
echo "doing echo"
Simply call moonraker. Without any arguments it will call the default task from the .moonraker file. The first argument is an optional file, the second is the task to run.