Keep our current build system for now

pull/2460/head
Chocobozzz 2020-02-12 14:09:24 +01:00
parent eb6cd2b12f
commit 2779f29a66
No known key found for this signature in database
GPG Key ID: 583A612D890159BE
1 changed files with 9 additions and 4 deletions

View File

@ -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"