🔨 Adds build script for ts proto

This commit is contained in:
Rune Harlyk
2026-01-03 15:11:41 +01:00
committed by nikguin04
parent 6a117ac5e3
commit 585adaf28f
4 changed files with 560 additions and 2635 deletions
+3 -1
View File
@@ -5,6 +5,7 @@
"scripts": {
"dev": "vite dev --host",
"build": "vite build",
"build:proto": "pnpm proto && vite build",
"build:embedded": "cross-env VITE_USE_HOST_NAME=true vite build",
"preview": "vite preview",
"test": "pnpm run test:integration && pnpm run test:unit",
@@ -13,7 +14,8 @@
"lint": "prettier --check . && eslint .",
"format": "prettier --write .",
"test:integration": "playwright test",
"test:unit": "vitest"
"test:unit": "vitest",
"proto": "protoc --plugin=protoc-gen-ts_proto=.\\node_modules\\.bin\\protoc-gen-ts_proto.cmd --ts_proto_out=./src/lib/platform_shared --ts_proto_opt=outputTypeAnnotations=true,useExactTypes=false,outputExtensions=true,outputTypeRegistry=true -I ../platform_shared ../platform_shared/websocket_message.proto ../platform_shared/rest_message.proto"
},
"devDependencies": {
"@eslint/js": "^9.39.2",