-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathpackage.json
More file actions
executable file
·156 lines (156 loc) · 5.75 KB
/
package.json
File metadata and controls
executable file
·156 lines (156 loc) · 5.75 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
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
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
{
"name": "codebuilder",
"version": "0.1.0",
"private": true,
"dependencies": {
"@brakebein/prisma-generator-nestjs-dto": "^1.29.0",
"@fortawesome/fontawesome-svg-core": "^7.1.0",
"@fortawesome/free-brands-svg-icons": "^7.1.0",
"@fortawesome/free-regular-svg-icons": "^7.1.0",
"@fortawesome/free-solid-svg-icons": "^7.1.0",
"@fortawesome/react-fontawesome": "^3.1.1",
"@prisma/adapter-pg": "^7.3.0",
"@prisma/client": "7.2.0",
"@prisma/extension-accelerate": "^3.0.1",
"@socialgouv/matomo-next": "^1.11.0",
"@tailwindcss/forms": "^0.5.11",
"@tailwindcss/typography": "^0.5.19",
"animate.css": "^4.1.1",
"axios": "^1.13.2",
"classnames": "^2.5.1",
"clsx": "^2.1.1",
"dotenv": "^17.2.3",
"firebase-admin": "^13.6.0",
"framer-motion": "^12.29.0",
"gsap": "^3.14.2",
"motion": "^12.29.0",
"next": "16.1.3",
"next-nprogress-bar": "^2.4.7",
"next-transition-router": "^0.2.11",
"prisma-dbml-generator": "^0.12.0",
"prop-types": "^15.8.1",
"react": "^19.2.3",
"react-dom": "^19.2.3",
"react-intersection-observer": "^10.0.2",
"react-microsoft-clarity": "^2.0.0",
"snoostorm": "^1.5.2",
"snoowrap": "^1.23.0",
"styled-components": "^6.3.8",
"swiper": "^12.0.3",
"tailwind-merge": "^3.4.0",
"tailwindcss-animate": "^1.0.7",
"web-push": "^3.6.7"
},
"devDependencies": {
"@tailwindcss/postcss": "^4.1.18",
"@types/node": "^25.0.10",
"@types/react": "npm:types-react@19.0.0-rc.1",
"@types/react-dom": "npm:types-react-dom@19.0.0-rc.1",
"@types/web-push": "^3.6.4",
"autoprefixer": "^10.4.23",
"bufferutil": "^4.1.0",
"dotenv-cli": "^11.0.0",
"eslint": "latest",
"eslint-config-next": "^16.1.4",
"postcss": "^8.5.6",
"prettier": "^3.8.1",
"prettier-plugin-tailwindcss": "^0.7.2",
"prisma": "7.2.0",
"tailwindcss": "^4.1.18",
"typescript": "^5.9.3",
"utf-8-validate": "^6.0.6"
},
"overrides": {
"@types/react": "npm:types-react@19.0.0-rc.1",
"@types/react-dom": "npm:types-react-dom@19.0.0-rc.1"
},
"packageManager": "pnpm@10.28.1",
"nx": {},
"pnpm": {
"onlyBuiltDependencies": [
"@firebase/util",
"@prisma/client",
"@prisma/engines",
"esbuild",
"prisma",
"protobufjs",
"sharp"
]
},
"scripts": {
"_1": "_____CORE DEVELOPMENT COMMANDS_____",
"dev": "next dev --turbopack",
"build": "next build",
"build:static": "next build && next export",
"start": "next start",
"lint": "next lint",
"_2": "_____LOCAL DATABASE & PRISMA_____",
"dev:db:start": "docker compose -p codebuilder -f docker-compose.local.yml up -d",
"dev:db:stop": "docker compose -p codebuilder -f docker-compose.local.yml down",
"dev:db:prepare": "docker exec codebuilder-postgres-db psql -U codebuilder -d postgres -c \"CREATE DATABASE codebuilder_main_shadow;\" || true",
"prisma:migrate": "dotenv -e .env -- npx prisma migrate dev",
"prisma:generate": "dotenv -e .env -- npx prisma generate",
"prisma:studio": "dotenv -e .env -- npx prisma studio",
"_3": "_____MANUAL DOCKER MGMT (for the main docker-compose.yml on your server)_____",
"prod:up": "docker rm -f codebuilder-frontend >/dev/null 2>&1 || true && docker compose -p codebuilder -f docker-compose.yml up -d --build --force-recreate --pull=never",
"prod:down": "docker compose -p codebuilder -f docker-compose.yml down",
"prod:logs": "docker compose -p codebuilder -f docker-compose.yml logs -f frontend",
"docker:ps": "docker compose -p codebuilder -f docker-compose.yml ps",
"_4": "_____DANGEROUS_____",
"prod:reset": "docker compose -p codebuilder -f docker-compose.yml down --volumes && docker compose -p codebuilder -f docker-compose.yml up --build -d"
},
"scriptsComments": {
"dev": [
"Starts Next.js dev server (Turbopack). Loads env from .env.local first, then .env."
],
"build": [
"Production build (Next.js)."
],
"build:static": [
"Builds then exports static HTML (only if your app supports export mode)."
],
"start": [
"Runs the production server using the built .next output."
],
"lint": [
"Runs Next.js/ESLint linting."
],
"dev:db:start": [
"Starts ONLY the local Postgres container using docker-compose.local.yml."
],
"dev:db:stop": [
"Stops the local Postgres container started by dev:db:start."
],
"dev:db:prepare": [
"Creates the Prisma shadow DB inside the running Postgres container (safe if it already exists)."
],
"prisma:migrate": [
"Runs Prisma migrations in DEV mode (creates/updates migrations). Uses .env."
],
"prisma:generate": [
"Regenerates Prisma client."
],
"prisma:studio": [
"Opens Prisma Studio UI."
],
"prod:up": [
"Rebuilds and (re)deploys the full Docker stack (frontend + db).",
"- This is the main command to update the frontend image + container.",
"- Uses --pull=never to avoid trying Docker Hub for local-only image tags.",
"- Uses COMPOSE_IGNORE_ORPHANS=1 to avoid warnings when other repos use the same project name. //COMPOSE_IGNORE_ORPHANS=1"
],
"prod:down": [
"Stops/removes the FULL stack containers/networks (does not delete external volumes unless you pass --volumes). //COMPOSE_IGNORE_ORPHANS=1"
],
"prod:logs": [
"Tails logs for the frontend service in the prod stack. //COMPOSE_IGNORE_ORPHANS=1"
],
"docker:ps": [
"docker:ps: Show containers for the shared 'codebuilder' compose project."
],
"prod:reset": [
"DANGEROUS: Wipes the ENTIRE database. Use with extreme caution.",
"Stops the stack, removes volumes, then rebuilds and starts everything fresh. //COMPOSE_IGNORE_ORPHANS=1"
]
}
}