Skip to content

Commit

Permalink
Require the assets locales to be built
Browse files Browse the repository at this point in the history
Note the results are unused.

Refs #1817
  • Loading branch information
thewilkybarkid committed Jul 22, 2024
1 parent 83dfa8f commit 194df63
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
1 change: 1 addition & 0 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
4 changes: 2 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -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",
Expand All @@ -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",
Expand Down

0 comments on commit 194df63

Please sign in to comment.