You can not select more than 25 topics Topics must start with a chinese character,a letter or number, can include dashes ('-') and can be up to 35 characters long.

build-node.sh 420 B

12345678910111213141516171819202122232425
  1. #!/bin/bash
  2. baseDir="/home/somuns/ci4s"
  3. cd ${baseDir}/react-ui
  4. npm config set registry https://registry.npmmirror.com/
  5. npm config set proxy http://172.20.32.253:3128
  6. npm config set https-proxy http://172.20.32.253:3128
  7. npm install --force
  8. if [ $? -ne 0 ]; then
  9. echo "Failed to install npm depend package"
  10. exit 1
  11. fi
  12. npm run build
  13. if [ $? -ne 0 ]; then
  14. echo "Failed to build react-ui"
  15. exit 1
  16. fi