From 0758f65b33bc30cafcfe72c776ee9ff11c7c9a00 Mon Sep 17 00:00:00 2001 From: RaviAnand Mohabir Date: Tue, 25 Mar 2025 18:37:46 +0100 Subject: [PATCH] chore: :wrench: add wasm build vscode task --- .vscode/tasks.json | 15 +++++++++++++++ 1 file changed, 15 insertions(+) create mode 100644 .vscode/tasks.json diff --git a/.vscode/tasks.json b/.vscode/tasks.json new file mode 100644 index 0000000..de5081f --- /dev/null +++ b/.vscode/tasks.json @@ -0,0 +1,15 @@ +{ + // See https://go.microsoft.com/fwlink/?LinkId=733558 + // for the documentation about the tasks.json format + "version": "2.0.0", + "tasks": [ + { + "label": "Build WASM binary", + "type": "shell", + "command": "GOOS=\"js\" GOARCH=\"wasm\" go build -o main.wasm", + "windows": { + "command": "$Env:GOOS = \"js\"; $Env:GOARCH = \"wasm\"; go build -o public/main.wasm" + } + } + ] +}