build_full_frontend.sh 793B

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748
  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}it also assumes your webpack dev server of frontend is running"
  9. # Tracim Lib
  10. (
  11. log "build frontend_lib"
  12. cd frontend_lib || exit
  13. npm run buildtracimlib$windoz
  14. )
  15. # app Html Document
  16. (
  17. cd frontend_app_html-document || exit
  18. ./build_html-document.sh
  19. )
  20. # app Thread
  21. (
  22. cd frontend_app_thread || exit
  23. ./build_thread.sh
  24. )
  25. # app Workspace
  26. (
  27. cd frontend_app_workspace || exit
  28. ./build_workspace.sh
  29. )
  30. # app Admin Workspace User
  31. (
  32. cd frontend_app_admin_workspace_user || exit
  33. ./build_admin_workspace_user.sh
  34. )
  35. log "-- frontend build successful."