aboutsummaryrefslogblamecommitdiffhomepage
path: root/scripts/client-report.sh
blob: a758a211c22adb516d4a6afd41688a3e92940a20 (plain) (tree)
1
2
3
4
5
6
7
8
9
         
 
       
                                                                                                                
 
                            
                                                                                              
#!/bin/sh

set -eu

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"