build_full_frontend.sh 907B

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