-
Notifications
You must be signed in to change notification settings - Fork 0
/
devbox.json
43 lines (43 loc) · 1.37 KB
/
devbox.json
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
39
40
41
42
43
{
"packages": ["nodejs@latest", "elixir@latest", "erlang@latest", "caddy@latest"],
"env": {
"DEVBOX_COREPACK_ENABLED": "true",
"MIX_HOME": "$PWD/server/.nix-mix",
"HEX_HOME": "$PWD/server/.nix-hex",
"ERL_AFLAGS": "-kernel shell_history enabled'"
},
"shell": {
"scripts": {
"bootstrap:client": ["cd client", "pnpm install"],
"bootstrap:server": [
"cd server",
"mkdir -p .nix-mix",
"mkdir -p .nix-hex",
"mix local.hex --force",
"mix local.rebar --force",
"mix deps.get"
],
"bootstrap": [
"devbox run bootstrap:client",
"devbox run bootstrap:server",
"devbox run e2e:bootstrap"
],
"test": ["devbox run test:server"],
"test:server": ["cd server", "mix test"],
"server": ["cd server", "mix run --no-halt"],
"client": ["cd client", "pnpm run dev"],
"build:server": [
"cd server",
"mix local.hex --force",
"mix local.rebar --force",
"mix deps.get --only prod",
"MIX_ENV=prod mix release --overwrite"
],
"build:client": ["cd client", "pnpm build"],
"build": ["devbox run build:server", "devbox run build:client"],
"e2e:bootstrap": ["cd e2e", "pnpm install"],
"e2e": ["cd e2e", "pnpm run dev"],
"e2e:environment": ["docker compose --file e2e/docker-compose.yml up"]
}
}
}