mirror of
https://github.com/rommapp/romm.git
synced 2026-02-18 23:42:07 +01:00
43 lines
1.1 KiB
JSON
43 lines
1.1 KiB
JSON
{
|
|
"version": "2.0.0",
|
|
"tasks": [
|
|
{
|
|
"label": "Launch frontend",
|
|
"type": "npm",
|
|
"path": "frontend",
|
|
"script": "dev",
|
|
"problemMatcher": []
|
|
},
|
|
{
|
|
"label": "Launch backend",
|
|
"type": "shell",
|
|
"command": "cd backend && uv run python3 main.py",
|
|
"problemMatcher": []
|
|
},
|
|
{
|
|
"label": "Execute tests",
|
|
"type": "shell",
|
|
"command": "cd backend && uv run pytest -vv",
|
|
"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 romm-db-dev mariadb -u root -p$DB_ROOT_PASSWD < backend/romm_test/setup.sql",
|
|
"problemMatcher": []
|
|
},
|
|
{
|
|
"label": "Launch full stack",
|
|
"dependsOn": ["Launch frontend", "Launch backend"],
|
|
"problemMatcher": [],
|
|
"dependsOrder": "parallel"
|
|
}
|
|
]
|
|
}
|