From 2779f29a66df9ad6fb162cfc9563e98fd137e223 Mon Sep 17 00:00:00 2001 From: Chocobozzz Date: Wed, 12 Feb 2020 14:09:24 +0100 Subject: Keep our current build system for now --- scripts/build/client.sh | 13 +++++++++---- 1 file changed, 9 insertions(+), 4 deletions(-) (limited to 'scripts/build') diff --git a/scripts/build/client.sh b/scripts/build/client.sh index aa3f89c03..912401faf 100755 --- a/scripts/build/client.sh +++ b/scripts/build/client.sh @@ -76,11 +76,16 @@ if [ -z ${1+x} ] || [ "$1" != "--light" ]; then # TODO: remove when the project will use runtime translations pre_build_hook "$lang" - npm run ng build -- --prod --configuration="$lang" + npm run ng build -- --prod --configuration="$lang" --output-path "dist/build" - if [ ! "$lang" = "$key" ]; then - mv "dist/$key" "dist/$lang" - fi + # If --localize is not used + mv "dist/build/$key" "dist/$lang" + rmdir "dist/build" + + # If --localize is used + # if [ ! "$lang" = "$key" ]; then + # mv "dist/$key" "dist/$lang" + # fi # Do not duplicate assets rm -r "./dist/$lang/assets" -- cgit v1.2.3