-
-
Notifications
You must be signed in to change notification settings - Fork 1
/
deno.json
73 lines (73 loc) · 4.42 KB
/
deno.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
72
73
{
"tasks": {
"check": "deno fmt --check && deno lint && deno task check:types",
"check:types": "deno check --no-lock --import-map src/import_map.json src/**/*.ts src/**/*.tsx",
"client": "deno task --cwd src/client dev",
"client:test": "deno task --cwd src/client test",
"compile": "deno run --allow-run=deno compile.ts",
"test": "deno task server:test",
"server:test": "docker exec -ti autorender-server deno task test",
"debug": "deno task server:debug",
"server:debug": "docker exec -ti autorender-server sh",
"server:restart": "docker container restart autorender-server",
"server:stop": "docker container stop autorender-server",
"bot:debug": "docker exec -ti autorender-bot sh",
"bot:restart": "docker container restart autorender-bot",
"bot:stop": "docker container stop autorender-bot",
"proxy:debug": "docker exec -ti autorender-proxy sh",
"proxy:restart": "docker container restart autorender-proxy",
"proxy:stop": "docker container stop autorender-proxy",
"prod:proxy:debug": "docker exec -ti autorender-proxy-prod sh",
"prod:proxy:restart": "docker container restart autorender-proxy-prod",
"prod:proxy:stop": "docker container stop autorender-proxy-prod",
"stale": "docker exec -ti autorender-server deno task stale",
"perm": "docker exec -ti autorender-server deno task perm",
"id": "docker exec -ti autorender-server deno task id",
"avatars": "docker exec -ti autorender-server deno task avatars",
"board": "docker exec -ti autorender-server deno task board",
"processing": "docker exec -ti autorender-server deno task processing",
"optimize": "docker exec -ti autorender-server deno task optimize",
"build": "docker compose build",
"up": "docker compose up",
"down": "docker compose down",
"reload": "deno task restart",
"restart": "deno task up -d --force-recreate",
"db": "deno task db:conf && docker exec -ti autorender-db mariadb",
"db:conf": "docker exec autorender-db bash -c 'printf [client]\\\\nuser=${MARIADB_USER}\\\\npassword=${MARIADB_PASSWORD}\\\\n[clientroot]\\\\nuser=root\\\\npassword=${MARIADB_ROOT_PASSWORD}\\\\n[mysql]\\\\ndatabase=${MARIADB_DATABASE} > /etc/my.cnf'",
"db:debug": "docker exec -ti autorender-db bash",
"db:restart": "docker container restart autorender-db",
"db:stop": "docker container stop autorender-db",
"db:dump": "docker exec autorender-db bash -c 'mariadb-dump --defaults-group-suffix=root --hex-blob --net-buffer-length 100K --routines --databases ${MARIADB_DATABASE} | gzip -8 > /backups/${MARIADB_DATABASE}_dump_$(date +%Y-%m-%d-%H.%M.%S).sql.gz'",
"db:dump:latest": "docker exec autorender-db bash -c 'mariadb-dump --defaults-group-suffix=root --hex-blob --net-buffer-length 100K --routines --databases ${MARIADB_DATABASE} | gzip -8 > /backups/${MARIADB_DATABASE}_backup_latest.sql.gz'",
"db:dump:raw": "docker exec autorender-db bash -c 'mariadb-dump --defaults-group-suffix=root --hex-blob --net-buffer-length 100K --routines --databases ${MARIADB_DATABASE} > /backups/${MARIADB_DATABASE}_dump_$(date +%Y-%m-%d-%H.%M.%S).sql'",
"setup": "deno run --allow-read=. --allow-write=. --allow-run=mkcert setup.ts",
"prod:sync": "deno run --reload --allow-read=. --allow-write=. --allow-net=raw.githubusercontent.com https://raw.githubusercontent.com/NeKzor/autorender/main/setup.ts --prod --sync",
"prod:update": "docker pull p2sr/autorender-bot && docker pull p2sr/autorender-server && deno task prod:sync && deno task restart",
"prod:backup": "deno task db:conf && deno task db:dump:latest && zip -rFS kv_backup_latest.zip kv && deno run --env --no-prompt -A https://raw.githubusercontent.com/NeKzor/autorender/main/backup.ts /mnt/autorender-content/backups/p2render_backup_latest.sql.gz ./kv_backup_latest.zip",
"dev:backup": "deno task db:conf && deno task db:dump:latest && zip -rFS kv_backup_latest.zip docker/volumes/kv && deno run --env --no-prompt -A backup.ts --dry-run=1 ./docker/volumes/backups/p2render_backup_latest.sql.gz ./kv_backup_latest.zip"
},
"lint": {
"exclude": [
"docker"
]
},
"fmt": {
"useTabs": false,
"lineWidth": 120,
"indentWidth": 2,
"singleQuote": true,
"proseWrap": "preserve",
"exclude": [
".github/ISSUE_TEMPLATE",
"docker"
]
},
"exclude": [
"src/app"
],
"compilerOptions": {
"jsx": "react-jsx",
"jsxImportSource": "react",
"noUncheckedIndexedAccess": true
}
}