-
-
Notifications
You must be signed in to change notification settings - Fork 28
/
devbox.json
68 lines (68 loc) · 1.48 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
{
"packages": [
"bun@1.0.30",
"nodejs@20.11.0",
"pdm@2.12.3",
"pm2@5.3.1",
"python-full@3.10.13",
"gcc13Stdenv.cc.cc.lib"
],
"env": {
"VENV_DIR": "$PWD/.venv"
},
"shell": {
"init_hook": [
"[ ! -d $VENV_DIR ] && echo 'Creating virtualenv ...' && python3 -m venv $VENV_DIR",
"source $VENV_DIR/bin/activate"
],
"scripts": {
"setup": [
"pdm 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 $PWD/dev/ecosystem.json"
],
"stop": [
"pm2 stop mmpm"
],
"remove": [
"pm2 delete mmpm"
],
"logs": [
"pm2 logs mmpm"
],
"deploy": [
"cd ui && npm install --legacy-peer-deps && cd ..",
"cd ui && ./node_modules/@angular/cli/bin/ng.js build --configuration production --output-hashing none --base-href / && cd ..",
"pdm install",
"mkdir -p mmpm/ui",
"cp -r ui/build/* mmpm/ui",
"pdm build"
]
}
}
}