build_html-document.sh 661B

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/html-document.app.js ../frontend/dist/app"
  10. cp dist/html-document.app.js ../frontend/dist/app
  11. log "cp i18next.scanner/en/translation.json ../frontend/dist/app/html-document_en_translation.json"
  12. cp i18next.scanner/en/translation.json ../frontend/dist/app/html-document_en_translation.json
  13. log "cp i18next.scanner/fr/translation.json ../frontend/dist/app/html-document_fr_translation.json"
  14. cp i18next.scanner/fr/translation.json ../frontend/dist/app/html-document_fr_translation.json