From 61905f8e95c33df26da89430a169dae26bca264d Mon Sep 17 00:00:00 2001 From: Niklas Jensen Date: Sat, 3 Jan 2026 00:50:06 +0100 Subject: [PATCH] Compile proto --- app/package.json | 1 - app/pnpm-lock.yaml | 9 --------- app/src/lib/stores/socket.ts | 1 - compile_proto_TEMP | 6 +----- 4 files changed, 1 insertion(+), 16 deletions(-) diff --git a/app/package.json b/app/package.json index f21b1d6..fc1b315 100644 --- a/app/package.json +++ b/app/package.json @@ -52,7 +52,6 @@ "type": "module", "dependencies": { "@bufbuild/protobuf": "^2.10.2", - "@msgpack/msgpack": "^3.1.2", "@niku/vite-env-caster": "^1.1.2", "@sveltejs/adapter-auto": "^6.1.1", "@tailwindcss/vite": "^4.1.14", diff --git a/app/pnpm-lock.yaml b/app/pnpm-lock.yaml index 99c97c9..603edba 100644 --- a/app/pnpm-lock.yaml +++ b/app/pnpm-lock.yaml @@ -11,9 +11,6 @@ importers: '@bufbuild/protobuf': specifier: ^2.10.2 version: 2.10.2 - '@msgpack/msgpack': - specifier: ^3.1.2 - version: 3.1.2 '@niku/vite-env-caster': specifier: ^1.1.2 version: 1.1.2 @@ -466,10 +463,6 @@ packages: '@kurkle/color@0.3.4': resolution: {integrity: sha512-M5UknZPHRu3DEDWoipU6sE8PdkZ6Z/S+v4dD+Ke8IaNlpdSQah50lz1KtcFBa2vsdOnwbbnxJwVM4wty6udA5w==} - '@msgpack/msgpack@3.1.2': - resolution: {integrity: sha512-JEW4DEtBzfe8HvUYecLU9e6+XJnKDlUAIve8FvPzF3Kzs6Xo/KuZkZJsDH0wJXl/qEZbeeE7edxDNY3kMs39hQ==} - engines: {node: '>= 18'} - '@niku/vite-env-caster@1.1.2': resolution: {integrity: sha512-6I/8REFdmfeGnK92H3nYHGc6lExwjm72jLxAsDPlfji97Eej4rOMl6WuYGLgsQI0pl5RrMRMveeRdijdL6hW+Q==} @@ -2495,8 +2488,6 @@ snapshots: '@kurkle/color@0.3.4': {} - '@msgpack/msgpack@3.1.2': {} - '@niku/vite-env-caster@1.1.2': dependencies: chalk: 4.1.2 diff --git a/app/src/lib/stores/socket.ts b/app/src/lib/stores/socket.ts index 131342c..33f9d40 100644 --- a/app/src/lib/stores/socket.ts +++ b/app/src/lib/stores/socket.ts @@ -1,5 +1,4 @@ import { writable } from 'svelte/store' -import { encode, decode } from '@msgpack/msgpack' import { WebsocketMessage, type MessageFns, diff --git a/compile_proto_TEMP b/compile_proto_TEMP index e5e71f3..48b5bc6 100644 --- a/compile_proto_TEMP +++ b/compile_proto_TEMP @@ -3,11 +3,7 @@ This file is temporary, just to show how ot compile the proto files Make sure to actually create the output directories before executing the commands TS: -protoc --plugin="protoc-gen-ts_proto=$(Resolve-Path app\node_modules\.bin\protoc-gen-ts_proto.CMD)" --ts_proto_out="./app/src/lib/platform_shared" --ts_proto_opt=outputSchema=true --proto_path ".\platform_shared\" ".\platform_shared\websocket_message.proto" -protoc --plugin="protoc-gen-ts_proto=$(Resolve-Path app\node_modules\.bin\protoc-gen-ts_proto.CMD)" --ts_proto_out="./app/src/lib/platform_shared" --ts_proto_opt=outputSchema=true --proto_path ".\platform_shared\" ".\platform_shared\rest_message.proto" - -C++: -protoc -I=platform_shared --cpp_out=esp32/src/platform_shared platform_shared/example.proto +protoc --plugin="protoc-gen-ts_proto=$(Resolve-Path app\node_modules\.bin\protoc-gen-ts_proto.CMD)" --ts_proto_out="./app/src/lib/platform_shared" --ts_proto_opt=outputSchema=true --proto_path ".\platform_shared\" ".\platform_shared\rest_message.proto" ".\platform_shared\websocket_message.proto" C++ (nanopb): pip install protobuf grpcio-tools