]> git.immae.eu Git - github/Chocobozzz/PeerTube.git/blobdiff - scripts/client-report.sh
improve likes-dislikes bar usability
[github/Chocobozzz/PeerTube.git] / scripts / client-report.sh
index 4dd4b418b5d43dcc3a43ed7664d8921309844114..a758a211c22adb516d4a6afd41688a3e92940a20 100755 (executable)
@@ -2,6 +2,8 @@
 
 set -eu
 
-cd client
+gawk -i inplace 'BEGIN { found=0 } { if (found || $0 ~ /^{/) { found=1; print }}' ./client/dist/embed-stats.json
 
-npm run webpack-bundle-analyzer ./dist/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"