Keep our current build system for now
This commit is contained in:
parent
eb6cd2b12f
commit
2779f29a66
|
@ -76,11 +76,16 @@ if [ -z ${1+x} ] || [ "$1" != "--light" ]; then
|
||||||
# TODO: remove when the project will use runtime translations
|
# TODO: remove when the project will use runtime translations
|
||||||
pre_build_hook "$lang"
|
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
|
# If --localize is not used
|
||||||
mv "dist/$key" "dist/$lang"
|
mv "dist/build/$key" "dist/$lang"
|
||||||
fi
|
rmdir "dist/build"
|
||||||
|
|
||||||
|
# If --localize is used
|
||||||
|
# if [ ! "$lang" = "$key" ]; then
|
||||||
|
# mv "dist/$key" "dist/$lang"
|
||||||
|
# fi
|
||||||
|
|
||||||
# Do not duplicate assets
|
# Do not duplicate assets
|
||||||
rm -r "./dist/$lang/assets"
|
rm -r "./dist/$lang/assets"
|
||||||
|
|
Loading…
Reference in New Issue