You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

24 lines
443 B

  1. #!/usr/bin/env bash
  2. set -o errexit
  3. set -o nounset
  4. mkdir -p backend/client
  5. # Build frontend
  6. cd frontend
  7. export PUBLIC_PATH="/static/_nuxt/"
  8. yarn install
  9. yarn build
  10. cp -r dist ../backend/client/
  11. # Install backend dependencies and collect static files
  12. cd ../backend
  13. poetry install
  14. poetry run task collectstatic
  15. # Build Python package
  16. cd ..
  17. sed -e "s/, from = \"..\"//g" backend/pyproject.toml > pyproject.toml
  18. poetry build
  19. rm pyproject.toml