31 lines
1.1 KiB
Clojure
31 lines
1.1 KiB
Clojure
{:tasks
|
|
{compile {:doc "Compile all .clje and .ex files"
|
|
:task (apply shell "mix compile" *command-line-args*)}
|
|
|
|
test {:doc "Run tests (accepts mix test args, e.g. bb test --only phase5)"
|
|
:task (apply shell "mix test" *command-line-args*)}
|
|
|
|
repl {:doc "Start interactive CljElixir REPL"
|
|
:task (shell "rlwrap mix clje.repl")}
|
|
|
|
repl:basic {:doc "Start REPL without rlwrap"
|
|
:task (shell "mix clje.repl")}
|
|
|
|
nrepl {:doc "Start nREPL server (bb nrepl --port 7888)"
|
|
:task (apply shell "mix clje.nrepl" *command-line-args*)}
|
|
|
|
eval {:doc "Evaluate expression (bb eval '(+ 1 2)')"
|
|
:task (apply shell "mix clje.eval" *command-line-args*)}
|
|
|
|
run {:doc "Run a .clje file (bb run examples/chat_room.clje)"
|
|
:task (apply shell "mix clje.run" *command-line-args*)}
|
|
|
|
build {:doc "Compile .clje to BEAM (bb build src/foo.clje [-o dir])"
|
|
:task (apply shell "mix clje.build" *command-line-args*)}
|
|
|
|
clean {:doc "Clean build artifacts"
|
|
:task (shell "mix clean")}
|
|
|
|
fmt {:doc "Format Elixir source files"
|
|
:task (shell "mix format")}}}
|