aboutsummaryrefslogtreecommitdiffhomepage
path: root/scripts/build/client.sh
diff options
context:
space:
mode:
Diffstat (limited to 'scripts/build/client.sh')
-rwxr-xr-xscripts/build/client.sh16
1 files changed, 15 insertions, 1 deletions
diff --git a/scripts/build/client.sh b/scripts/build/client.sh
index 305af1e5f..61ba4ea99 100755
--- a/scripts/build/client.sh
+++ b/scripts/build/client.sh
@@ -6,5 +6,19 @@ cd client
6 6
7rm -rf ./dist ./compiled 7rm -rf ./dist ./compiled
8 8
9npm run ng build -- --prod --stats-json 9defaultLanguage="en-US"
10npm run ng build -- --output-path "dist/$defaultLanguage/" --deploy-url "/client/$defaultLanguage/" --prod --stats-json
11mv "./dist/$defaultLanguage/assets" "./dist"
12
13languages="fr"
14
15for lang in "$languages"; do
16 npm run ng build -- --prod --i18n-file "./src/locale/target/messages_$lang.xml" --i18n-format xlf --i18n-locale "$lang" \
17 --output-path "dist/$lang/" --deploy-url "/client/$lang/"
18
19 # Do no duplicate assets
20 rm -r "./dist/$lang/assets"
21done
22
10NODE_ENV=production npm run webpack -- --config webpack/webpack.video-embed.js --mode production 23NODE_ENV=production npm run webpack -- --config webpack/webpack.video-embed.js --mode production
24