rebuild_full_frontend.sh 812B

1234567891011121314151617181920212223242526272829303132
  1. #!/bin/bash
  2. . bash_library.sh # source bash_library.sh
  3. windoz=""
  4. if [[ $1 = "-w" ]]; then
  5. windoz="windoz"
  6. fi
  7. 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"
  8. log "cd frontend_lib"
  9. cd frontend_lib
  10. log "npm run buildtracimlib$windoz"
  11. npm run buildtracimlib$windoz
  12. cd -
  13. log "cd frontend_app_html-document"
  14. cd frontend_app_html-document
  15. log "npm run build$windoz # for frontend_app_html-document"
  16. npm run build$windoz
  17. log "cp dist/html-document.app.js"
  18. cp dist/html-document.app.js ../frontend/dist/app
  19. cd -
  20. log "cd frontend_app_thread"
  21. cd frontend_app_thread
  22. log "npm run build$windoz # for frontend_app_thread"
  23. npm run build$windoz
  24. log "cp dist/thread.app.js"
  25. cp dist/thread.app.js ../frontend/dist/app