mirror of
https://github.com/rommapp/romm.git
synced 2026-11-29 18:11:16 +01:00
Poetry 1.8.0 already includes support for `package-mode = false`, so there's no need to install a Poetry fork anymore.
42 lines
964 B
JSON
42 lines
964 B
JSON
{
|
|
"tasks": [
|
|
{
|
|
"label": "Launch frontend",
|
|
"type": "npm",
|
|
"path": "frontend",
|
|
"script": "dev",
|
|
"problemMatcher": []
|
|
},
|
|
{
|
|
"label": "Launch backend",
|
|
"type": "shell",
|
|
"command": "cd backend && poetry run python3 main.py",
|
|
"problemMatcher": []
|
|
},
|
|
{
|
|
"label": "Launch worker",
|
|
"type": "shell",
|
|
"command": "cd backend && poetry run python3 worker.py",
|
|
"problemMatcher": []
|
|
},
|
|
{
|
|
"label": "Execute tests",
|
|
"type": "shell",
|
|
"command": "cd backend && poetry run pytest -vv -c ../pytest.ini",
|
|
"problemMatcher": []
|
|
},
|
|
{
|
|
"label": "Setup development environment",
|
|
"type": "shell",
|
|
"command": "docker compose up -d",
|
|
"problemMatcher": []
|
|
},
|
|
{
|
|
"label": "Setup testing environment",
|
|
"type": "shell",
|
|
"command": "export $(cat .env | grep DB_ROOT_PASSWD | xargs) && docker exec -i mariadb mariadb -u root -p$DB_ROOT_PASSWD < backend/romm_test/setup.sql",
|
|
"problemMatcher": []
|
|
}
|
|
]
|
|
}
|