From a98faabfbad9805318e0688285fe789ef3ad908c Mon Sep 17 00:00:00 2001 From: Niklas Jensen Date: Fri, 2 Jan 2026 14:45:11 +0100 Subject: [PATCH] =?UTF-8?q?=F0=9F=A6=89Updated=20protoc=20to=20include=20r?= =?UTF-8?q?eference=20to=20other=20protos?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- compile_proto_TEMP | 13 ++----------- 1 file changed, 2 insertions(+), 11 deletions(-) diff --git a/compile_proto_TEMP b/compile_proto_TEMP index ef497d6..883c9f6 100644 --- a/compile_proto_TEMP +++ b/compile_proto_TEMP @@ -3,17 +3,8 @@ 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" --ts_proto_opt=outputSchema=true ".\platform_shared\websocket_message.proto" - -NEW TS (USING PROTOBUFJS): -cd app -pnpm install protobufjs-cli -pnpm install -D protobufjs-cli -pnpm exec pbjs -t static-module -w es6 -o src\lib\platform_shared\compiled.js ..\platform_shared\websocket_message.proto -pnpm exec pbts -o src\lib\platform_shared\compiled.d.ts src\lib\platform_shared\compiled.js - -pnpm exec pbjs -t json-module -o src\lib\platform_shared\compiled.d.json ..\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" --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" --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