pen-solid
Visual Studio Code + Bazel
GitHub Toggle Dark/Light/Auto mode Toggle Dark/Light/Auto mode Toggle Dark/Light/Auto mode Back to homepage

The Build

Visual Studio Code

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.

  1. Open the command pallet
  2. Type: Tasks: Run Tasks (This will autocomplete)
  3. Select Desired Target
  4. Don’t Monitor Output

Available Tasks:

General

  • Build All
  • Test All

API

  • Build API

Documents

  • Build Docs
  • Run Document Site Locally

Go

  • Build Go Projects
  • Run Go Protobuf Server
  • Run Go Protobuf Client

Java

  • Build Java Projects
  • Run Java Protobuf Server
  • Run Java Protobuf Client

Command Line

Well know Targets


# Build All
bazel build //...

# Test All
bazel test //...

API (Protocol Buffer Targets)

# Build APIs
bazel build //api

Documentation Site

# Build Docs
bazel build //docs

# Serve Docs Locally
bazel run //docs:serve

Go Project: Server & Client

# Build Go Projects
bazel build //golang/...

# Run Go Protobuf Server
bazel run //golang/example/server

# Run Go Protobuf Client
bazel run //golang/example/client

Java Project: Server & 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