-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathpackage.json
More file actions
40 lines (40 loc) · 2.34 KB
/
Copy pathpackage.json
File metadata and controls
40 lines (40 loc) · 2.34 KB
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
{
"name": "astro-oculta",
"private": true,
"description": "Plataforma de autoconhecimento: astrologia, numerologia e tarô.",
"workspaces": [
"apps/*"
],
"engines": {
"node": ">=22"
},
"scripts": {
"dev": "npm run dev --workspace @astro-oculta/frontend",
"build": "npm run build --workspace @astro-oculta/frontend",
"start": "npm run start --workspace @astro-oculta/frontend",
"lint": "npm run lint --workspace @astro-oculta/frontend",
"typecheck": "npm run typecheck --workspace @astro-oculta/frontend",
"test": "npm run test --workspace @astro-oculta/frontend",
"verify": "npm run typecheck && npm run test && npm run lint",
"shots": "npm run shots --workspace @astro-oculta/frontend",
"compose": "docker compose -f infra/docker-compose.yml --env-file infra/.env --env-file infra/.env.local",
"compose:prod": "docker compose -f infra/docker-compose.yml --env-file infra/.env",
"compose:tunnel": "docker compose -f infra/docker-compose.yml --env-file infra/.env --env-file infra/.env.tunnel --profile tunnel",
"up": "npm run compose -- up -d --build",
"up:prod": "npm run compose:prod -- up -d --build",
"down": "npm run compose -- down",
"logs": "npm run compose -- logs -f",
"logs:prod": "npm run compose:prod -- logs -f",
"publish": "npm run compose:tunnel -- up -d --build",
"publish:down": "npm run compose:tunnel -- down",
"publish:logs": "npm run compose:tunnel -- logs -f tunnel"
},
"comments": {
"_": "A raiz não tem dependência própria: ela só delega. Cada app é dono das suas.",
"workspaces": "apps/* são aplicações. Mesma convenção do projeto AEGEA.",
"verify": "Roda todos os portões que funcionam sem rede.",
"compose": "infra/.env é o de PRODUÇÃO e está versionado. Os scripts sem sufixo somam infra/.env.local por cima (fora do Git, com SITE_ADDRESS=:80) — o último --env-file vence. No servidor esse arquivo não existe, e é por isso que lá se usa up:prod e logs:prod, que não o referenciam.",
"up": "Sobe app + Caddy. Copie infra/.env.local.example para infra/.env.local antes do primeiro uso.",
"publish": "Sobe app + Caddy + túnel Cloudflare, publicando em astrooculta.nerdresolve.com. Exige infra/.env.tunnel (fora do Git) com o TUNNEL_TOKEN. O túnel está sob perfil, então nenhum outro script o levanta por acidente."
}
}