Skip to content

szensk/moonraker

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

14 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Description

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"

Usage

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.