From 50764600c83b2bdec599a9fd8e27b3c10a2afd96 Mon Sep 17 00:00:00 2001 From: AAGaming Date: Tue, 15 Nov 2022 16:44:24 -0500 Subject: Refactoring in preparation for WebSockets (#254) * Fix injector race conditions * add some more tasks * hide useless rollup warnings * goodbye to clientsession errors * completely fix desktop mode switch race condition * fix typos and TS warning in plugin error handler * fix chown error * start debugger if needed and not already started * fix get_steam_resource for the like 2 legacy plugins still using it lol * add ClientOSError to get_tabs error handling --- .vscode/tasks.json | 39 +++++++++++++++++++++++++++++++++------ 1 file changed, 33 insertions(+), 6 deletions(-) (limited to '.vscode') diff --git a/.vscode/tasks.json b/.vscode/tasks.json index a7062156..152a0051 100644 --- a/.vscode/tasks.json +++ b/.vscode/tasks.json @@ -14,7 +14,9 @@ "label": "localrun", "type": "shell", "group": "none", - "dependsOn" : ["buildall"], + "dependsOn": [ + "buildall" + ], "detail": "Check for local runs, create a plugins folder", "command": "mkdir -p plugins", "problemMatcher": [] @@ -48,6 +50,16 @@ "command": "cd frontend && pnpm i", "problemMatcher": [] }, + { + "script": "watch", + "type": "npm", + "path": "frontend", + "group": "build", + "problemMatcher": [], + "label": "watchfrontend", + "detail": "rollup -c -w", + "isBackground": true + }, { "label": "buildfrontend", "type": "npm", @@ -55,8 +67,7 @@ "detail": "rollup -c", "script": "build", "path": "frontend", - "problemMatcher": [], - + "problemMatcher": [] }, { "label": "buildall", @@ -95,7 +106,9 @@ "detail": "Run indev PluginLoader on Deck", "type": "shell", "group": "none", - "dependsOn" : ["checkforsettings"], + "dependsOn": [ + "checkforsettings" + ], "command": "ssh deck@${config:deckip} -p ${config:deckport} ${config:deckkey} 'export PLUGIN_PATH=${config:deckdir}/homebrew/dev/plugins; export CHOWN_PLUGIN_PATH=0; export LOG_LEVEL=DEBUG; cd ${config:deckdir}/homebrew/services; echo '${config:deckpass}' | sudo -SE python3 ${config:deckdir}/homebrew/dev/pluginloader/backend/main.py'", "problemMatcher": [] }, @@ -108,6 +121,20 @@ "problemMatcher": [] }, // ALL-IN-ONES + { + "label": "deployandrun", + "detail": "Deploy and run, skipping JS build. Useful when combined with npm:watch", + "dependsOrder": "sequence", + "group": { + "kind": "build", + "isDefault": true + }, + "dependsOn": [ + "deploy", + "runpydeck" + ], + "problemMatcher": [] + }, { "label": "updateremote", "detail": "Build and deploy", @@ -115,7 +142,7 @@ "group": "none", "dependsOn": [ "buildall", - "deploy", + "deploy" ], "problemMatcher": [] }, @@ -152,4 +179,4 @@ "problemMatcher": [] } ] -} +} \ No newline at end of file -- cgit v1.2.3