From 2c1bd86bfc896e85e475c1b916c138a95392ebcc Mon Sep 17 00:00:00 2001 From: Tyler Hudson Date: Sun, 20 Oct 2024 10:41:49 -0400 Subject: [PATCH] Work in progress changes for hot-reloading --- client-admin/package.json | 1 + docker-compose.dev.yml | 3 +++ file-server/Dockerfile | 2 +- 3 files changed, 5 insertions(+), 1 deletion(-) diff --git a/client-admin/package.json b/client-admin/package.json index 697401062..2275e43e1 100644 --- a/client-admin/package.json +++ b/client-admin/package.json @@ -4,6 +4,7 @@ "repository": "github:pol-is/polisClientAdmin", "description": "Polis Admin Console", "scripts": { + "build:watch": "webpack --mode=development --watch", "build:dev": "webpack --mode=development", "build:prod": "webpack --mode=production", "analyze": "webpack --mode=production --analyze", diff --git a/docker-compose.dev.yml b/docker-compose.dev.yml index 0aa471343..96848c25e 100644 --- a/docker-compose.dev.yml +++ b/docker-compose.dev.yml @@ -43,6 +43,9 @@ services: NODE_ENV: development ports: - ${STATIC_FILES_PORT:-8080}:${STATIC_FILES_PORT:-8080} + volumes: + - ./client-report:/app/client-report + - ./client-admin:/app/client-admin maildev: image: docker.io/maildev/maildev:1.1.1 diff --git a/file-server/Dockerfile b/file-server/Dockerfile index dbc2cbfad..4b9722c85 100644 --- a/file-server/Dockerfile +++ b/file-server/Dockerfile @@ -24,7 +24,7 @@ RUN npm ci --production=false COPY client-admin/. . -RUN npm run build:prod +RUN mkdir -p /app/build