build_html-document.sh 551B

12345678910111213141516171819
  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. log "build frontend_app_html-document"
  9. npm run build$windoz
  10. log "copying built file to frontend/"
  11. cp dist/html-document.app.js ../frontend/dist/app
  12. log "copying en translation.json"
  13. cp i18next.scanner/en/translation.json ../frontend/dist/app/html-document_en_translation.json
  14. log "copying fr translation.json"
  15. cp i18next.scanner/fr/translation.json ../frontend/dist/app/html-document_fr_translation.json