-
-
Notifications
You must be signed in to change notification settings - Fork 29
/
Copy pathdevbox.json
71 lines (71 loc) · 1.74 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
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
{
"packages": [
"gcc13Stdenv.cc.cc.lib",
],
"env": {
"VENV_DIR": "$DEVBOX_PROJECT_ROOT/.venv",
"LD_LIBRARY_PATH": "$DEVBOX_PROJECT_ROOT/.devbox/nix/profile/default/lib"
},
"shell": {
"init_hook": [
"[ ! -d $VENV_DIR ] && echo 'Creating virtualenv ...' && python3 -m venv $VENV_DIR",
"source $VENV_DIR/bin/activate",
"[[ ! $(command -v poetry) ]] && python -m pip install poetry=='2.0.1' && printf '\n\nRun `devbox run setup` to install dependencies\n'"
],
"scripts": {
"setup": [
"poetry install",
"cd ui && bun install"
],
"build-ui": [
"cd ui && bun run build"
],
"test": [
"coverage run -m pytest test"
],
"report": [
"coverage report"
],
"lint": [
"pylint mmpm",
"cd ui && bun run lint"
],
"mypy": [
"mypy mmpm"
],
"format": [
"isort mmpm",
"isort test",
"black mmpm --line-length=150",
"black test --line-length=150",
"cd ui && bun run format"
],
"start": [
"pm2 start $DEVBOX_PROJECT_ROOT/dev/ecosystem.json"
],
"stop": [
"pm2 stop mmpm"
],
"remove": [
"pm2 delete mmpm"
],
"logs": [
"pm2 logs mmpm"
],
"deploy": [
"cd ui",
"bun install --legacy-peer-deps",
"./node_modules/@angular/cli/bin/ng.js build --configuration production --output-hashing none --base-href /",
"cd ..",
"mkdir -p mmpm/ui",
"cp -r ui/build/browser/* mmpm/ui",
"poetry install --no-interaction",
"poetry build"
]
}
}
}