Compile proto
This commit is contained in:
@@ -52,7 +52,6 @@
|
|||||||
"type": "module",
|
"type": "module",
|
||||||
"dependencies": {
|
"dependencies": {
|
||||||
"@bufbuild/protobuf": "^2.10.2",
|
"@bufbuild/protobuf": "^2.10.2",
|
||||||
"@msgpack/msgpack": "^3.1.2",
|
|
||||||
"@niku/vite-env-caster": "^1.1.2",
|
"@niku/vite-env-caster": "^1.1.2",
|
||||||
"@sveltejs/adapter-auto": "^6.1.1",
|
"@sveltejs/adapter-auto": "^6.1.1",
|
||||||
"@tailwindcss/vite": "^4.1.14",
|
"@tailwindcss/vite": "^4.1.14",
|
||||||
|
|||||||
Generated
-9
@@ -11,9 +11,6 @@ importers:
|
|||||||
'@bufbuild/protobuf':
|
'@bufbuild/protobuf':
|
||||||
specifier: ^2.10.2
|
specifier: ^2.10.2
|
||||||
version: 2.10.2
|
version: 2.10.2
|
||||||
'@msgpack/msgpack':
|
|
||||||
specifier: ^3.1.2
|
|
||||||
version: 3.1.2
|
|
||||||
'@niku/vite-env-caster':
|
'@niku/vite-env-caster':
|
||||||
specifier: ^1.1.2
|
specifier: ^1.1.2
|
||||||
version: 1.1.2
|
version: 1.1.2
|
||||||
@@ -466,10 +463,6 @@ packages:
|
|||||||
'@kurkle/color@0.3.4':
|
'@kurkle/color@0.3.4':
|
||||||
resolution: {integrity: sha512-M5UknZPHRu3DEDWoipU6sE8PdkZ6Z/S+v4dD+Ke8IaNlpdSQah50lz1KtcFBa2vsdOnwbbnxJwVM4wty6udA5w==}
|
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':
|
'@niku/vite-env-caster@1.1.2':
|
||||||
resolution: {integrity: sha512-6I/8REFdmfeGnK92H3nYHGc6lExwjm72jLxAsDPlfji97Eej4rOMl6WuYGLgsQI0pl5RrMRMveeRdijdL6hW+Q==}
|
resolution: {integrity: sha512-6I/8REFdmfeGnK92H3nYHGc6lExwjm72jLxAsDPlfji97Eej4rOMl6WuYGLgsQI0pl5RrMRMveeRdijdL6hW+Q==}
|
||||||
|
|
||||||
@@ -2495,8 +2488,6 @@ snapshots:
|
|||||||
|
|
||||||
'@kurkle/color@0.3.4': {}
|
'@kurkle/color@0.3.4': {}
|
||||||
|
|
||||||
'@msgpack/msgpack@3.1.2': {}
|
|
||||||
|
|
||||||
'@niku/vite-env-caster@1.1.2':
|
'@niku/vite-env-caster@1.1.2':
|
||||||
dependencies:
|
dependencies:
|
||||||
chalk: 4.1.2
|
chalk: 4.1.2
|
||||||
|
|||||||
@@ -1,5 +1,4 @@
|
|||||||
import { writable } from 'svelte/store'
|
import { writable } from 'svelte/store'
|
||||||
import { encode, decode } from '@msgpack/msgpack'
|
|
||||||
import {
|
import {
|
||||||
WebsocketMessage,
|
WebsocketMessage,
|
||||||
type MessageFns,
|
type MessageFns,
|
||||||
|
|||||||
+1
-5
@@ -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
|
Make sure to actually create the output directories before executing the commands
|
||||||
|
|
||||||
TS:
|
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" ".\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
|
|
||||||
|
|
||||||
C++ (nanopb):
|
C++ (nanopb):
|
||||||
pip install protobuf grpcio-tools
|
pip install protobuf grpcio-tools
|
||||||
|
|||||||
Reference in New Issue
Block a user