build_workspace.sh 507B

123456789101112131415161718
  1. #!/bin/bash
  2. . ../bash_library.sh # source bash_library.sh
  3. windoz=""
  4. if [[ $1 = "-w" ]]; then
  5. windoz="windoz"
  6. fi
  7. log "build frontend_app_workspace"
  8. npm run build$windoz
  9. log "copying built file to frontend/"
  10. cp dist/workspace.app.js ../frontend/dist/app
  11. log "copying en translation.json"
  12. cp i18next.scanner/en/translation.json ../frontend/dist/app/workspace_en_translation.json
  13. log "copying fr translation.json"
  14. cp i18next.scanner/fr/translation.json ../frontend/dist/app/workspace_fr_translation.json