X-Git-Url: https://git.immae.eu/?a=blobdiff_plain;f=scripts%2Fbuild%2Fclient.sh;h=e891b217ccef72a2601a9200d2aa179ca32997a4;hb=33a53638c2b7a41a4e39558582f604d3036d4fa3;hp=fd072b18c667437d0c35733fe6d0e232d1499745;hpb=29f148a61381727a432c22a71c7a2b7cc23d9c9e;p=github%2FChocobozzz%2FPeerTube.git diff --git a/scripts/build/client.sh b/scripts/build/client.sh index fd072b18c..e891b217c 100755 --- a/scripts/build/client.sh +++ b/scripts/build/client.sh @@ -34,12 +34,13 @@ languages=( ["eo"]="eo" ["de"]="de-DE" ["it"]="it-IT" + ["sq"]="sq" ["kab"]="kab" ) cd client -rm -rf ./dist ./compiled +rm -rf ./dist # Don't build other languages if --light arg is provided if [ -z ${1+x} ] || ([ "$1" != "--light" ] && [ "$1" != "--analyze-bundle" ]); then @@ -48,7 +49,7 @@ if [ -z ${1+x} ] || ([ "$1" != "--light" ] && [ "$1" != "--analyze-bundle" ]); t additionalParams="--sourceMap=true" fi - npm run ng build -- --prod --output-path "dist/build" $additionalParams + node --max_old_space_size=8192 node_modules/.bin/ng build --configuration production --output-path "dist/build" $additionalParams for key in "${!languages[@]}"; do lang=${languages[$key]} @@ -68,10 +69,13 @@ else additionalParams="" if [ ! -z ${1+x} ] && [ "$1" == "--analyze-bundle" ]; then additionalParams="--namedChunks=true --outputHashing=none" + + # For webpack export ANALYZE_BUNDLE=true fi - npm run ng build -- --localize=false --output-path "dist/$defaultLanguage/" --deploy-url "/client/$defaultLanguage/" --prod --stats-json $additionalParams + node --max_old_space_size=8192 node_modules/.bin/ng build --localize=false --output-path "dist/$defaultLanguage/" \ + --deploy-url "/client/$defaultLanguage/" --configuration production --stats-json $additionalParams fi cp "./dist/$defaultLanguage/manifest.webmanifest" "./dist/manifest.webmanifest"