build_full_frontend.sh 836B

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657
  1. #!/bin/bash
  2. # shellcheck disable=SC1091
  3. . bash_library.sh # source bash_library.sh
  4. windoz=""
  5. if [[ $1 = "-w" ]]; then
  6. windoz="windoz"
  7. fi
  8. echo -e "\n${BROWN}/!\ ${NC}this script does not run 'npm install'\n${BROWN}/!\ ${NC}"
  9. # get the new sources
  10. git pull origin develop
  11. # Tracim Lib
  12. (
  13. log "build frontend_lib"
  14. cd frontend_lib || exit
  15. npm run buildtracimlib$windoz
  16. )
  17. # app Html Document
  18. (
  19. cd frontend_app_html-document || exit
  20. ./build_html-document.sh
  21. )
  22. # app Thread
  23. (
  24. cd frontend_app_thread || exit
  25. ./build_thread.sh
  26. )
  27. # app Workspace
  28. (
  29. cd frontend_app_workspace || exit
  30. ./build_workspace.sh
  31. )
  32. # app Admin Workspace User
  33. (
  34. cd frontend_app_admin_workspace_user || exit
  35. ./build_admin_workspace_user.sh
  36. )
  37. # build Tracim
  38. (
  39. cd frontend || exit
  40. npm run build
  41. )
  42. log "-- frontend build successful."