install_frontend_dependencies.sh 1.0KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869
  1. #!/bin/bash
  2. # shellcheck disable=SC1091
  3. . bash_library.sh # source bash_library.sh
  4. # install Tracim Lib
  5. (
  6. log "cd frontend_lib"
  7. cd frontend_lib
  8. log "npm i"
  9. npm i
  10. log "sudo npm link"
  11. sudo npm link || exit
  12. )
  13. # install app Html Document
  14. (
  15. log "cd frontend_app_html-document"
  16. cd frontend_app_html-document
  17. log "npm i"
  18. npm i
  19. log "npm link tracim_frontend_lib"
  20. npm link tracim_frontend_lib
  21. )
  22. # install app Thread
  23. (
  24. log "cd frontend_app_thread"
  25. cd frontend_app_thread
  26. log "npm i"
  27. npm i
  28. log "npm link tracim_frontend_lib"
  29. npm link tracim_frontend_lib
  30. )
  31. # install app Workspace
  32. (
  33. log "cd frontend_app_workspace"
  34. cd frontend_app_workspace
  35. log "npm i"
  36. npm i
  37. log "npm link tracim_frontend_lib"
  38. npm link tracim_frontend_lib
  39. )
  40. # install app Admin Workspace User
  41. (
  42. log "cd frontend_app_admin_workspace_user"
  43. cd frontend_app_admin_workspace_user
  44. log "npm i"
  45. npm i
  46. log "npm link tracim_frontend_lib"
  47. npm link tracim_frontend_lib
  48. )
  49. # install Tracim Frontend
  50. (
  51. log "cd frontend"
  52. cd frontend
  53. log "npm i"
  54. npm i
  55. )