]> git.immae.eu Git - github/Chocobozzz/PeerTube.git/blobdiff - scripts/client-report.sh
Don't not autoplay live without autoplay setting
[github/Chocobozzz/PeerTube.git] / scripts / client-report.sh
index 586cc2e47aa14390755e6596cebc6935f4055aad..f71aa48ed7ba98e2f404b0165ab38fb6dce486e2 100755 (executable)
@@ -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/standalone/videos/embed-stats.json
+
+npm run concurrently -- -k \
+    "cd client && npm run webpack-bundle-analyzer -- -p 8888 ./dist/en-US/stats.json" \
+    "cd client && npm run webpack-bundle-analyzer -- -p 8889 ./dist/standalone/videos/embed-stats.json"