From 194df6369d320065f834f2fed609680127c01725 Mon Sep 17 00:00:00 2001 From: Chris Wilkinson Date: Mon, 22 Jul 2024 15:09:06 +0100 Subject: [PATCH] Require the assets locales to be built Note the results are unused. Refs #1817 --- Dockerfile | 1 + package.json | 4 ++-- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/Dockerfile b/Dockerfile index 0b7063c99..1db6ee640 100644 --- a/Dockerfile +++ b/Dockerfile @@ -61,6 +61,7 @@ COPY tsconfig.build.json \ ./ COPY src/ src/ COPY assets/ assets/ +COPY --from=build-intlc /app/assets/locales/ assets/locales/ COPY --from=build-intlc /app/src/locales/ src/locales/ RUN npx run-p build:assets build:app diff --git a/package.json b/package.json index bfd7bd452..d8799f6c9 100644 --- a/package.json +++ b/package.json @@ -158,7 +158,7 @@ "prebuild": "del assets/locales dist src/locales src/manifest.json", "build": "run-p build:*", "build:app": "wait-on src/locales src/manifest.json && tsc --project tsconfig.build.json", - "build:assets": "webpack build --mode production", + "build:assets": "wait-on assets/locales && webpack build --mode production", "build:translations": "scripts/intlc.sh", "format": "prettier --ignore-unknown --check '**'", "format:fix": "npm run format -- --write", @@ -167,7 +167,7 @@ "lint:ts": "eslint . --max-warnings 0", "start": "run-p start:*", "start:app": "wait-on src/locales src/manifest.json && tsx watch --clear-screen=false --require dotenv/config src/index.ts", - "start:assets": "webpack watch --mode development", + "start:assets": "wait-on assets/locales && webpack watch --mode development", "start:translations": "nodemon --watch locales --exec \"npm run build:translations\"", "test": "jest", "test:integration": "docker run --rm --volume \"$(pwd)\"/integration/snapshots:/app/integration/snapshots --volume \"$(pwd)\"/integration-results:/app/integration-results",