build_full_frontend.sh 954B

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162
  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. # create folder frontend/dist/app/ if no exists
  12. if [ ! -d "frontend/dist/app/" ]; then
  13. mkdir frontend/dist/app/
  14. fi
  15. # Tracim Lib
  16. (
  17. log "build frontend_lib"
  18. cd frontend_lib || exit
  19. npm run buildtracimlib$windoz
  20. )
  21. # app Html Document
  22. (
  23. cd frontend_app_html-document || exit
  24. ./build_html-document.sh
  25. )
  26. # app Thread
  27. (
  28. cd frontend_app_thread || exit
  29. ./build_thread.sh
  30. )
  31. # app Workspace
  32. (
  33. cd frontend_app_workspace || exit
  34. ./build_workspace.sh
  35. )
  36. # app Admin Workspace User
  37. (
  38. cd frontend_app_admin_workspace_user || exit
  39. ./build_admin_workspace_user.sh
  40. )
  41. # build Tracim
  42. (
  43. cd frontend || exit
  44. npm run build
  45. )
  46. log "-- frontend build successful."