rebuild_full_frontend.sh 666B

1234567891011121314151617181920212223242526272829
  1. #!/bin/bash
  2. windoz=""
  3. if [[ $1 = "-w" ]]; then
  4. windoz="windoz"
  5. fi
  6. BROWN='\033[0;33m'
  7. NC='\033[0m' # No Color
  8. function log {
  9. echo -e "\n${BROWN}>> $ $1${NC}\n"
  10. }
  11. echo -e "\n${BROWN}/!\ ${NC}this script does not run 'npm install'\n${BROWN}/!\ ${NC}it also assumes your webpack dev server of frontend is running"
  12. log "cd frontend_lib"
  13. cd frontend_lib
  14. log "npm run buildtracimlib$windoz"
  15. npm run buildtracimlib$windoz
  16. cd -
  17. log "cd frontend_app_html-document"
  18. cd frontend_app_html-document
  19. log "npm run build$windoz # for frontend_app_html-document"
  20. npm run build$windoz
  21. log "cp dist/html-document.app.js"
  22. cp dist/html-document.app.js ../frontend/dist/app