build_workspace.sh 637B

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 "npm run build$windoz"
  8. npm run build$windoz
  9. log "cp dist/workspace.app.js ../frontend/dist/app"
  10. cp dist/workspace.app.js ../frontend/dist/app
  11. log "cp i18next.scanner/en/translation.json ../frontend/dist/app/workspace_en_translation.json"
  12. cp i18next.scanner/en/translation.json ../frontend/dist/app/workspace_en_translation.json
  13. log "cp i18next.scanner/fr/translation.json ../frontend/dist/app/workspace_fr_translation.json"
  14. cp i18next.scanner/fr/translation.json ../frontend/dist/app/workspace_fr_translation.json