github.com/thanos-io/thanos@v0.32.5/scripts/build-react-app.sh (about)

     1  #!/usr/bin/env bash
     2  #
     3  # Build React web UI.
     4  # Run from repository root.
     5  set -e
     6  set -u
     7  
     8  if ! [[ "scripts/build-react-app.sh" =~ $0 ]]; then
     9    echo "must be run from repository root"
    10    exit 255
    11  fi
    12  
    13  cd pkg/ui/react-app
    14  
    15  PUBLIC_URL=. npm run build
    16  rm -rf ../static/react
    17  mkdir -p ../static
    18  mv build ../static/react