]> git.immae.eu Git - github/Chocobozzz/PeerTube.git/blobdiff - scripts/build/client.sh
update dependencies.md for macOSX (#3899)
[github/Chocobozzz/PeerTube.git] / scripts / build / client.sh
index 0e7925be5c29c9a153a647ae9b9948c8abf3f479..aec1386533a7cbeae135538f182cdf1e64c8448d 100755 (executable)
@@ -34,6 +34,7 @@ languages=(
     ["eo"]="eo"
     ["de"]="de-DE"
     ["it"]="it-IT"
+    ["sq"]="sq"
     ["kab"]="kab"
 )
 
@@ -43,7 +44,12 @@ rm -rf ./dist ./compiled
 
 # Don't build other languages if --light arg is provided
 if [ -z ${1+x} ] || ([ "$1" != "--light" ] && [ "$1" != "--analyze-bundle" ]); then
-    npm run ng build -- --prod --output-path "dist/build"
+    additionalParams=""
+    if [ ! -z ${1+x} ] && [ "$1" == "--source-map" ]; then
+        additionalParams="--sourceMap=true"
+    fi
+
+    npm run ng build -- --prod --output-path "dist/build" $additionalParams
 
     for key in "${!languages[@]}"; do
         lang=${languages[$key]}