From 66bb80ed9b7365942fa38732b9c40ea8ba1d37e7 Mon Sep 17 00:00:00 2001 From: Hironsan Date: Fri, 20 May 2022 14:56:48 +0900 Subject: [PATCH] Update create-package.sh --- tools/create-package.sh | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/tools/create-package.sh b/tools/create-package.sh index 99b5e96f..167dd57d 100755 --- a/tools/create-package.sh +++ b/tools/create-package.sh @@ -5,11 +5,20 @@ set -o nounset mkdir -p backend/client +# Build frontend cd frontend export PUBLIC_PATH="/static/_nuxt/" +yarn install yarn build cp -r dist ../backend/client/ +# Install backend dependencies and collect static files cd ../backend +poetry install poetry run task collectstatic + +# Build Python package +cd .. +sed -e "s/, from = \"..\"//g" backend/pyproject.toml > pyproject.toml poetry build +rm pyproject.toml