frontend: add grpc-web script, lint fixes, hello world

This commit is contained in:
Patrik Oldsberg
2020-02-03 19:21:28 +01:00
parent 0a15c43341
commit 2d46724338
11 changed files with 610 additions and 88 deletions
+8
View File
@@ -0,0 +1,8 @@
#!/bin/bash
DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" >/dev/null 2>&1 && pwd )"
OUT='src/proto'
mkdir -p "$OUT"
exec protoc -I="$DIR/../../protos" --js_out=import_style=commonjs:"$OUT" --grpc-web_out=import_style=commonjs+dts,mode=grpcwebtext:"$OUT" "$@"