refactor: fold shared ui/server packages into the cloud app
Le depot ne contient plus qu'une seule application : plus de paquets
@cohaise/ui ni @cohaise/server.
- backend/shared/src -> backend/cloud/src/lib (socle serveur inline)
- frontend/shared/src -> frontend/cloud/src/{ui,styles,fonts}
- imports @cohaise/server / @cohaise/ui remplaces par des chemins relatifs
- package.json, tsconfig, Dockerfiles et docker-compose sans workspace partage
- docs (README, architecture, standards, workflow, agents, api, security,
deployment, docker) alignes sur la structure autonome
This commit is contained in:
@@ -10,7 +10,6 @@ COPY package.json package-lock.json tsconfig.json tsconfig.base.json ./
|
||||
COPY backend ./backend
|
||||
|
||||
RUN --mount=type=cache,target=/root/.npm npm ci
|
||||
RUN npm run build --workspace=backend/shared
|
||||
RUN npm run build --workspace=${APP_DIR}
|
||||
|
||||
# On ne embarque pas les devDependencies dans l'image de production.
|
||||
@@ -27,9 +26,6 @@ WORKDIR /repo
|
||||
COPY --from=builder /repo/package.json ./package.json
|
||||
COPY --from=builder /repo/package-lock.json ./package-lock.json
|
||||
COPY --from=builder /repo/node_modules ./node_modules
|
||||
# backend/shared est le paquet @cohaise/server : les liens de workspace
|
||||
# de node_modules pointent dessus, il doit donc voyager avec l'application.
|
||||
COPY --from=builder /repo/backend/shared ./backend/shared
|
||||
COPY --from=builder /repo/${APP_DIR} ./${APP_DIR}
|
||||
|
||||
WORKDIR /repo/${APP_DIR}
|
||||
|
||||
Reference in New Issue
Block a user