← All work

Open source · iOS build tooling

tuist-to-bazel

A Swift CLI that turns a Tuist project graph into Bazel files you can inspect and edit.

Project graphgraph.json
{
  "projects": { ... },
  "targets": [ ... ],
  "dependencies": [ ... ]
}
tuist-to-bazel convert
Generated output
  • MODULE.bazelmodule dependencies
  • BUILD.bazelroot project
  • App/BUILD.bazeltargets and resources
  • .bazel/Generatedsupport sources
The converter reads Tuist’s graph and writes regular Bazel files plus the support sources the project needs.

Start with Bazel files you can edit

tuist-to-bazel reads the JSON from tuist graph and creates MODULE.bazel, one BUILD file per package, and the support sources Bazel needs.

These are regular Bazel files. You can review and edit them as you move the project over.

Type
Migration tool
Focus
Tuist → Bazel
Stack
Swift · Bazel