mirror of https://github.com/doccano/doccano.git
pythondatasetsactive-learningtext-annotationdatasetnatural-language-processingdata-labelingmachine-learningannotation-tool
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
24 lines
443 B
#!/usr/bin/env bash
|
|
|
|
set -o errexit
|
|
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
|