X-Git-Url: https://git.immae.eu/?a=blobdiff_plain;f=scripts%2Fclient-report.sh;h=a758a211c22adb516d4a6afd41688a3e92940a20;hb=ae5a977451ee0fc14b24d61f55a8c2297d154f6a;hp=586cc2e47aa14390755e6596cebc6935f4055aad;hpb=24a8e782d8b2adb208d9cfb8659450395e2e2a77;p=github%2FChocobozzz%2FPeerTube.git diff --git a/scripts/client-report.sh b/scripts/client-report.sh index 586cc2e47..a758a211c 100755 --- a/scripts/client-report.sh +++ b/scripts/client-report.sh @@ -1,5 +1,9 @@ -#!/bin/bash +#!/bin/sh -cd client || exit -1 +set -eu -npm run webpack-bundle-analyzer ./dist/stats.json +gawk -i inplace 'BEGIN { found=0 } { if (found || $0 ~ /^{/) { found=1; print }}' ./client/dist/embed-stats.json + +npm run concurrently -- -k \ + "cd client && npm run webpack-bundle-analyzer -- -p 8888 ./dist/en_US/stats-es2015.json" \ + "cd client && npm run webpack-bundle-analyzer -- -p 8889 ./dist/embed-stats.json"