-
Notifications
You must be signed in to change notification settings - Fork 9
Expand file tree
/
Copy pathmix.exs
More file actions
38 lines (34 loc) · 827 Bytes
/
mix.exs
File metadata and controls
38 lines (34 loc) · 827 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
defmodule DurableWorkspace.MixProject do
use Mix.Project
@apps ~w(durable durable_dashboard)
def project do
[
app: :durable_workspace,
version: "0.0.0",
elixir: "~> 1.15",
deps: [
{:durable, path: "durable"},
{:durable_dashboard, path: "durable_dashboard"}
],
aliases: [
setup: cmd("deps.get"),
compile: cmd("compile"),
test: cmd("test"),
format: cmd("format"),
precommit: cmd("precommit")
]
]
end
defp cmd(command) do
for app <- @apps do
fn args ->
{_, code} =
System.cmd("mix", [command | args],
into: IO.binstream(:stdio, :line),
cd: app
)
if code > 0, do: System.at_exit(fn _ -> exit({:shutdown, 1}) end)
end
end
end
end