From 0c93b950c6492de9dfa812eabc4769fcf74fc435 Mon Sep 17 00:00:00 2001 From: Davide Passoni Date: Tue, 28 May 2024 10:20:50 +0200 Subject: [PATCH] Updated launch tasks for auto installation --- frontend/react/.vscode/tasks.json | 27 +++++++++++++++++++++++++-- frontend/setup.bat | 4 +--- 2 files changed, 26 insertions(+), 5 deletions(-) diff --git a/frontend/react/.vscode/tasks.json b/frontend/react/.vscode/tasks.json index f3be330a..586890ef 100644 --- a/frontend/react/.vscode/tasks.json +++ b/frontend/react/.vscode/tasks.json @@ -1,13 +1,36 @@ { "version": "2.0.0", "tasks": [ + { + "label": "check-setup", + "type": "shell", + "command": "cd .. ; ./check_setup.bat", + "isBackground": false + }, { "type": "npm", "script": "dev", - "problemMatcher": [], + "problemMatcher": [ + { + "pattern": [ + { + "regexp": ".*", + "file": 1, + "location": 2, + "message": 3 + } + ], + "background": { + "activeOnStart": true, + "beginsPattern": ".*", + "endsPattern": ".*", + } + } + ], "label": "npm: dev", "detail": "vite --port=8080", - "isBackground": true + "isBackground": true, + "dependsOn": ["check-setup"] } ] } \ No newline at end of file diff --git a/frontend/setup.bat b/frontend/setup.bat index 54ff5d29..0d56313f 100644 --- a/frontend/setup.bat +++ b/frontend/setup.bat @@ -1,8 +1,6 @@ -cd website +cd react call npm install -call npm install -g watchify babelify tsify -call npm run build-debug cd ..