Bazel is a build system built by Google.
Follow the instructions on the Bazel site.
-
Buildifier is a bazel formatter.
-
Bulldozer is a command line tool for bazel files.
Create C:\Bazel
folder and add it to the system PATH.
Download both latest version of buildifier and buildozer to C:\Bazel
folder.
Install Bazel extension for VS Code.
Run every command at the root of the project.
$ yarn
$ docker-compose build
$ yarn build
$ yarn test
$ npx bazel run //services/feedback
$ npx ibazel run //services/feedback
$ yarn clean
$ npx bazel clean --expunge
-
Bazel on Windows can't build docker images. See #1926. A workaround is to use WSL or to add
manual
to tags property. -
Bazel on Windows isn't sandboxed compared to other platforms, so there may be inconsistencies of behaviours. This can be seen how tests for TypeScript are created. Example also see #2939.
- rules_proto_grpc - Set of Bazel rules for GRPC. Supports many languages including TypeScript.
- protoc-gen-ts - Maintained by a Bazel contributor. Doesn't work on Windows. See #86
- rules_typescript_proto - Doesn't work with Bazel >= 4.1.0