-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
19 changed files
with
1,102 additions
and
1,907 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,9 +1,11 @@ | ||
gcs | ||
*.env | ||
**/*.pb.go | ||
.vscode | ||
influx_token.key | ||
*.mp4 | ||
*.webm | ||
*.wav | ||
*.mp3 | ||
*.mp3 | ||
|
||
**/*.pb.go | ||
**/*.pb.ts |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,3 @@ | ||
[submodule "protos"] | ||
path = protos | ||
url = git@github.com:tritonuas/protos.git | ||
url = https://github.com/tritonuas/protos |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -17,6 +17,9 @@ install-linter: | |
./scripts/install-linter-linux.sh ;\ | ||
fi;\ | ||
|
||
install-protos: | ||
git submodule init && git submodule update | ||
|
||
install-fmter: | ||
go install golang.org/x/tools/cmd/goimports@latest | ||
|
||
|
@@ -25,10 +28,10 @@ install-assets: | |
|
||
# Build | ||
# -------------------------------------------------------------------- | ||
.PHONY: pre-build build install-dependencies configure-git build-go build-react build-docker | ||
.PHONY: pre-build build install-dependencies configure-git build-go build-react build-docker build-protos build-backend-protos build-frontend-protos | ||
pre-build: configure-git | ||
|
||
build: build-go build-react | ||
build: build-go build-react build-protos | ||
|
||
configure-git: | ||
git config --global url."[email protected]:".insteadOf "https://github.com/" | ||
|
@@ -39,9 +42,25 @@ build-go: | |
build-react: | ||
npm run --prefix ./houston build | ||
|
||
build-docker: build-react | ||
build-docker: build-react build-protos | ||
DOCKER_BUILDKIT=1 docker build -t tritonuas/gcs -f build/package/Dockerfile . | ||
|
||
build-protos: build-backend-protos build-frontend-protos | ||
|
||
build-backend-protos: internal/protos/houston.pb.go internal/protos/obc.pb.go | ||
|
||
internal/protos/houston.pb.go: protos/houston.proto | ||
protoc -I=./protos/ --go_out=./internal/protos/ --go_opt=paths=source_relative ./protos/houston.proto | ||
|
||
internal/protos/obc.pb.go: protos/obc.proto | ||
protoc -I=./protos/ --go_out=./internal/protos/ --go_opt=paths=source_relative ./protos/obc.proto | ||
|
||
build-frontend-protos: houston/src/protos/houston.pb.ts | ||
|
||
houston/src/protos/houston.pb.ts: protos/houston.proto | ||
protoc --plugin=houston/node_modules/.bin/protoc-gen-ts_proto --ts_proto_opt=fileSuffix=.pb --ts_proto_out=./houston/src/ ./protos/houston.proto | ||
|
||
|
||
# Run | ||
# -------------------------------------------------------------------- | ||
.PHONY: run run-docker run-compose stop-compose run-broach-compose develop | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.