aboutsummaryrefslogtreecommitdiffhomepage
path: root/scripts/build
diff options
context:
space:
mode:
authorChocobozzz <me@florianbigard.com>2020-02-12 14:09:24 +0100
committerChocobozzz <me@florianbigard.com>2020-02-12 14:09:55 +0100
commit2779f29a66df9ad6fb162cfc9563e98fd137e223 (patch)
tree38742151f7a6174aa3da5e380924a9f3006b8e0d /scripts/build
parenteb6cd2b12f14c26995d43a9fefc0d82d2a89bf24 (diff)
downloadPeerTube-2779f29a66df9ad6fb162cfc9563e98fd137e223.tar.gz
PeerTube-2779f29a66df9ad6fb162cfc9563e98fd137e223.tar.zst
PeerTube-2779f29a66df9ad6fb162cfc9563e98fd137e223.zip
Keep our current build system for now
Diffstat (limited to 'scripts/build')
-rwxr-xr-xscripts/build/client.sh13
1 files changed, 9 insertions, 4 deletions
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
76 # TODO: remove when the project will use runtime translations 76 # TODO: remove when the project will use runtime translations
77 pre_build_hook "$lang" 77 pre_build_hook "$lang"
78 78
79 npm run ng build -- --prod --configuration="$lang" 79 npm run ng build -- --prod --configuration="$lang" --output-path "dist/build"
80 80
81 if [ ! "$lang" = "$key" ]; then 81 # If --localize is not used
82 mv "dist/$key" "dist/$lang" 82 mv "dist/build/$key" "dist/$lang"
83 fi 83 rmdir "dist/build"
84
85 # If --localize is used
86 # if [ ! "$lang" = "$key" ]; then
87 # mv "dist/$key" "dist/$lang"
88 # fi
84 89
85 # Do not duplicate assets 90 # Do not duplicate assets
86 rm -r "./dist/$lang/assets" 91 rm -r "./dist/$lang/assets"