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 ..