See #161: compile translations in dev and when publishing artifacts

This commit is contained in:
Eliot Berriot 2018-06-30 12:12:53 +02:00
parent 8926d93040
commit f5dbdd0701
No known key found for this signature in database
GPG Key ID: DD6965E2476E5C27
2 changed files with 3 additions and 3 deletions

View File

@ -22,6 +22,7 @@ review_front:
- cd front - cd front
script: script:
- yarn install - yarn install
- yarn run i18n-compile
# this is to ensure we don't have any errors in the output, # this is to ensure we don't have any errors in the output,
# cf https://code.eliotberriot.com/funkwhale/funkwhale/issues/169 # cf https://code.eliotberriot.com/funkwhale/funkwhale/issues/169
- INSTANCE_URL=$REVIEW_INSTANCE_URL yarn run build | tee /dev/stderr | (! grep -i 'ERROR in') - INSTANCE_URL=$REVIEW_INSTANCE_URL yarn run build | tee /dev/stderr | (! grep -i 'ERROR in')
@ -179,7 +180,6 @@ build_front:
script: script:
- yarn install - yarn install
- yarn run i18n-extract
- yarn run i18n-compile - yarn run i18n-compile
# this is to ensure we don't have any errors in the output, # this is to ensure we don't have any errors in the output,
# cf https://code.eliotberriot.com/funkwhale/funkwhale/issues/169 # cf https://code.eliotberriot.com/funkwhale/funkwhale/issues/169

View File

@ -5,8 +5,8 @@
"author": "Eliot Berriot <contact@eliotberriot.com>", "author": "Eliot Berriot <contact@eliotberriot.com>",
"private": true, "private": true,
"scripts": { "scripts": {
"dev": "node build/dev-server.js", "dev": "scripts/i18n-compile.sh && node build/dev-server.js",
"start": "node build/dev-server.js", "start": "scripts/i18n-compile.sh && node build/dev-server.js",
"build": "node build/build.js", "build": "node build/build.js",
"i18n-extract": "scripts/i18n-extract.sh", "i18n-extract": "scripts/i18n-extract.sh",
"i18n-compile": "scripts/i18n-compile.sh", "i18n-compile": "scripts/i18n-compile.sh",