The Build
Using the command pallet, you may execute the build tasks specified in the ’tasks’ section of the build file. These are IDE extension to the Command Line Arguments.
- Open the command pallet
- Type: Tasks: Run Tasks (This will autocomplete)
- Select Desired Target
- Don’t Monitor Output
Available Tasks:
- Build All
- Test All
- Build API
- Build Docs
- Run Document Site Locally
- Build Go Projects
- Run Go Protobuf Server
- Run Go Protobuf Client
- Build Java Projects
- Run Java Protobuf Server
- Run Java Protobuf Client
# Build All
bazel build //...
# Test All
bazel test //...
# Build APIs
bazel build //api
# Build Docs
bazel build //docs
# Serve Docs Locally
bazel run //docs:serve
# Build Go Projects
bazel build //golang/...
# Run Go Protobuf Server
bazel run //golang/example/server
# Run Go Protobuf Client
bazel run //golang/example/client
# Build Java Projects
bazel build //java/...
# Run Java Protobuf Server
bazel run //java/example/server
# Run Java Protobuf Client
bazel run //java/example/client