From f5dbdd0701a9fe43ff666a9b300489cc5744fba0 Mon Sep 17 00:00:00 2001 From: Eliot Berriot <contact@eliotberriot.com> Date: Sat, 30 Jun 2018 12:12:53 +0200 Subject: [PATCH] See #161: compile translations in dev and when publishing artifacts --- .gitlab-ci.yml | 2 +- front/package.json | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index 3165213e27..85abf69d2f 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -22,6 +22,7 @@ review_front: - cd front script: - yarn install + - yarn run i18n-compile # this is to ensure we don't have any errors in the output, # cf https://code.eliotberriot.com/funkwhale/funkwhale/issues/169 - INSTANCE_URL=$REVIEW_INSTANCE_URL yarn run build | tee /dev/stderr | (! grep -i 'ERROR in') @@ -179,7 +180,6 @@ build_front: script: - yarn install - - yarn run i18n-extract - yarn run i18n-compile # this is to ensure we don't have any errors in the output, # cf https://code.eliotberriot.com/funkwhale/funkwhale/issues/169 diff --git a/front/package.json b/front/package.json index 8ffbcf729e..8c47ecff8d 100644 --- a/front/package.json +++ b/front/package.json @@ -5,8 +5,8 @@ "author": "Eliot Berriot <contact@eliotberriot.com>", "private": true, "scripts": { - "dev": "node build/dev-server.js", - "start": "node build/dev-server.js", + "dev": "scripts/i18n-compile.sh && node build/dev-server.js", + "start": "scripts/i18n-compile.sh && node build/dev-server.js", "build": "node build/build.js", "i18n-extract": "scripts/i18n-extract.sh", "i18n-compile": "scripts/i18n-compile.sh", -- GitLab