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 329 B

1234567891011121314151617181920212223
  1. #!/bin/bash
  2. baseDir="/data/code/manage-platform"
  3. cd ${baseDir}/react-ui
  4. npm config set registry https://registry.npmmirror.com/
  5. npm install --force
  6. if [ $? -ne 0 ]; then
  7. echo "Failed to install npm depend package"
  8. exit 1
  9. fi
  10. npm run build
  11. if [ $? -ne 0 ]; then
  12. echo "Failed to build react-ui"
  13. exit 1
  14. fi